debuginfod: correct prometheus metric typo
authorFrank Ch. Eigler <fche@redhat.com>
Thu, 26 Nov 2020 02:20:27 +0000 (21:20 -0500)
committerFrank Ch. Eigler <fche@redhat.com>
Thu, 26 Nov 2020 02:20:27 +0000 (21:20 -0500)
The "-" character is not allowed in a metric label_name, whoops,
so use "_" for one of the new sqlite metrics.

Signed-off-by: Frank Ch. Eigler <fche@redhat.com>
debuginfod/ChangeLog
debuginfod/debuginfod.cxx

index d386838..aaffac7 100644 (file)
@@ -1,7 +1,6 @@
-2020-11-23  Mark Wielaard  <mark@klomp.org>
+2020-11-25  Frank Ch. Eigler  <fche@redhat.com>
 
-       * debuginfod-client.c (debuginfod_query_server): Initialize
-       struct handle_data errbuf to the empty string.
+       * debuginfod.cxx (step_ok_done): Correct typo in prom metric label.
 
 2020-11-25  Frank Ch. Eigler  <fche@redhat.com>
 
        (sqlite_ps::reset, step*): Call it to track sqlite3 performance.
        (sqlite_exception ctor): Increment sqlite3 error_count.
 
+2020-11-23  Mark Wielaard  <mark@klomp.org>
+
+       * debuginfod-client.c (debuginfod_query_server): Initialize
+       struct handle_data errbuf to the empty string.
+
 2020-11-11  Mark Wielaard  <mark@klomp.org>
 
        * debuginfod-client.c (debuginfod_set_verbose_fd): New function.
index 9da4c44..4169878 100644 (file)
@@ -825,7 +825,7 @@ public:
 
 
   void step_ok_done() {
-    tmp_ms_metric tick("sqlite3","step-done",nickname);
+    tmp_ms_metric tick("sqlite3","step_done",nickname);
     int rc = sqlite3_step (this->pp);
     if (verbose > 4)
       obatched(clog) << nickname << " step-ok-done(" << sqlite3_errstr(rc) << ") " << sql << endl;