From 841bd252a065d65eee9cff38430bc240cab3d1af Mon Sep 17 00:00:00 2001 From: "Frank Ch. Eigler" Date: Wed, 25 Nov 2020 21:20:27 -0500 Subject: [PATCH] debuginfod: correct prometheus metric typo 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 --- debuginfod/ChangeLog | 10 +++++++--- debuginfod/debuginfod.cxx | 2 +- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/debuginfod/ChangeLog b/debuginfod/ChangeLog index d38683837..aaffac7c0 100644 --- a/debuginfod/ChangeLog +++ b/debuginfod/ChangeLog @@ -1,7 +1,6 @@ -2020-11-23 Mark Wielaard +2020-11-25 Frank Ch. Eigler - * 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 @@ -15,6 +14,11 @@ (sqlite_ps::reset, step*): Call it to track sqlite3 performance. (sqlite_exception ctor): Increment sqlite3 error_count. +2020-11-23 Mark Wielaard + + * debuginfod-client.c (debuginfod_query_server): Initialize + struct handle_data errbuf to the empty string. + 2020-11-11 Mark Wielaard * debuginfod-client.c (debuginfod_set_verbose_fd): New function. diff --git a/debuginfod/debuginfod.cxx b/debuginfod/debuginfod.cxx index 9da4c44a9..41698787c 100644 --- a/debuginfod/debuginfod.cxx +++ b/debuginfod/debuginfod.cxx @@ -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; -- 2.47.2