]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
rename metric name, promtool says:
authorOtto Moerbeek <otto.moerbeek@open-xchange.com>
Tue, 1 Feb 2022 15:36:30 +0000 (16:36 +0100)
committerOtto Moerbeek <otto.moerbeek@open-xchange.com>
Tue, 1 Feb 2022 15:37:09 +0000 (16:37 +0100)
pdns_recursor_non_resolving_ns_entries metric names should not contain abbreviated units

pdns/rec-snmp.cc
pdns/rec_channel_rec.cc
pdns/recursordist/RECURSOR-MIB.txt
pdns/recursordist/docs/metrics.rst
pdns/ws-recursor.cc

index f1d33799f20ae2dfd075113592502b7bf1e96182..e312135dc7772028e17acbe78f2b2aea50bb4214 100644 (file)
@@ -145,7 +145,7 @@ static const oid udp6InCsumErrorsOID[] = {RECURSOR_STATS_OID, 123};
 #endif /* __linux__ */
 static const oid sourceDisallowedNotifyOID[] = {RECURSOR_STATS_OID, 124};
 static const oid zoneDisallowedNotifyOID[] = {RECURSOR_STATS_OID, 125};
-static const oid nonResolvingNSEntriesOID[] = {RECURSOR_STATS_OID, 126};
+static const oid nonResolvingNameserverEntriesOID[] = {RECURSOR_STATS_OID, 126};
 
 static std::unordered_map<oid, std::string> s_statsMap;
 
@@ -380,6 +380,6 @@ RecursorSNMPAgent::RecursorSNMPAgent(const std::string& name, const std::string&
   registerCounter64Stat("almost-expired-pushed", almostExpiredPushed, OID_LENGTH(almostExpiredPushed));
   registerCounter64Stat("almost-expired-run", almostExpiredRun, OID_LENGTH(almostExpiredRun));
   registerCounter64Stat("almost-expired-exceptions", almostExpiredExceptions, OID_LENGTH(almostExpiredExceptions));
-  registerCounter64Stat("non-resolving-ns-entries", nonResolvingNSEntriesOID, OID_LENGTH(nonResolvingNSEntriesOID));
+  registerCounter64Stat("non-resolving-nameserver-entries", nonResolvingNameserverEntriesOID, OID_LENGTH(nonResolvingNameserverEntriesOID));
 #endif /* HAVE_NET_SNMP */
 }
index 3a56a59f7d46b88b6796f156956fcbf928821799..1010369cf04e62de24f86c23b39107a89fc27845 100644 (file)
@@ -1242,7 +1242,7 @@ static void registerAllStats1()
 
   addGetStat("nsspeeds-entries", getNsSpeedsSize);
   addGetStat("failed-host-entries", SyncRes::getFailedServersSize);
-  addGetStat("non-resolving-ns-entries", SyncRes::getNonResolvingNSSize);
+  addGetStat("non-resolving-nameserver-entries", SyncRes::getNonResolvingNSSize);
 
   addGetStat("concurrent-queries", getConcurrentQueries);
   addGetStat("security-status", &g_security_status);
index 2992e94710fd3ea89889b8bc243225a1cdd8cb73..dc21ae2224f43a8cef1aedadb998d354b5516fc8 100644 (file)
@@ -1054,7 +1054,7 @@ zoneDisallowedNotify OBJECT-TYPE
         "Number of NOTIFY operations not allowed by allow-notify-for"
     ::= { stats 125 }
 
-nonResolvingNSEntries OBJECT-TYPE
+nonResolvingNameserverEntries OBJECT-TYPE
     SYNTAX CounterBasedGauge64
     MAX-ACCESS read-only
     STATUS current
index c59fba5923ed53bc517f92aebbf0eb7f0739e19a..965aa955fdb90ddcf7a8f00c49e1cbcf121e97b0 100644 (file)
@@ -546,7 +546,7 @@ noerror-answers
 ^^^^^^^^^^^^^^^
 counts the number of times it answered NOERROR   since starting
 
-non-resolving-ns-entries
+non-resolving-nameserver-entries
 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 number of entries in the non-resolving NS name cache
 
index 3c31fc90af1a0387e68241bb176b99d004b39623..8a01b41eb342df4a7219ff8c72dd6388eb1cf905 100644 (file)
@@ -692,7 +692,7 @@ const std::map<std::string, MetricDefinition> MetricDefinitionStorage::d_metrics
   {"failed-host-entries",
    MetricDefinition(PrometheusMetricType::gauge,
                     "Number of entries in the failed NS cache")},
-  {"non-resolving-ns-entries",
+  {"non-resolving-nameserver-entries",
    MetricDefinition(PrometheusMetricType::gauge,
                     "Number of entries in the non-resolving NS name cache")},
   {"ignored-packets",