diff options
author | Alexander Smirnov <alex@ydb.tech> | 2024-10-04 11:11:38 +0000 |
---|---|---|
committer | Alexander Smirnov <alex@ydb.tech> | 2024-10-04 11:11:38 +0000 |
commit | 6547f93cad0868da00a4e9e4d4dc63b26726653b (patch) | |
tree | f6a1ecd48d58a29cbb921167cb15a80aad1a1d21 /library/cpp/monlib/encode/prometheus/prometheus_encoder.cpp | |
parent | e55564f7a0a0ff7b638ce199c1b5005b696d349d (diff) | |
parent | 5d32f79de3c53b2eaebca9be84a7399d479f8549 (diff) | |
download | ydb-6547f93cad0868da00a4e9e4d4dc63b26726653b.tar.gz |
Merge branch 'rightlib' into mergelibs-241004-1110
Diffstat (limited to 'library/cpp/monlib/encode/prometheus/prometheus_encoder.cpp')
-rw-r--r-- | library/cpp/monlib/encode/prometheus/prometheus_encoder.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/library/cpp/monlib/encode/prometheus/prometheus_encoder.cpp b/library/cpp/monlib/encode/prometheus/prometheus_encoder.cpp index fc482a4570..0c6c23c466 100644 --- a/library/cpp/monlib/encode/prometheus/prometheus_encoder.cpp +++ b/library/cpp/monlib/encode/prometheus/prometheus_encoder.cpp @@ -106,7 +106,7 @@ namespace NMonitoring { private: // will replace invalid chars with '_' void WriteMetricName(TStringBuf name) { - Y_ENSURE(!name.Empty(), "trying to write metric with empty name"); + Y_ENSURE(!name.empty(), "trying to write metric with empty name"); char ch = name[0]; if (!NPrometheus::IsValidMetricNameStart(ch)) { @@ -131,7 +131,7 @@ namespace NMonitoring { WriteLabelValue(l.Value()); Out_->Write(", "); // trailign comma is supported in parsers } - if (!addLabelKey.Empty() && !addLabelValue.Empty()) { + if (!addLabelKey.empty() && !addLabelValue.empty()) { Out_->Write(addLabelKey); Out_->Write('='); WriteLabelValue(addLabelValue); @@ -162,12 +162,12 @@ namespace NMonitoring { { // (1) name WriteMetricName(name); - if (!suffix.Empty()) { + if (!suffix.empty()) { Out_->Write(suffix); } // (2) labels - if (!labels.Empty() || !addLabelKey.Empty()) { + if (!labels.Empty() || !addLabelKey.empty()) { WriteLabels(labels, addLabelKey, addLabelValue); } Out_->Write(' '); |