forked from nokia/ONAP-VESPA
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathves-agent.yml
125 lines (113 loc) · 3.38 KB
/
ves-agent.yml
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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
datadir: ./data
primaryCollector:
fqdn: localhost
port: 8443
# topic: mytopic
user: user
password: pass
passphrase: mypassphrase
heartbeat:
defaultInterval: 60s
measurement:
domainAbbreviation: Mvfs
defaultInterval: 300s
maxBufferingDuration: 1h
prometheus:
address: http://localhost:9090
timeout: 30s
keepalive: 30s
rules:
defaults:
vmId: '{{.labels.VNFC}}'
target: '{{.labels.VESField}}'
labels:
- name: CPUIdentifier
expr: "{{.labels.VCID}}"
- name: VMIdentifier
expr: '{{.vmId}}'
- name: FilesystemName
expr: '{{.labels.FISY}}'
metrics:
# - target: CPUUsageArray.PercentUsage
# expr: avg_over_time(CoreCPUPercent[{{.interval}}s])
- target: CPUUsageArray.PercentUsage
expr: CoreCPUPercent
- target: MemoryUsageArray.MemoryFree
expr: (MemoryTotal - MemoryUsed) / 1024
- target: MemoryUsageArray.MemoryUsed
expr: MemoryUsed / 1024
- target: MemoryUsageArray.MemoryConfigured
expr: MemoryTotal / 1024
- target: FilesystemUsageArray.BlockConfigured
expr: FileSystemTotal / 1000000000
- target: FilesystemUsageArray.BlockUsed
expr: FileSystemUsed / 1000000000
- target: AdditionalObjects
expr: FileSystemPercent
object_name: additionalFilesystemCounters
object_instance: percentFilesystemUsage
object_keys:
- name: filesystemName
expr: '{{.labels.FISY}}'
- target: AdditionalObjects
expr: MemoryPercent
object_name: additionalMemoryCounters
object_instance: percentMemoryUsage
object_keys:
- name: vmIdentifier
expr: '{{.vmId}}'
- target: AdditionalObjects
expr: RMQMemoryUsed
object_name: additionalMemoryCounters
object_instance: rmqMemoryUsed
object_keys:
- name: vmIdentifier
expr: '{{.vmId}}'
- target: AdditionalObjects
expr: RMQMemoryPercent
object_name: additionalMemoryCounters
object_instance: percentRmqMemoryUsage
object_keys:
- name: vmIdentifier
expr: '{{.vmId}}'
- target: AdditionalObjects
expr: BitsOutPerSec
object_name: additionalIpCounters
object_instance: bitsOutPerSec
object_keys:
- name: vNicIdentifier
expr: '{{.labels.VLNK}}'
- target: AdditionalObjects
expr: BitsInPerSec
object_name: additionalIpCounters
object_instance: bitsInPerSec
object_keys:
- name: vNicIdentifier
expr: '{{.labels.VLNK}}'
event:
vnfName: dpa2bhsxp5001v
# reportingEntityName: dpa2bhsxp5001vm001oam001
reportingEntityID: 1af5bfa9-40b4-4522-b045-40e54f0310fc
maxSize: 2000000
nfNamingCode: hsxp
nfcNamingCodes:
- type: oam
vnfcs: [lr-ope-0,lr-ope-1,lr-ope-2]
- type: etl
vnfcs: [lr-pro-0,lr-pro-1]
retryInterval: 5s
maxMissed: 2
alertManager:
bind: localhost:9095
cluster:
debug: true
displayLogs: false
# id: "1"
# peers:
# - id: "1"
# address: "127.0.0.1:6737"
# - id: "2"
# address: "127.0.0.1:6738"
# - id: "3"
# address: "127.0.0.1:6739"
debug: true