Skip to content

Commit 928235c

Browse files
authored
Merge pull request #10800 from Icinga/fix-otel-stats
OTLPMetricsWriter: don't add queue stats as counter
2 parents d7ed56b + bc5f01d commit 928235c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/perfdata/otlpmetricswriter.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,9 @@ void OTLPMetricsWriter::StatsFunc(const Dictionary::Ptr& status, const Array::Pt
4848
{"data_buffer_bytes", messageSize},
4949
});
5050

51-
perfdata->Add(new PerfdataValue("otlpmetricswriter_" + name + "_work_queue_items", workQueueSize, true));
51+
perfdata->Add(new PerfdataValue("otlpmetricswriter_" + name + "_work_queue_items", workQueueSize));
5252
perfdata->Add(new PerfdataValue("otlpmetricswriter_" + name + "_work_queue_item_rate", workQueueItemRate));
53-
perfdata->Add(new PerfdataValue("otlpmetricswriter_" + name + "_data_buffer_items", dataPointsCount, true));
53+
perfdata->Add(new PerfdataValue("otlpmetricswriter_" + name + "_data_buffer_items", dataPointsCount));
5454
perfdata->Add(new PerfdataValue("otlpmetricswriter_" + name + "_data_buffer_bytes", messageSize, false, "bytes"));
5555
}
5656
status->Set("otlpmetricswriter", new Dictionary{std::move(statusData)});

0 commit comments

Comments
 (0)