Categorygithub.com/go-sensors/prometheus
modulepackage
0.0.0-20220829020342-c12c0254a2fc
Repository: https://github.com/go-sensors/prometheus.git
Documentation: pkg.go.dev

# README

go-sensors/prometheus

Go library for collecting and reporting measurements from sensors with Prometheus

Quickstart

Take a look at rpi-sensor-exporter for an example implementation that makes use of this library and several sensors.

Building

This software doesn't have any compiled assets.

Code of Conduct

We are committed to fostering an open and welcoming environment. Please read our code of conduct before participating in or contributing to this project.

Contributing

We welcome contributions and collaboration on this project. Please read our contributor's guide to understand how best to work with us.

License and Authors

Daniel James logo Daniel James

license GitHub contributors

This software is made available by Daniel James under the MIT license.

# Packages

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Functions

NewMetricHandler returns a new MetricHandler with default labels.
NewMetricHandlerWithLabels returns a new MetricHandler with given labels.
NewMetricsServer returns a MetricsServer.

# Constants

DefaultSource is the default value for the `source` Prometheus label.

# Structs

Labels defines additional labels that may be applied when setting metrics.
MetricHandler is an implementation of handlers for each supported type of sensor data.
MetricsServer is an HTTP serve for serving Prometheus metrics.