generated from ytturi/python_pkg_template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathac.cfg
62 lines (62 loc) · 2.11 KB
/
ac.cfg
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
# -*- coding: utf-8 -*-
# -----------------------------------------------------------------------------
# Author: Ytturi
# Author's e-mail: [email protected]
# Version: 0.1
# License: MIT
# -----------------------------------------------------------------------------
[LOGGING]
# See: https://docs.python.org/2/library/logging.html#logging-levels
# DEBUG > INFO > CRITICAL > NONE
level: INFO
# See: https://docs.python.org/2/library/logging.html#formatter-objects
format: [%(asctime)s][%(name)s][%(levelname)s]: %(message)s
# Path to save the log. False by default.
# False or none won't save the log into a file and therefore print it
# When daemonizing, the output will be lost
path: /var/log/ac.log
[CONNECTION]
proto: tcp
# Number of seconds between checks
interval: 1
# Number of seconds to wait until consider a fail to connect
timeout: 1
# Number of worker processes
# Defaults to the CPU amount
workers: 4
# Number of seconds to run
# When working as a daemon, it is recommended to be the same as the interval
# The duration is the send interval
duration: 5
[METRICS]
# Store of the metrics
# - "file" will create a file with the metrics and append them
# - Else, fill it with a hostname and a port to send the metrics
store: file
store-file: /tmp/metrics
#-----------------------
# Metrics interval
# Metric values will be aggregated every interval
interval: 5
# Metrics format
format: graphite
# The final metric name is composed by the prefix and the name itself.
# In graphite's syntax, this translates to 'prefix'.'name' <value> <timestamp>
# In prometheus' syntax, this translates to 'name'('prefix','name'=<value>) <timestamp>
#-----------------------
# Prefix for the metrics
# This prefix will be added previous to the metrics name
# The prefix may contain special words such as:
# - {host} for the hostname used. The '.' on ip addresses will be parsed to '_'
# - {port} port used
# Graphite prefix:
prefix: health.{host}.{port}
# Prometheus prefix:
# prefix: agent=health,host={host},port={port}
#-----------------------
# Metrics name
name: available
[SERVERS]
# Servers to try to connect
# 0.0.0.0: 8080
# localhost: 8088