TSG-14599 tsg-service-chaining-engine支持新的Metrics结构

This commit is contained in:
luwenpeng
2023-04-10 14:52:12 +08:00
parent e62ea7e9f9
commit 30f1bda4d4
9 changed files with 72 additions and 12 deletions

View File

@@ -63,7 +63,7 @@ prometheus_listen_port=9001
prometheus_listen_url=/sce_prometheus
[metrics]
# Kafka Topic: SERVICE-CHAINING-METRICS
# Kafka Topic: POLICY-RULE-METRICS
enable=1
interval_s=1
telegraf_bind_address=127.0.0.1

View File

@@ -46,21 +46,17 @@
drop_original = true
stats = ["sum"]
fieldpass = ["sent_pkts", "sent_bytes", "recv_pkts", "recv_bytes"]
namepass = ["service_chaining_metrics"] # only "pass" swap metrics through the aggregator.
namepass = ["service_chaining_rule_hits"] # only "pass" swap metrics through the aggregator.
[[outputs.file]]
files = ["/tmp/sce_metrics.json", "stdout"]
data_format = "json"
json_transformation = '''
$merge([{"timestamp": timestamp}, tags, fields])
'''
json_timestamp_units = "1ms"
[[outputs.kafka]]
sasl_username = "admin"
sasl_password = "galaxy2019"
brokers = [ "192.168.44.12:9094" ]
topic = "SERVICE-CHAINING-METRICS"
topic = "POLICY-RULE-METRICS"
data_format = "json"
json_transformation = '''
$merge([{"timestamp": timestamp}, tags, fields])
'''
json_timestamp_units = "1ms"