-
Notifications
You must be signed in to change notification settings - Fork 9
/
config.example.yml
93 lines (81 loc) · 2.6 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
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
---
################################################################################
# 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: https://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
mqtt:
# Enables writing to MQTT
enable: false
# Hostname of the MQTT broker to write to
mqtt_host: localhost
# Port of the MQTT server to use
# mqtt_port: 1883
# Overwrite topic prefix
# topic_prefix: rctmon/rct01
# user and password to authenticate
auth_user: test
auth_pass: "*********"
# enable TLS/SSL encryption, most likely `mqtt_port` needs to be set, too
tls_enable: false
#tls_insecure: false
# the mqtt library is very strict in checking TLS certificates.
# if you use self-signed certificates, you need to export it and
# give the path here.
tls_ca_cert: ./env/ca.pem
# Give path to client certificate and key here for authentication.
# tls_certfile: ./env/cert.pem
# tls_keyfile: ./env/key.pem
# 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:https://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]