Skip to content

Commit

Permalink
DONOTMERGE: Dump received metrics to debug parser/exporter breaking
Browse files Browse the repository at this point in the history
  • Loading branch information
JavierJF committed Aug 20, 2024
1 parent af80b31 commit 7cb5d78
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test/tap/tests/test_prometheus_metrics-t.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,14 @@ int get_cur_metrics(MYSQL* admin, map<string,double>& metrics_vals) {
}

mysql_free_result(p_resulset);
// TODO: Remove, debugging issue
diag("Dumping received Prometheus metrics:");
diag("####################################");
printf("\n");
printf("%s", row_value.c_str());
printf("\n");
diag("####################################");

metrics_vals = parse_prometheus_metrics(row_value);

return EXIT_SUCCESS;
Expand Down

0 comments on commit 7cb5d78

Please sign in to comment.