-
Notifications
You must be signed in to change notification settings - Fork 774
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
Option to not add _total suffix to counter metrics in Prometheus exporter #5305
Changes from 7 commits
1df6fcb
5154a68
3f910f1
f0431f5
12ca206
3b1db0b
f4d044c
54e16e7
d793d2e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,6 +17,15 @@ public class PrometheusAspNetCoreOptions | |
/// </summary> | ||
public string ScrapeEndpointPath { get; set; } = DefaultScrapeEndpointPath; | ||
|
||
/// <summary> | ||
/// Gets or sets a value indicating whether addition of _total suffix for counter metric names is disabled. Default value: <see langword="false"/>. | ||
/// </summary> | ||
public bool DisableTotalNameSuffixForCounters | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
The default should be true as per https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/compatibility/prometheus_and_openmetrics.md#sums There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
So I think DisableTotalNameSuffixForCounters will be better
Bassardes marked this conversation as resolved.
Show resolved
Hide resolved
|
||
{ | ||
get => this.ExporterOptions.DisableTotalNameSuffixForCounters; | ||
set => this.ExporterOptions.DisableTotalNameSuffixForCounters = value; | ||
} | ||
|
||
/// <summary> | ||
/// Gets or sets the cache duration in milliseconds for scrape responses. Default value: 300. | ||
/// </summary> | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,10 @@ | |
|
||
## Unreleased | ||
|
||
* Added option to disable _total suffix addition to counter metrics in | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. fixed |
||
Prometheus exporter | ||
([#5305](https://github.com/open-telemetry/opentelemetry-dotnet/pull/5305)) | ||
|
||
* Export OpenMetrics format from Prometheus exporters | ||
([#5107](https://github.com/open-telemetry/opentelemetry-dotnet/pull/5107)) | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No need to mention "in Prometheus exporter". This CHANGELOG file is specific to Prometheus exporter.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed