/
config.example.yml
67 lines (59 loc) · 1.87 KB
/
config.example.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
---
################################################################################
# Example configuration. This configuration contains all the keys and their
# respective defaults (if any).
# Section for connecting to the RCT device
device:
# IP or host name
host: 127.0.0.1
# Network port
port: 8899
# Monitoring the program
prometheus:
# Enables the prometheus endpoint for monitoring.
enable: true
# Enables exposing the readings from the device via prometheus
exposition: false
# Port to which to bind on the bind-address
bind_port: 9831
# Address to which to bind
bind_address: 127.0.0.1
# Settings for InfluxDB 1.8 or 2.x
influxdb:
# Enables writing to InfluxDB
enable: false
# API endpoint where InfluxDB is listening
url: http://localhost:8086
# Auth token. For InfluxDB 1.8 use the format 'username:password'.
token: your-token
# Organization, InfluxDB 1.8 ignores this value
org: rct
# Bucket name, InfluxDB 1.8 uses this as database name
bucket: rct-inverter
# Configuration for the logging behaviour of the application. It can be left
# out entirely for most use-cases, the following shows the internal defaults
# will be used then. If set, it is handed to "logging.config.dictConfig".
# For more details, see:
# https://docs.python.org/3/library/logging.config.html#logging-config-dictschema
logging:
# mandatory, always 1
version: 1
# log format specifications
formatters:
simple:
format: '%(asctime)s - %(name)s - %(levelname)s - %(message)s'
handlers:
# output to standard output
console:
class: logging.StreamHandler
formatter: simple
level: INFO
stream: ext://sys.stdout
# root-logger config, can be refined in "loggers:" section. It defines the
# default for all loggers
root:
level: INFO
handlers: [console]
# loggers:
# rctmon.daemon:
# handlers: [console]