package
2.6.9+incompatible
Repository: https://github.com/oneconcern/datamon.git
Documentation: pkg.go.dev

# Packages

Package agent provides an in-process opencensus agent to scrape exported metrics and push them to some remote open census collector.
No description provided by the author

# 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.

# Constants

GB stands for giga bytes (1024 mega bytes).
KB stands for kilo bytes (1024 bytes).
MB stands for mega bytes (1024 kilo bytes).

# 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.