-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pkg/promtail: Initialize counters to 0 when creating client
This ensures metrics are not missing before they're incremented the first time, as recommended by the upstream Prometheus instrumentation guidelines: https://prometheus.io/docs/practices/instrumentation/#avoid-missing-metrics. Currently, in the case of dropped_entries_total and dropped_bytes_total, the metric is simply missing until the first occurrence of an entry being dropped.
- Loading branch information
Showing
2 changed files
with
28 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters