-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtelegraf.conf
89 lines (73 loc) · 2.16 KB
/
telegraf.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
[agent]
interval = "10s"
round_interval = true
metric_batch_size = 1000
metric_buffer_limit = 10000
collection_jitter = "0s"
flush_interval = "10s"
flush_jitter = "0s"
precision = "0s"
hostname = ""
omit_hostname = true
[[inputs.gnmi]]
addresses = ["1.2.3.4:57400"]
tls_enable = false
username = "cisco"
password = "cisco"
[inputs.gnmi.tags]
host = "ASR9000"
entity_name = "ASR9000"
[[inputs.gnmi.subscription]]
name = "arp-stats"
origin = "Cisco-IOS-XR-ipv4-arp-oper"
path = "/arp/nodes/node/traffic-interfaces/traffic-interface"
subscription_mode = "sample"
sample_interval = "60s"
[[inputs.gnmi]]
addresses = ["2.3.4.5:57400"]
tls_enable = false
username = "cisco"
password = "cisco"
[inputs.gnmi.tags]
host = "XRV9000"
entity_name = "XRV9000"
[[inputs.gnmi.subscription]]
name = "bgp-route-count"
origin = "Cisco-IOS-XR-ip-rib-ipv4-oper"
path = "/rib/rib-table-ids/rib-table-id/summary-protos/summary-proto/proto-route-count"
subscription_mode = "sample"
sample_interval = "60s"
[[inputs.gnmi.subscription]]
name = "memory-summary"
origin = "Cisco-IOS-XR-nto-misc-oper"
path = "/memory-summary/nodes/node/summary"
subscription_mode = "sample"
sample_interval = "60s"
[[inputs.gnmi.subscription]]
name = "cpu-utilization"
origin = "Cisco-IOS-XR-wdsysmon-fd-oper"
path = "/system-monitoring/cpu-utilization"
subscription_mode = "sample"
sample_interval = "60s"
[[processors.rename]]
[[processors.rename.replace]]
tag = "node_name"
dest = "subcomponent"
[[processors.rename.replace]]
tag = "interface_name"
dest = "subcomponent"
#[[outputs.file]]
# files = ["stdout"]
# data_format = "splunkmetric"
# splunkmetric_multimetric = true
# splunkmetric_hec_routing = true
[[outputs.http]]
url = "https://9.8.7.6:8089/services/collector"
method = "POST"
insecure_skip_verify = true
data_format = "splunkmetric"
splunkmetric_multimetric = true
splunkmetric_hec_routing = true
[outputs.http.headers]
Content-Type = "application/json"
Authorization = "Splunk xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"