2019-01-19 00:57:26 +00:00
|
|
|
package telemetry
|
2019-01-18 13:38:58 +00:00
|
|
|
|
|
|
|
import (
|
2019-01-19 00:57:26 +00:00
|
|
|
pr "github.com/influxdata/influxdb/prometheus"
|
2019-01-18 13:38:58 +00:00
|
|
|
)
|
|
|
|
|
2019-01-19 01:14:10 +00:00
|
|
|
var telemetryMatcher = pr.NewMatcher().
|
2019-01-18 13:38:58 +00:00
|
|
|
Family("influxdb_info").
|
|
|
|
Family("influxdb_uptime_seconds").
|
2019-01-19 01:07:10 +00:00
|
|
|
Family("influxdb_organizations_total").
|
|
|
|
Family("influxdb_buckets_total").
|
|
|
|
Family("influxdb_users_total").
|
|
|
|
Family("influxdb_tokens_total").
|
|
|
|
Family("influxdb_dashboards_total").
|
|
|
|
Family("influxdb_scrapers_total").
|
|
|
|
Family("influxdb_telegrafs_total").
|
2019-01-18 13:38:58 +00:00
|
|
|
Family("http_api_requests_total",
|
2019-01-19 00:57:26 +00:00
|
|
|
pr.L("handler", "platform"),
|
|
|
|
pr.L("method", "GET"),
|
|
|
|
pr.L("path", "/api/v2"),
|
|
|
|
pr.L("status", "2XX"),
|
2019-01-18 13:38:58 +00:00
|
|
|
)
|