docker-sensors-polling/conf-example.yml

28 lines
779 B
YAML
Raw Permalink Normal View History

2024-02-04 20:19:01 +00:00
http_port: 3000
polling_conf:
- name: teleinfo
metrics:
- name: Modane_elec_main_power
type: int
- name: Modane_elec_energy_index
type: int
2024-02-04 23:21:47 +00:00
# The output of the command must be a JSON dict with metrics name as keys and metrics value as value.
executable: ./read_teleinfo.py
2024-02-04 20:19:01 +00:00
arguments:
- "-f"
- "custom_json"
# interval between sensors polling in seconds
polling_interval: 10.0
# Default interval between sending to record API in seconds
default_recording_interval: 600.0
# Default interval between sensors polling in seconds
default_polling_interval: 600.0
recording_api_key: "FIXME"
post_url:
int: "http://ovh1.scimetis.net:3001/integer_metric/add"
float: "http://ovh1.scimetis.net:3001/float_metric/add"