diff options
| author | liuchang <[email protected]> | 2023-03-30 13:41:47 +0000 |
|---|---|---|
| committer | liuchang <[email protected]> | 2023-03-30 13:41:47 +0000 |
| commit | 2a08bca02ebf7b53c68a05571bf7a7629a03c204 (patch) | |
| tree | 87914bdd1229821955789a88967e56053771c6c1 /shaping/src/shaper_stat.cpp | |
| parent | 7f71a2b1736911e49a3287b8ab7fd7ccf880b8c8 (diff) | |
adapt maat4 new interfacev1.1.2
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) { |
