Documentation
¶
Overview ¶
package metrics provides functionality for metrics collection and export via Grafana As of PR #72, it uses Grafana as the metrics exporting system.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ServePprof ¶
ServePprof Starts a pprof server on the given address.
func SetVersionInfo ¶
func SetVersionInfo(version, commit, buildDate string)
SetVersionInfo sets the version information metric with the provided build details. This should be called once during application startup.
Types ¶
type PrometheusMetricsReporter ¶
PrometheusMetricsReporter provides the functionality required for exporting PATH metrics to Grafana.
func (*PrometheusMetricsReporter) Publish ¶
func (pmr *PrometheusMetricsReporter) Publish(observations *observation.RequestResponseObservations)
Publish exports service request and response metrics to Prometheus/Grafana Implements the gateway.RequestResponseReporter interface.
func (*PrometheusMetricsReporter) ServeMetrics ¶
func (pmr *PrometheusMetricsReporter) ServeMetrics(addr string) error
Starts a metrics server on the given address.
Directories
¶
| Path | Synopsis |
|---|---|
|
Package protocol handles exporting of all protocol-related observation based metrics.
|
Package protocol handles exporting of all protocol-related observation based metrics. |
|
shannon
Package shannon provides functionality for exporting Shannon protocol metrics to Prometheus.
|
Package shannon provides functionality for exporting Shannon protocol metrics to Prometheus. |
|
Package qos handles exporting of all qos-related metrics.
|
Package qos handles exporting of all qos-related metrics. |
Click to show internal directories.
Click to hide internal directories.