GithubHelp home page GithubHelp logo

gicamm / prometheus-hardware-exporter Goto Github PK

View Code? Open in Web Editor NEW

This project forked from canonical/prometheus-hardware-exporter

0.0 0.0 0.0 114 KB

License: GNU General Public License v3.0

Shell 0.22% Python 99.11% Makefile 0.67%

prometheus-hardware-exporter's Introduction

Prometheus Exporter Snap for charm-hardware

Getting Started

Install the snap from snap store:

$ sudo snap install prometheus-hardware-exporter --classic

Start the exporter:

$ sudo snap start prometheus-hardware-exporter

Snap Configuration

The install hook (./snap/hooks/install) will generate a default configuration for the exporter. By default, the exporter is started at port 10000 with a logging level of INFO.

You can change the default configuration by editing

$ /var/snap/prometheus-hardware-exporter/current/config.yaml

and then restart the snap by

$ sudo snap restart prometheus-hardware-exporter

Local Build and Testing

You need snapcraft to build the snap:

$ sudo snap install snapcraft --classic

Snapcraft also requires backend to create isolated build environment, you can choose the following two backends:

  • LXD, which creates container image build instances. It can be used inside virtual machines.
  • Multipass, which creates virtual machine build instances. It cannot be reliably used on platforms that do not support nested virtualization. For instance, Multipass will most likely not run inside a virtual machine itself.

To build the snap:

$ make build

To try the snap that was built, you can install it locally:

$ sudo snap install --devmode ./$(grep -E "^name:" snap/snapcraft.yaml | awk '{print $2}').snap

prometheus-hardware-exporter's People

Contributors

chanchiwai-ray avatar dashmage avatar jneo8 avatar sudeephb avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.