-improve graphana compatibility
This commit is contained in:
parent
add2d29acf
commit
356c59ebb6
@ -44,48 +44,64 @@ TEH_handler_metrics (struct TEH_RequestContext *rc,
|
|||||||
|
|
||||||
(void) args;
|
(void) args;
|
||||||
GNUNET_asprintf (&reply,
|
GNUNET_asprintf (&reply,
|
||||||
"received_requests(type='%s') %llu\n"
|
"# HELP taler_exchange_serialization_failures "
|
||||||
"serialization_failures(type='%s') %llu\n"
|
" number of database serialization errors by
|
||||||
"received_requests(type='%s') %llu\n"
|
type\n"
|
||||||
"serialization_failures(type='%s') %llu\n"
|
"# TYPE taler_exchange_serialization_failures
|
||||||
"received_requests(type='%s') %llu\n"
|
counter\n"
|
||||||
"serialization_failures(type='%s') %llu\n"
|
"taler_exchange_serialization_failures{type='%s'}
|
||||||
"received_requests(type='%s') %llu\n"
|
%llu\n"
|
||||||
"serialization_failures(type='%s') %llu\n"
|
"taler_exchange_serialization_failures{type='%s'}
|
||||||
"received_requests(type='%s') %llu\n"
|
%llu\n"
|
||||||
"serialization_failures(type='%s') %llu\n"
|
"taler_exchange_serialization_failures{type='%s'}
|
||||||
"received_requests(type='%s') %llu\n"
|
%llu\n"
|
||||||
"serialization_failures(type='%s') %llu\n"
|
"taler_exchange_serialization_failures{type='%s'}
|
||||||
"received_requests(type='%s') %llu\n"
|
%llu\n"
|
||||||
"serialization_failures(type='%s') %llu\n",
|
"taler_exchange_serialization_failures{type='%s'}
|
||||||
"other",
|
%llu\n"
|
||||||
TEH_METRICS_num_requests[TEH_MT_OTHER],
|
"taler_exchange_serialization_failures{type='%s'}
|
||||||
|
%llu\n"
|
||||||
|
"taler_exchange_serialization_failures{type='%s'}
|
||||||
|
%llu\n"
|
||||||
|
"# HELP taler_exchange_received_requests "
|
||||||
|
" number of received requests by type\n"
|
||||||
|
"# TYPE taler_exchange_received_requests counter\n"
|
||||||
|
"taler_exchange_received_requests{type='%s'} %llu\n"
|
||||||
|
"taler_exchange_received_requests{type='%s'} %llu\n"
|
||||||
|
"taler_exchange_received_requests{type='%s'} %llu\n"
|
||||||
|
"taler_exchange_received_requests{type='%s'} %llu\n"
|
||||||
|
"taler_exchange_received_requests{type='%s'} %llu\n"
|
||||||
|
"taler_exchange_received_requests{type='%s'} %llu\n"
|
||||||
|
"taler_exchange_received_requests{type='%s'}
|
||||||
|
%llu\n",
|
||||||
"other",
|
"other",
|
||||||
TEH_METRICS_num_conflict[TEH_MT_OTHER],
|
TEH_METRICS_num_conflict[TEH_MT_OTHER],
|
||||||
"deposit",
|
"deposit",
|
||||||
TEH_METRICS_num_requests[TEH_MT_DEPOSIT],
|
|
||||||
"deposit",
|
|
||||||
TEH_METRICS_num_conflict[TEH_MT_DEPOSIT],
|
TEH_METRICS_num_conflict[TEH_MT_DEPOSIT],
|
||||||
"withdraw",
|
"withdraw",
|
||||||
TEH_METRICS_num_requests[TEH_MT_WITHDRAW],
|
|
||||||
"withdraw",
|
|
||||||
TEH_METRICS_num_conflict[TEH_MT_WITHDRAW],
|
TEH_METRICS_num_conflict[TEH_MT_WITHDRAW],
|
||||||
"melt",
|
"melt",
|
||||||
TEH_METRICS_num_requests[TEH_MT_MELT],
|
|
||||||
"melt",
|
|
||||||
TEH_METRICS_num_conflict[TEH_MT_MELT],
|
TEH_METRICS_num_conflict[TEH_MT_MELT],
|
||||||
"reveal-precheck",
|
"reveal-precheck",
|
||||||
TEH_METRICS_num_requests[TEH_MT_REVEAL_PRECHECK],
|
|
||||||
"reveal-precheck",
|
|
||||||
TEH_METRICS_num_conflict[TEH_MT_REVEAL_PRECHECK],
|
TEH_METRICS_num_conflict[TEH_MT_REVEAL_PRECHECK],
|
||||||
"reveal",
|
"reveal",
|
||||||
TEH_METRICS_num_requests[TEH_MT_REVEAL],
|
|
||||||
"reveal",
|
|
||||||
TEH_METRICS_num_conflict[TEH_MT_REVEAL],
|
TEH_METRICS_num_conflict[TEH_MT_REVEAL],
|
||||||
"reveal-persist",
|
"reveal-persist",
|
||||||
TEH_METRICS_num_requests[TEH_MT_REVEAL_PERSIST],
|
TEH_METRICS_num_conflict[TEH_MT_REVEAL_PERSIST],
|
||||||
|
"other",
|
||||||
|
TEH_METRICS_num_requests[TEH_MT_OTHER],
|
||||||
|
"deposit",
|
||||||
|
TEH_METRICS_num_requests[TEH_MT_DEPOSIT],
|
||||||
|
"withdraw",
|
||||||
|
TEH_METRICS_num_requests[TEH_MT_WITHDRAW],
|
||||||
|
"melt",
|
||||||
|
TEH_METRICS_num_requests[TEH_MT_MELT],
|
||||||
|
"reveal-precheck",
|
||||||
|
TEH_METRICS_num_requests[TEH_MT_REVEAL_PRECHECK],
|
||||||
|
"reveal",
|
||||||
|
TEH_METRICS_num_requests[TEH_MT_REVEAL],
|
||||||
"reveal-persist",
|
"reveal-persist",
|
||||||
TEH_METRICS_num_conflict[TEH_MT_REVEAL_PERSIST]);
|
TEH_METRICS_num_requests[TEH_MT_REVEAL_PERSIST]);
|
||||||
resp = MHD_create_response_from_buffer (strlen (reply),
|
resp = MHD_create_response_from_buffer (strlen (reply),
|
||||||
reply,
|
reply,
|
||||||
MHD_RESPMEM_MUST_FREE);
|
MHD_RESPMEM_MUST_FREE);
|
||||||
|
Loading…
Reference in New Issue
Block a user