Skip to content

Commit c94c422

Browse files
authored
[prometheus] Update links to openmetrics to reference the v1.0.0 release (#6029)
1 parent 8e6d814 commit c94c422

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

src/OpenTelemetry.Exporter.Prometheus.AspNetCore/CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ Released 2022-Sep-29
150150
([#3651](https://github.com/open-telemetry/opentelemetry-dotnet/pull/3651))
151151

152152
* Added `"# EOF\n"` ending following the [OpenMetrics
153-
specification](https://github.com/OpenObservability/OpenMetrics/blob/main/specification/OpenMetrics.md)
153+
specification](https://github.com/prometheus/OpenMetrics/blob/v1.0.0/specification/OpenMetrics.md)
154154
([#3654](https://github.com/open-telemetry/opentelemetry-dotnet/pull/3654))
155155

156156
## 1.4.0-alpha.2

src/OpenTelemetry.Exporter.Prometheus.HttpListener/CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ Released 2022-Sep-29
147147
([#3651](https://github.com/open-telemetry/opentelemetry-dotnet/pull/3651))
148148

149149
* Added `"# EOF\n"` ending following the [OpenMetrics
150-
specification](https://github.com/OpenObservability/OpenMetrics/blob/main/specification/OpenMetrics.md)
150+
specification](https://github.com/prometheus/OpenMetrics/blob/v1.0.0/specification/OpenMetrics.md)
151151
([#3654](https://github.com/open-telemetry/opentelemetry-dotnet/pull/3654))
152152

153153
## 1.4.0-alpha.2

src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusMetric.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public PrometheusMetric(string name, string unit, PrometheusType type, bool disa
3737
sanitizedUnit = GetUnit(unit);
3838

3939
// The resulting unit SHOULD be added to the metric as
40-
// [OpenMetrics UNIT metadata](https://github.com/OpenObservability/OpenMetrics/blob/main/specification/OpenMetrics.md#metricfamily)
40+
// [OpenMetrics UNIT metadata](https://github.com/prometheus/OpenMetrics/blob/v1.0.0/specification/OpenMetrics.md#metricfamily)
4141
// and as a suffix to the metric name. The unit suffix comes before any type-specific suffixes.
4242
// https://github.com/open-telemetry/opentelemetry-specification/blob/3dfb383fe583e3b74a2365c5a1d90256b273ee76/specification/compatibility/prometheus_and_openmetrics.md#metric-metadata-1
4343
if (!sanitizedName.EndsWith(sanitizedUnit))
@@ -57,14 +57,14 @@ public PrometheusMetric(string name, string unit, PrometheusType type, bool disa
5757
}
5858

5959
// For counters requested using OpenMetrics format, the MetricFamily name MUST be suffixed with '_total', regardless of the setting to disable the 'total' suffix.
60-
// https://github.com/OpenObservability/OpenMetrics/blob/main/specification/OpenMetrics.md#counter-1
60+
// https://github.com/prometheus/OpenMetrics/blob/v1.0.0/specification/OpenMetrics.md#counter-1
6161
if (type == PrometheusType.Counter && !openMetricsName.EndsWith("_total"))
6262
{
6363
openMetricsName += "_total";
6464
}
6565

6666
// In OpenMetrics format, the UNIT, TYPE and HELP metadata must be suffixed with the unit (handled above), and not the '_total' suffix, as in the case for counters.
67-
// https://github.com/OpenObservability/OpenMetrics/blob/main/specification/OpenMetrics.md#unit
67+
// https://github.com/prometheus/OpenMetrics/blob/v1.0.0/specification/OpenMetrics.md#unit
6868
var openMetricsMetadataName = type == PrometheusType.Counter
6969
? SanitizeOpenMetricsName(openMetricsName)
7070
: sanitizedName;
@@ -241,7 +241,7 @@ private static PrometheusType GetPrometheusType(Metric metric)
241241
// OTLP metrics use the c/s notation as specified at https://ucum.org/ucum.html
242242
// (See also https://github.com/open-telemetry/semantic-conventions/blob/main/docs/general/metrics.md#instrument-units)
243243
// Prometheus best practices for units: https://prometheus.io/docs/practices/naming/#base-units
244-
// OpenMetrics specification for units: https://github.com/OpenObservability/OpenMetrics/blob/main/specification/OpenMetrics.md#units-and-base-units
244+
// OpenMetrics specification for units: https://github.com/prometheus/OpenMetrics/blob/v1.0.0/specification/OpenMetrics.md#units-and-base-units
245245
private static string MapUnit(ReadOnlySpan<char> unit)
246246
{
247247
return unit switch

src/Shared/Proto/opentelemetry/proto/metrics/v1/metrics.proto

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -430,7 +430,7 @@ message HistogramDataPoint {
430430
// events, and is assumed to be monotonic over the values of these events.
431431
// Negative events *can* be recorded, but sum should not be filled out when
432432
// doing so. This is specifically to enforce compatibility w/ OpenMetrics,
433-
// see: https://github.com/OpenObservability/OpenMetrics/blob/main/specification/OpenMetrics.md#histogram
433+
// see: https://github.com/prometheus/OpenMetrics/blob/v1.0.0/specification/OpenMetrics.md#histogram
434434
optional double sum = 5;
435435

436436
// bucket_counts is an optional field contains the count values of histogram
@@ -509,7 +509,7 @@ message ExponentialHistogramDataPoint {
509509
// events, and is assumed to be monotonic over the values of these events.
510510
// Negative events *can* be recorded, but sum should not be filled out when
511511
// doing so. This is specifically to enforce compatibility w/ OpenMetrics,
512-
// see: https://github.com/OpenObservability/OpenMetrics/blob/main/specification/OpenMetrics.md#histogram
512+
// see: https://github.com/prometheus/OpenMetrics/blob/v1.0.0/specification/OpenMetrics.md#histogram
513513
optional double sum = 5;
514514

515515
// scale describes the resolution of the histogram. Boundaries are
@@ -622,7 +622,7 @@ message SummaryDataPoint {
622622
// events, and is assumed to be monotonic over the values of these events.
623623
// Negative events *can* be recorded, but sum should not be filled out when
624624
// doing so. This is specifically to enforce compatibility w/ OpenMetrics,
625-
// see: https://github.com/OpenObservability/OpenMetrics/blob/main/specification/OpenMetrics.md#summary
625+
// see: https://github.com/prometheus/OpenMetrics/blob/v1.0.0/specification/OpenMetrics.md#summary
626626
double sum = 5;
627627

628628
// Represents the value at a given quantile of a distribution.

0 commit comments

Comments
 (0)