package
2.6.9+incompatible
Repository: https://github.com/oneconcern/datamon.git
Documentation: pkg.go.dev
# Functions
DefaultExporter returns a metrics exporter for an influxdb backend, with db "datamon" and time series "metrics".
Duration feeds a millisecs timing measurement from some start to end timings.
EnsureMetrics allows for lazy registration of metrics definitions.
Float64 sets a value to a measurement.
Flush all collected metrics to backend.
Inc increments a counter-like metric.
Init global settings for metrics collection, such as global tags and exporter setup.
Int64 sets a value to a measurement.
Since feeds a millisecs timing measurement from some start time.
WithBasePath defines the root for the registered metrics tree.
WithContexter sets a context generation function.
WithExporter configures the exporter to convey metrics to some backend collector.
WithReportingPeriod configures how often the exporter is going to upload metrics.
# Structs
Enable equips any type with some capabilities to collect metrics in a very concise way.
FilesMetrics is common set of metrics reporting about file activity.
IOMetrics is a common set of metrics reporting about IO activity.
UsageMetrics is a common set of metrics reporting about usage.
# Interfaces
FlushExporter is a view exporter that knows how to flush metrics.
# Type aliases
Option defines some options to the metrics initialization.