Skip to content

Commit

Permalink
dnsdist: fix empty labels check in json stats endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
esensar committed Dec 16, 2024
1 parent 882718e commit fc8822a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pdns/dnsdistdist/dnsdist-web.cc
Original file line number Diff line number Diff line change
Expand Up @@ -931,7 +931,7 @@ static void addStatsToJSONObject(Json::object& obj)
if (entry.d_name == "special-memory-usage") {
continue; // Too expensive for get-all
}
if (entry.d_labels.empty()) {
if (!entry.d_labels.empty()) {
continue; // Skip labeled metrics to prevent duplicates
}
if (const auto& val = std::get_if<pdns::stat_t*>(&entry.d_value)) {
Expand Down

0 comments on commit fc8822a

Please sign in to comment.