Skip to content

Commit f864481

Browse files
committed
metrics: rename hss references to fleetdb
1 parent cd8cc99 commit f864481

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

internal/metrics/metrics.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ var (
2525
// TasksCompleted measures the count of workers that returned after being spawned.
2626
TasksCompleted *prometheus.CounterVec
2727

28-
// ServerServiceAssetsRetrieved measures the count of assets retrieved from server service to collect inventory for.
29-
ServerServiceAssetsRetrieved *prometheus.CounterVec
28+
// FleetDBAPIAssetsRetrieved measures the count of assets retrieved from server service to collect inventory for.
29+
FleetDBAPIAssetsRetrieved *prometheus.CounterVec
3030

3131
// AssetsSent measures the count of assets sent over the asset channel to the collector.
3232
AssetsSent *prometheus.CounterVec
@@ -37,8 +37,8 @@ var (
3737
// TaskQueueSize measures the number of tasks waiting for a getter worker .
3838
TaskQueueSize *prometheus.GaugeVec
3939

40-
// ServerServiceQueryErrorCount counts the number of query errors - when querying the asset store.
41-
ServerServiceQueryErrorCount *prometheus.CounterVec
40+
// FleetDBAPIQueryErrorCount counts the number of query errors - when querying the asset store.
41+
FleetDBAPIQueryErrorCount *prometheus.CounterVec
4242

4343
// OOBCollectScheduleTimestamp includes the timestamp of the next OOB collection scheduled run.
4444
OOBCollectScheduleTimestamp *prometheus.GaugeVec
@@ -73,7 +73,7 @@ func init() {
7373
[]string{"stage"},
7474
)
7575

76-
ServerServiceAssetsRetrieved = promauto.NewCounterVec(
76+
FleetDBAPIAssetsRetrieved = promauto.NewCounterVec(
7777
prometheus.CounterOpts{
7878
Name: "alloy_assets_retrieved_total",
7979
Help: "A counter metric to measure the total count of assets retrieved from serverService",
@@ -106,7 +106,7 @@ func init() {
106106
[]string{"stage"},
107107
)
108108

109-
ServerServiceQueryErrorCount = promauto.NewCounterVec(
109+
FleetDBAPIQueryErrorCount = promauto.NewCounterVec(
110110
prometheus.CounterOpts{
111111
Name: "alloy_serverservice_query_errors_total",
112112
Help: "A counter metric to measure the total count of errors when the asset store.",

0 commit comments

Comments
 (0)