From f2348cb6861277df78afa4c1e247ddfb99ab298f Mon Sep 17 00:00:00 2001 From: fumingwei Date: Sat, 14 Nov 2020 16:32:28 +0600 Subject: [PATCH] 1. modify exporter_proxy nginx.conf 2. modify telegraf_statistic.conf to delete promeious client --- roles/adc_exporter_proxy/templates/nginx.conf.j2 | 16 ++++++++++++++++ .../templates/telegraf_statistic.conf.j2 | 3 --- 2 files changed, 16 insertions(+), 3 deletions(-) diff --git a/roles/adc_exporter_proxy/templates/nginx.conf.j2 b/roles/adc_exporter_proxy/templates/nginx.conf.j2 index 0584441..cf8fc5f 100644 --- a/roles/adc_exporter_proxy/templates/nginx.conf.j2 +++ b/roles/adc_exporter_proxy/templates/nginx.conf.j2 @@ -68,5 +68,21 @@ http { location /metrics/blade/mcn3/systemd_exporter { proxy_pass http://192.168.100.4:9558/metrics; } + + location /metrics/blade/mcn0/certstore { + proxy_pass http://192.168.100.1:9002/metrics; + } + + location /metrics/blade/mcn1/tfe { + proxy_pass http://192.168.100.2:9001/metrics; + } + + location /metrics/blade/mcn2/tfe { + proxy_pass http://192.168.100.3:9001/metrics; + } + + location /metrics/blade/mcn3/tfe { + proxy_pass http://192.168.100.4:9001/metrics; + } } } diff --git a/roles/telegraf_statistic/templates/telegraf_statistic.conf.j2 b/roles/telegraf_statistic/templates/telegraf_statistic.conf.j2 index ebf1897..662b481 100644 --- a/roles/telegraf_statistic/templates/telegraf_statistic.conf.j2 +++ b/roles/telegraf_statistic/templates/telegraf_statistic.conf.j2 @@ -46,9 +46,6 @@ fieldpass = [ "*_conn_num", "*_bytes", "*_in_packets", "*_out_packets", "intercept", "hit_share", "tcp_links", "udp_links", "success_log", "failed_log", "bypass", "drop_log","pinning_num","*pinning_num","intcp_*_num"] topic = "TRAFFIC-METRICS-LOG" data_format = "json" -[[outputs.prometheus_client]] - listen = ":9273" - path = "/metrics" [[inputs.tcp_listener]] [[inputs.udp_listener]] ServiceAddress= ":8100"