-
Notifications
You must be signed in to change notification settings - Fork 88
Expand file tree
/
Copy pathexample-config-multi-database.yaml
More file actions
111 lines (93 loc) · 3.81 KB
/
example-config-multi-database.yaml
File metadata and controls
111 lines (93 loc) · 3.81 KB
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
# Example Oracle AI Database Metrics Exporter Configuration file.
# Environment variables of the form ${VAR_NAME} will be expanded.
databases:
## Path on which metrics will be served
# metricsPath: /metrics
## As many named database configurations may be defined as needed.
## It is recommended to define your database config in the config file, rather than using CLI arguments.
## Database connection information for the "db1" database.
db1:
## Database username
username: ${DB1_USERNAME}
## Database password
password: ${DB1_PASSWORD}
## Database connection url
url: localhost:1521/freepdb1
## Metrics query timeout for this database, in seconds
queryTimeout: 5
## Rely on Oracle AI Database External Authentication by network or OS
# externalAuth: false
## Database role
# role: SYSDBA
## Path to Oracle AI Database wallet, if using wallet
# tnsAdmin: /path/to/database/wallet
### Connection settings:
### Either the go-sql or Oracle AI Database connection pool may be used.
### To use the Oracle AI Database connection pool over the go-sql connection pool,
### set maxIdleConns to zero and configure the pool* settings.
### Connection pooling settings for the go-sql connection pool
## Max open connections for this database using go-sql connection pool
maxOpenConns: 10
## Max idle connections for this database using go-sql connection pool
maxIdleConns: 10
### Connection pooling settings for the Oracle AI Database connection pool
## Oracle AI Database connection pool increment.
# poolIncrement: 1
## Oracle AI Database Connection pool maximum size
# poolMaxConnections: 15
## Oracle AI Database Connection pool minimum size
# poolMinConnections: 15
## Arbitrary labels to add to each metric scraped from this database
# labels:
# label_name1: label_value1
# label_name2: label_value2
db2:
## Database username
username: ${DB2_USERNAME}
## Database password
password: ${DB2_PASSWORD}
## Database connection url
url: localhost:1522/freepdb1
## Metrics query timeout for this database, in seconds
queryTimeout: 5
## Rely on Oracle AI Database External Authentication by network or OS
# externalAuth: false
## Database role
# role: SYSDBA
## Path to Oracle AI Database wallet, if using wallet
# tnsAdmin: /path/to/database/wallet
### Connection settings:
### Either the go-sql or Oracle AI Database connection pool may be used.
### To use the Oracle AI Database connection pool over the go-sql connection pool,
### set maxIdleConns to zero and configure the pool* settings.
### Connection pooling settings for the go-sql connection pool
## Max open connections for this database using go-sql connection pool
maxOpenConns: 10
## Max idle connections for this database using go-sql connection pool
maxIdleConns: 10
### Connection pooling settings for the Oracle AI Database connection pool
## Oracle AI Database connection pool increment.
# poolIncrement: 1
## Oracle AI Database Connection pool maximum size
# poolMaxConnections: 15
## Oracle AI Database Connection pool minimum size
# poolMinConnections: 15
## Arbitrary labels to add to each metric scraped from this database
# labels:
# label_name1: label_value1
# label_name2: label_value2
metrics:
## How often to scrape metrics. If not provided, metrics will be scraped on request.
# scrapeInterval: 15s
## Path to default metrics file.
default: default-metrics.toml
## Paths to any custom metrics files
custom:
- custom-metrics-example/custom-metrics.toml
log:
# Path of log file
destination: /opt/alert.log
# Interval of log updates
interval: 15s
## Set disable to 1 to disable logging
# disable: 0