forked from bitlair/ansible
84 lines
2.6 KiB
YAML
84 lines
2.6 KiB
YAML
# {{ ansible_managed }}
|
|
|
|
log_level: INFO
|
|
|
|
mqtt:
|
|
host: {{ mqtt_public_host }}
|
|
port: 1883
|
|
|
|
prometheus:
|
|
port: {{ monitoring_mqtt_exporter_port }}
|
|
|
|
|
|
# Topics must be relayed by the internal MQTT server!
|
|
export:
|
|
- subscribe: bitlair/#
|
|
- subscribe: bitlair/climate/+location/#
|
|
- subscribe: bitlair/climate/+location/dust_mass/+size
|
|
- subscribe: bitlair/power/+net/+group/#
|
|
- subscribe: bitlair/wifi/+ssid/#
|
|
|
|
- subscribe: bitlair/state
|
|
metric_type: enum
|
|
enum_states: [open, closed]
|
|
|
|
- subscribe: bitlair/state/djo
|
|
metric_type: enum
|
|
enum_states: [open, closed]
|
|
|
|
- subscribe: bitlair/doorduino/lockstate
|
|
metric_type: enum
|
|
enum_states: [open, closed]
|
|
|
|
- subscribe: bitlair/pos/product
|
|
metric_type: counter
|
|
labels:
|
|
product: payload
|
|
|
|
- subscribe: bitlair/collectd/bitlair-5406/snmp/if_octets-traffic.D15
|
|
metric_name: bitlair_internet_rx
|
|
value_regex: "^.+:(.+):"
|
|
- subscribe: bitlair/collectd/bitlair-5406/snmp/if_octets-traffic.D15
|
|
metric_name: bitlair_internet_tx
|
|
value_regex: "^.+:.+:([\\d\\.]+)"
|
|
|
|
- subscribe: bitlair/collectd/bitlair-5406/snmp/if_octets-traffic.A2
|
|
metric_name: bitlair_lancache_rx
|
|
value_regex: "^.+:(.+):"
|
|
- subscribe: bitlair/collectd/bitlair-5406/snmp/if_octets-traffic.A2
|
|
metric_name: bitlair_lancache_tx
|
|
value_regex: "^.+:.+:([\\d\\.]+)"
|
|
|
|
- subscribe: bitlair/collectd/apc_powerbar/snmp/current
|
|
metric_name: bitlair_powerbar_current_da
|
|
value_regex: "^.+:(\\d+)"
|
|
|
|
- subscribe: bitlair/power/shelly/+num/status/switch:0
|
|
metric_name: bitlair_power_shelly
|
|
value_json: .apower
|
|
|
|
- subscribe: bambulab/device/+serial/report
|
|
metric_name: bambulab_nozzle_temperature
|
|
value_json: .print.nozzle_temper
|
|
- subscribe: bambulab/device/+serial/report
|
|
metric_name: bambulab_nozzle_target_temperature
|
|
value_json: .print.nozzle_target_temper
|
|
- subscribe: bambulab/device/+serial/report
|
|
metric_name: bambulab_bed_temperature
|
|
value_json: .print.bed_temper
|
|
- subscribe: bambulab/device/+serial/report
|
|
metric_name: bambulab_bed_target_temperature
|
|
value_json: .print.bed_target_temper
|
|
- subscribe: bambulab/device/+serial/report
|
|
metric_name: bambulab_chamber_temperature
|
|
value_json: .print.chamber_temper
|
|
- subscribe: bambulab/device/+serial/report
|
|
metric_name: bambulab_ams_humidity
|
|
value_json: .print.ams.ams[0].humidity
|
|
- subscribe: bambulab/device/+serial/report
|
|
metric_name: bambulab_print_progress
|
|
value_json: .print.mc_percent
|
|
- subscribe: bambulab/device/+serial/report
|
|
metric_name: bambulab_print_status
|
|
metric_type: info
|
|
value_json: .print.gcode_state
|