MCPcopy Create free account
hub / github.com/apache/trafficserver / prometheus_out_stats

Function prometheus_out_stats

plugins/stats_over_http/stats_over_http.cc:625–631  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

623}
624
625static void
626prometheus_out_stats(stats_state *my_state)
627{
628 TSRecordDump((TSRecordType)(TS_RECORDTYPE_PLUGIN | TS_RECORDTYPE_NODE | TS_RECORDTYPE_PROCESS), prometheus_out_stat, my_state);
629 APPEND_STAT_PROMETHEUS_NUMERIC("current_time_epoch_ms", "%" PRIu64, ms_since_epoch());
630 // No version printed, since string stats are not supported by Prometheus.
631}
632
633static void
634stats_process_write(TSCont contp, TSEvent event, stats_state *my_state)

Callers 1

stats_process_writeFunction · 0.85

Calls 2

TSRecordDumpFunction · 0.85
ms_since_epochFunction · 0.85

Tested by

no test coverage detected