-
Notifications
You must be signed in to change notification settings - Fork 1.3k
prometheus exporter convert instrumentation scope to otel_scope_info metric #3357
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
MrAlias
merged 6 commits into
open-telemetry:main
from
fatsheep9146:prometheus_exporter_add_scope_info
Nov 2, 2022
Merged
Changes from 3 commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
b806238
prometheus exporter convert instrumentation scope to otel_scope_info …
fatsheep9146 dbeea34
fix for commits
fatsheep9146 6025f00
fix for ci failed
fatsheep9146 8e21672
add multi scopes test
fatsheep9146 138d7f2
fix ci failed
fatsheep9146 7efab63
Merge branch 'main' into prometheus_exporter_add_scope_info
fatsheep9146 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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,7 +1,10 @@ | ||
| # 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 | ||
| foo_milliseconds_total{A="D",C="B",E="true",F="42"} 5 | ||
| foo_milliseconds_total{A="B",C="D",E="true",F="42",otel_scope_name="testmeter",otel_scope_version="v0.1.0"} 24.3 | ||
| foo_milliseconds_total{A="D",C="B",E="true",F="42",otel_scope_name="testmeter",otel_scope_version="v0.1.0"} 5 | ||
| # HELP otel_scope_info Instrumentation Scope metadata | ||
| # TYPE otel_scope_info gauge | ||
| otel_scope_info{otel_scope_name="testmeter",otel_scope_version="v0.1.0"} 1 | ||
| # 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 hidden or 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,9 @@ | ||
| # HELP foo_total a simple counter | ||
| # TYPE foo_total counter | ||
| foo_total{A="B",C="D",E="true",F="42"} 24.3 | ||
| foo_total{A="B",C="D",E="true",F="42",otel_scope_name="testmeter",otel_scope_version="v0.1.0"} 24.3 | ||
| # HELP otel_scope_info Instrumentation Scope metadata | ||
| # TYPE otel_scope_info gauge | ||
| otel_scope_info{otel_scope_name="testmeter",otel_scope_version="v0.1.0"} 1 | ||
| # HELP target_info Target metadata | ||
| # TYPE target_info gauge | ||
| target_info{A="B",C="D",service_name="prometheus_test",telemetry_sdk_language="go",telemetry_sdk_name="opentelemetry",telemetry_sdk_version="latest"} 1 |
This file contains hidden or 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,9 @@ | ||
| # HELP foo_total a simple counter | ||
| # TYPE foo_total counter | ||
| foo_total{A="B",C="D",E="true",F="42"} 24.3 | ||
| foo_total{A="B",C="D",E="true",F="42",otel_scope_name="testmeter",otel_scope_version="v0.1.0"} 24.3 | ||
| # HELP otel_scope_info Instrumentation Scope metadata | ||
| # TYPE otel_scope_info gauge | ||
| otel_scope_info{otel_scope_name="testmeter",otel_scope_version="v0.1.0"} 1 | ||
| # HELP target_info Target metadata | ||
| # TYPE target_info gauge | ||
| target_info 1 |
This file contains hidden or 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,9 @@ | ||
| # HELP bar_ratio a fun little gauge | ||
| # TYPE bar_ratio gauge | ||
| bar_ratio{A="B",C="D"} .75 | ||
| bar_ratio{A="B",C="D",otel_scope_name="testmeter",otel_scope_version="v0.1.0"} .75 | ||
| # HELP otel_scope_info Instrumentation Scope metadata | ||
| # TYPE otel_scope_info gauge | ||
| otel_scope_info{otel_scope_name="testmeter",otel_scope_version="v0.1.0"} 1 | ||
| # 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 hidden or 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,21 @@ | ||
| # 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 | ||
| histogram_baz_bytes_bucket{A="B",C="D",le="0",otel_scope_name="testmeter",otel_scope_version="v0.1.0"} 0 | ||
| histogram_baz_bytes_bucket{A="B",C="D",le="5",otel_scope_name="testmeter",otel_scope_version="v0.1.0"} 0 | ||
| histogram_baz_bytes_bucket{A="B",C="D",le="10",otel_scope_name="testmeter",otel_scope_version="v0.1.0"} 1 | ||
| histogram_baz_bytes_bucket{A="B",C="D",le="25",otel_scope_name="testmeter",otel_scope_version="v0.1.0"} 2 | ||
| histogram_baz_bytes_bucket{A="B",C="D",le="50",otel_scope_name="testmeter",otel_scope_version="v0.1.0"} 2 | ||
| histogram_baz_bytes_bucket{A="B",C="D",le="75",otel_scope_name="testmeter",otel_scope_version="v0.1.0"} 2 | ||
| histogram_baz_bytes_bucket{A="B",C="D",le="100",otel_scope_name="testmeter",otel_scope_version="v0.1.0"} 2 | ||
| histogram_baz_bytes_bucket{A="B",C="D",le="250",otel_scope_name="testmeter",otel_scope_version="v0.1.0"} 4 | ||
| histogram_baz_bytes_bucket{A="B",C="D",le="500",otel_scope_name="testmeter",otel_scope_version="v0.1.0"} 4 | ||
| histogram_baz_bytes_bucket{A="B",C="D",le="1000",otel_scope_name="testmeter",otel_scope_version="v0.1.0"} 4 | ||
| histogram_baz_bytes_bucket{A="B",C="D",le="+Inf",otel_scope_name="testmeter",otel_scope_version="v0.1.0"} 4 | ||
| histogram_baz_bytes_sum{A="B",C="D",otel_scope_name="testmeter",otel_scope_version="v0.1.0"} 236 | ||
| histogram_baz_bytes_count{A="B",C="D",otel_scope_name="testmeter",otel_scope_version="v0.1.0"} 4 | ||
| # HELP otel_scope_info Instrumentation Scope metadata | ||
| # TYPE otel_scope_info gauge | ||
| otel_scope_info{otel_scope_name="testmeter",otel_scope_version="v0.1.0"} 1 | ||
| # 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 hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.