summaryrefslogtreecommitdiff
path: root/conf
diff options
context:
space:
mode:
authorluwenpeng <[email protected]>2023-04-10 14:52:12 +0800
committerluwenpeng <[email protected]>2023-04-10 18:48:27 +0800
commit30f1bda4d478ce63fb17923ee9f71a272e2cfbeb (patch)
treed44b182dc16ac7d803e8662f1ff1b30e6b821803 /conf
parente62ea7e9f9a3862e087740491e2859f924410e9c (diff)
TSG-14599 tsg-service-chaining-engine支持新的Metrics结构
Diffstat (limited to 'conf')
-rw-r--r--conf/sce.conf2
-rw-r--r--conf/sce_telegraf.conf12
2 files changed, 5 insertions, 9 deletions
diff --git a/conf/sce.conf b/conf/sce.conf
index 2301c37..73af692 100644
--- a/conf/sce.conf
+++ b/conf/sce.conf
@@ -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
diff --git a/conf/sce_telegraf.conf b/conf/sce_telegraf.conf
index cb64c02..0e6fbe2 100644
--- a/conf/sce_telegraf.conf
+++ b/conf/sce_telegraf.conf
@@ -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])
- ''' \ No newline at end of file
+ json_timestamp_units = "1ms" \ No newline at end of file