update sapp, field_stat etc to support prometheus output.
This commit is contained in:
Binary file not shown.
14
roles/app_proto_identify/tasks/main.yml
Normal file
14
roles/app_proto_identify/tasks/main.yml
Normal file
@@ -0,0 +1,14 @@
|
||||
---
|
||||
- name: "copy app_proto_identify rpm package destination server"
|
||||
copy:
|
||||
src: "{{ role_path }}/files/"
|
||||
dest: /tmp/ansible_deploy/
|
||||
|
||||
- name: "install app_proto_identify"
|
||||
yum:
|
||||
name: "{{ app_packages }}"
|
||||
state: present
|
||||
skip_broken: yes
|
||||
vars:
|
||||
app_packages:
|
||||
- /tmp/ansible_deploy/app_proto_identify-1.0.7.a5113ba-2.el7.x86_64.rpm
|
||||
Binary file not shown.
@@ -14,7 +14,7 @@
|
||||
- /tmp/ansible_deploy/libdocumentanalyze-2.0.6.2d1abe0-2.el7.x86_64.rpm
|
||||
- /tmp/ansible_deploy/libmaatframe-3.1.3.4fbcf21-2.el7.x86_64.rpm
|
||||
- /tmp/ansible_deploy/libMESA_field_stat-1.0.2.6d45eed-2.el7.x86_64.rpm
|
||||
- /tmp/ansible_deploy/libMESA_field_stat2-2.9.7.2.9.7.2.9.7.0ec8a76-2.el7.x86_64.rpm
|
||||
- /tmp/ansible_deploy/libMESA_field_stat2-2.9.9.6b5f3c7-2.el7.x86_64.rpm
|
||||
- /tmp/ansible_deploy/libMESA_handle_logger-2.0.7.cb4ad71-2.el7.x86_64.rpm
|
||||
- /tmp/ansible_deploy/libMESA_htable-3.10.12.cf4ccfc-2.el7.x86_64.rpm
|
||||
- /tmp/ansible_deploy/libMESA_prof_load-1.0.6.c6da36a-2.el7.x86_64.rpm
|
||||
|
||||
BIN
roles/sapp/files/sapp-4.2.6.cd822b1-2.el7.x86_64.rpm
Normal file
BIN
roles/sapp/files/sapp-4.2.6.cd822b1-2.el7.x86_64.rpm
Normal file
Binary file not shown.
@@ -13,7 +13,7 @@
|
||||
- name: "install sapp rpms from localhost"
|
||||
yum:
|
||||
name:
|
||||
- /tmp/ansible_deploy/sapp-4.2.5.d8bc307-2.el7.x86_64.rpm
|
||||
- /tmp/ansible_deploy/sapp-4.2.6.cd822b1-2.el7.x86_64.rpm
|
||||
state: present
|
||||
skip_broken: yes
|
||||
|
||||
|
||||
@@ -6,9 +6,9 @@
|
||||
#./plug/platform/g_device_plug/g_device_plug.inf
|
||||
#./plug/platform/http_healthcheck/http_healthcheck.inf
|
||||
{% endif %}
|
||||
./plug/platform/app_proto_identify/app_proto_identify.inf
|
||||
./plug/platform/tsg_master/tsg_master.inf
|
||||
{% if tsg_app_enable == 1 %}
|
||||
./plug/platform/app_proto_identify/app_proto_identify.inf
|
||||
./plug/platform/app_master/app_master.inf
|
||||
{% endif %}
|
||||
|
||||
|
||||
@@ -175,6 +175,11 @@ dictator_enable=0
|
||||
metric_type = default
|
||||
app_name=sapp
|
||||
|
||||
[profiling.log.prometheus]
|
||||
prometheus_enabled={{ sapp_prometheus_enable }}
|
||||
prometheus_port={{ sapp_prometheus_port }}
|
||||
prometheus_url_path={{ sapp_prometheus_url_path }}
|
||||
|
||||
[TOOLS]
|
||||
[tools.pkt_dump]
|
||||
enabled=0
|
||||
|
||||
@@ -21,29 +21,8 @@
|
||||
rotation_max_size = "100MB"
|
||||
rotation_max_archives = 5
|
||||
|
||||
[[aggregators.basicstats]]
|
||||
period = "15s"
|
||||
namepass = ["TRAFFIC", "intercept", "hit_share", "tcp_links", "udp_links", "success_log", "failed_log", "bypass", "drop_log",
|
||||
"byp_intcp_err","e_get_link_mode_err","e_no_link_mode_bysyn","e_asym_route","e_no_syn","e_no_s/a","e_ip_hdr","e_exc_mtu",
|
||||
"e_tfe_tx","e_tup2stm_add","e_no_tfe","e_dup_tfc","e_cmsg_add","intcp_stm","intcp_B","ipv4_stm","ipv6_stm","ssl_stm",
|
||||
"http_stm","dup_tfc_stm","dup_tfc_B","intcp_rdy_stm","intcp_rdy_B","pme_new","pme_free","pme_cnt","e_sendlog","e_id2pme_add",
|
||||
"e_id2pme_del","e_tup2stm_add","e_tup2stm_del","e_sapp_inject","e_bloom_srch","e_bloom_add","id2pme_add_S","id2pme_del_S",
|
||||
"id2pme_cnt","tup2stm_add_S","tup2stm_del_S","tup2stm_hit","tup2stm_miss","sendlog_S","sapp_inject_S","bloom_hit","bloom_miss",
|
||||
"id2ssl_add_S","id2ssl_del_S","id2ssl_cnt","ssl2pass_add_S","ssl2pass_del_S","ssl2pass_cnt","dy_pass_stm","dy_pass_B",
|
||||
"dy_pass_ipv6_stm","dy_pass_ipv4_stm","bloom_cnt","tuple2stm_cnt","usess_hit", "dsess_hit", "dtkt_hit", "SIGPIPE", "fd_rx",
|
||||
"fd_rx_err", "fd_inst_cls", "stm_open", "stm_cls", "dstm_eof","ustm_eof", "dstm_err", "ustm_err", "stm_kill", "stm_incpt",
|
||||
"stm_byp", "stm_incpt_B", "dstm_incpt_B", "ustm_incpt_B","plain", "ssl", "ussl_new", "ussl_err", "ussl_e_ciph", "ussl_e_prt",
|
||||
"ussl_clsing", "ussl_clsd", "ussl_dt_cls", "usess_cache","dssl_new", "dssl_err", "dssl_e_cert", "dssl_e_fb", "dssl_clsing",
|
||||
"dssl_clsd", "dssl_dt_cls", "dsess_cache", "dtkt_new","dtkt_notfnd", "ssl_no_chlo", "ssl_no_sni", "ssl_fk_crt", "kyr_cache",
|
||||
"kyr_ask", "kyr_new", "ssl_pinning", "ssl_mauth","ssl_ct_crt", "ssl_ev_crt", "app_no_pinning", "trusted_cert_nums", "doh_sess",
|
||||
"doh_log", "doh_hijack", "http_sess", "log_num","intcp_mon_num", "intcp_deny_num", "intcp_rdirt_num", "intcp_repl_num",
|
||||
"intcp_hijk_num", "hijk_bytes", "intcp_ins_num", "ins_bytes","intcp_allow_num", "suspending"]
|
||||
drop_original = false
|
||||
stats = ["sum"]
|
||||
|
||||
[[outputs.kafka]]
|
||||
brokers = [ {{ telegraf_kafkabrokers.address }} ]
|
||||
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"
|
||||
[[inputs.tcp_listener]]
|
||||
|
||||
BIN
roles/tsg_master/files/tsg_master-3.3.8.7a5aea4-2.el7.x86_64.rpm
Normal file
BIN
roles/tsg_master/files/tsg_master-3.3.8.7a5aea4-2.el7.x86_64.rpm
Normal file
Binary file not shown.
@@ -6,6 +6,6 @@
|
||||
- name: "install tsg_master from localhost"
|
||||
yum:
|
||||
name:
|
||||
- /tmp/ansible_deploy/tsg_master-3.3.6.39335c9-2.el7.x86_64.rpm
|
||||
- /tmp/ansible_deploy/tsg_master-3.3.8.7a5aea4-2.el7.x86_64.rpm
|
||||
state: present
|
||||
skip_broken: yes
|
||||
|
||||
Reference in New Issue
Block a user