diff options
Diffstat (limited to 'shaping/src/shaper_stat.cpp')
| -rw-r--r-- | shaping/src/shaper_stat.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/shaping/src/shaper_stat.cpp b/shaping/src/shaper_stat.cpp index 6c9644b..b340995 100644 --- a/shaping/src/shaper_stat.cpp +++ b/shaping/src/shaper_stat.cpp @@ -74,6 +74,9 @@ struct shaping_stat* shaper_stat_init(int thread_num) goto ERROR; } + fieldstat_global_enable_prometheus_endpoint(9007, NULL); + //fieldstat_enable_prometheus_output(); + fieldstat_dynamic_set_output_interval(stat->instance, conf.output_interval_ms); fieldstat_dynamic_set_line_protocol_server(stat->instance, conf.telegraf_ip, conf.telegraf_port); if (conf.enable_backgroud_thread == 0) { |
