-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.yml
98 lines (94 loc) · 2.68 KB
/
config.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
# Base exporter config
ami_client:
ip: "<ip>"
port: 5038
username: '<username>'
secret: '<secret>'
# General config
general:
log_level: "INFO"
login_validation_timeout: 10
fully_booted_validation_timeout: 60
response_timeout: 10
ping_timeout: 20
# Default settings
default:
scrape_interval: 15
action_response_timeout: 5
action_event_timeout: 15
action_priority: 1
action_context: "default"
action_caller_id: "python"
# Filter config
filter:
- event: "RTCPSend|RTCPReceived"
metrics:
- name: "rtcp_endpoint_x_fraction_lost"
description: "Aggregate fraction lost of RTCP events"
value:
type: counter
increment_value: "$Report0FractionLost"
labels:
- name: "endpoint"
value: "$CallerIDNum"
- name: "rtcp_endpoint_x_cumulative_lost"
description: "Aggregate cumulative lost of RTCP events"
value:
type: counter
increment_value: "$Report0CumulativeLost"
labels:
- name: "endpoint"
value: "$CallerIDNum"
# Action config
scrape:
interval: 15
actions:
- name: "QueueStatus"
collect:
- event: "QueueParams"
metrics:
- name: "queue_total"
description: "Available queues"
value:
type: gauge
set_value: "1"
labels:
- name: "queue"
value: "$Queue"
- event: "QueueMember"
metrics:
- name: "queue_member_count"
description: "Number of members currently logged into a specific queue"
value:
type: gauge
increment_value: "1"
value_on_scrape_start: 0
labels:
- name: "queue"
value: "$Queue"
- event: "QueueEntry"
metrics:
- name: "queue_entry_count"
description: "Number of entries in a specific queue"
value:
type: gauge
increment_value: "1"
value_on_scrape_start: 0
labels:
- name: "queue"
value: "$Queue"
until: "QueueStatusComplete"
- name: "PJSIPShowRegistrationInboundContactStatuses"
collect:
- event: "ContactStatusDetail"
metrics:
- name: "user_agents"
description: "User agents"
value:
type: gauge
increment_value: "1"
value_on_scrape_start: 0
labels:
- name: "user_agent"
value: "$UserAgent"
until: "ContactStatusDetailComplete"