-
Notifications
You must be signed in to change notification settings - Fork 5
/
dynatrace_exporter.yml
76 lines (70 loc) · 2.48 KB
/
dynatrace_exporter.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
# General configurations
general:
api:
# API base URL. Should end with "/api/v2"
url: "https://xxxxxxxxxx/api/v2"
# Dynatrace API key
apiKey: "Api-Token xxxxxxxxxx"
# Additional custom headers for HTTP requests
headers:
# Number of parallel threads to use to fetch metrics. 1 or lower to disable multithreading
threads: 12
# Max number of results to return in one request. Max allowed by dynatrace is 4000
pageSize: 4000
# Collectors configuration
collectors:
# Collecting health of Dynatrace entities with type 'service'
service:
enabled: true
# Service's type whitelist. Empty or undefined to allow all types of service
# service_type:
# - "DATABASE_SERVICE"
# Collecting health of Dynatrace entities with type 'application'
application:
enabled: true
# Collecting health of Dynatrace entities with type 'host'
host:
enabled: true
# Collecting Dynatrace metrics
metrics:
enabled: true
# Maximal number of metrics fetched to batch fetch in each requet. Max allowed by dynatrace is 10
batchSize: 10
# Allow deprecated metrics
deprecated: false
# Additionnal URL parameters. See full list here: https://www.dynatrace.com/support/help/dynatrace-api/environment-api/metric-v2/get-data-points
params:
# Number of points to retrieve
resolution: 12
# Time range of query
from: now-6h
# Metrics regex whitelist. Empty or undefined to allow all metrics.
# Warning: enabling all (or at least a lot of) metrics might slow the exporter down to several seconds, or even minutes.
# Be careful to timeouts on Prometheus side.
whitelist:
- builtin:apps.+
# - builtin:tech.+
# - builtin:service.+
# - builtin:host.+
# - builtin:cloud.+
# - builtin:pgi.+
# - builtin:containers.+
# - builtin:kubernetes.+
# - builtin:billing.+
# - builtin:synthetic.+
# - builtin:queue.+
# - builtin:security.+
# - builtin:span.+
# - builtin:dashboards.+
# - builtin:process.+
# - builtin:osservice.+
# - calc:.+
# - dsfm:.+
# - ext:.+
# - func:.+
# Logging configurations
logging:
# Minimal log level: DEBUG, INFO, WARNING, ERROR, CRITICAL
level: INFO
# Log format. To see all available attributes: https://docs.python.org/3/library/logging.html#logrecord-attributes
format: "%(asctime)s %(levelname)s [%(threadName)s] - (%(filename)s#%(lineno)d) - %(message)s"