Skip to content

Commit dd3c466

Browse files
committed
counters should end with a pluralization
Signed-off-by: gotjosh <[email protected]>
1 parent 62bcf74 commit dd3c466

File tree

6 files changed

+11
-11
lines changed

6 files changed

+11
-11
lines changed

exporter/prometheusremotewriteexporter/documentation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Number of translation operations that failed to translate metrics from Otel to P
2222
| ---- | ----------- | ---------- | --------- |
2323
| 1 | Sum | Int | true |
2424

25-
### otelcol_exporter_prometheusremotewrite_sent_batch
25+
### otelcol_exporter_prometheusremotewrite_sent_batches
2626

2727
Number of remote write request batches sent to the remote write endpoint regardless of success or failure
2828

exporter/prometheusremotewriteexporter/exporter.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ func (p *prwTelemetryOtel) setNumberConsumer(ctx context.Context, n int64) {
5252
}
5353

5454
func (p *prwTelemetryOtel) recordRemoteWriteSentBatch(ctx context.Context) {
55-
p.telemetryBuilder.ExporterPrometheusremotewriteSentBatch.Add(ctx, 1, metric.WithAttributes(p.otelAttrs...))
55+
p.telemetryBuilder.ExporterPrometheusremotewriteSentBatches.Add(ctx, 1, metric.WithAttributes(p.otelAttrs...))
5656
}
5757

5858
func (p *prwTelemetryOtel) recordTranslationFailure(ctx context.Context) {

exporter/prometheusremotewriteexporter/internal/metadata/generated_telemetry.go

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

exporter/prometheusremotewriteexporter/internal/metadatatest/generated_telemetrytest.go

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

exporter/prometheusremotewriteexporter/internal/metadatatest/generated_telemetrytest_test.go

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

exporter/prometheusremotewriteexporter/metadata.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ telemetry:
3434
sum:
3535
value_type: int
3636
monotonic: false
37-
exporter_prometheusremotewrite_sent_batch:
37+
exporter_prometheusremotewrite_sent_batches:
3838
enabled: true
3939
description: Number of remote write request batches sent to the remote write endpoint regardless of success or failure
4040
unit: "{batch}"

0 commit comments

Comments
 (0)