-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add unit suffixes to prometheus metric names (#3352)
* add unit suffixes to prometheus metric names * Update CHANGELOG.md Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com> * remove unneccessary variable Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com>
- Loading branch information
Showing
8 changed files
with
111 additions
and
51 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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
# HELP foo_total a simple counter | ||
# TYPE foo_total counter | ||
foo_total{A="B",C="D",E="true",F="42"} 24.3 | ||
# HELP foo_milliseconds_total a simple counter | ||
# TYPE foo_milliseconds_total counter | ||
foo_milliseconds_total{A="B",C="D",E="true",F="42"} 24.3 | ||
# HELP target_info Target metadata | ||
# TYPE target_info gauge | ||
target_info{service_name="prometheus_test",telemetry_sdk_language="go",telemetry_sdk_name="opentelemetry",telemetry_sdk_version="latest"} 1 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
# HELP bar a fun little gauge | ||
# TYPE bar gauge | ||
bar{A="B",C="D"} 75 | ||
# HELP bar_ratio a fun little gauge | ||
# TYPE bar_ratio gauge | ||
bar_ratio{A="B",C="D"} .75 | ||
# HELP target_info Target metadata | ||
# TYPE target_info gauge | ||
target_info{service_name="prometheus_test",telemetry_sdk_language="go",telemetry_sdk_name="opentelemetry",telemetry_sdk_version="latest"} 1 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,18 @@ | ||
# HELP histogram_baz a very nice histogram | ||
# TYPE histogram_baz histogram | ||
histogram_baz_bucket{A="B",C="D",le="0"} 0 | ||
histogram_baz_bucket{A="B",C="D",le="5"} 0 | ||
histogram_baz_bucket{A="B",C="D",le="10"} 1 | ||
histogram_baz_bucket{A="B",C="D",le="25"} 2 | ||
histogram_baz_bucket{A="B",C="D",le="50"} 2 | ||
histogram_baz_bucket{A="B",C="D",le="75"} 2 | ||
histogram_baz_bucket{A="B",C="D",le="100"} 2 | ||
histogram_baz_bucket{A="B",C="D",le="250"} 4 | ||
histogram_baz_bucket{A="B",C="D",le="500"} 4 | ||
histogram_baz_bucket{A="B",C="D",le="1000"} 4 | ||
histogram_baz_bucket{A="B",C="D",le="+Inf"} 4 | ||
histogram_baz_sum{A="B",C="D"} 236 | ||
histogram_baz_count{A="B",C="D"} 4 | ||
# HELP histogram_baz_bytes a very nice histogram | ||
# TYPE histogram_baz_bytes histogram | ||
histogram_baz_bytes_bucket{A="B",C="D",le="0"} 0 | ||
histogram_baz_bytes_bucket{A="B",C="D",le="5"} 0 | ||
histogram_baz_bytes_bucket{A="B",C="D",le="10"} 1 | ||
histogram_baz_bytes_bucket{A="B",C="D",le="25"} 2 | ||
histogram_baz_bytes_bucket{A="B",C="D",le="50"} 2 | ||
histogram_baz_bytes_bucket{A="B",C="D",le="75"} 2 | ||
histogram_baz_bytes_bucket{A="B",C="D",le="100"} 2 | ||
histogram_baz_bytes_bucket{A="B",C="D",le="250"} 4 | ||
histogram_baz_bytes_bucket{A="B",C="D",le="500"} 4 | ||
histogram_baz_bytes_bucket{A="B",C="D",le="1000"} 4 | ||
histogram_baz_bytes_bucket{A="B",C="D",le="+Inf"} 4 | ||
histogram_baz_bytes_sum{A="B",C="D"} 236 | ||
histogram_baz_bytes_count{A="B",C="D"} 4 | ||
# HELP target_info Target metadata | ||
# TYPE target_info gauge | ||
target_info{service_name="prometheus_test",telemetry_sdk_language="go",telemetry_sdk_name="opentelemetry",telemetry_sdk_version="latest"} 1 |