From: Frank Ch. Eigler Date: Thu, 26 Nov 2020 02:20:27 +0000 (-0500) Subject: debuginfod: correct prometheus metric typo X-Git-Tag: elfutils-0.183~74 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=841bd252a065d65eee9cff38430bc240cab3d1af;p=thirdparty%2Felfutils.git 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 --- 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;