Closed andyfr closed 8 months ago
It took me a while to figure out it need to add it to the scrape configuration in prometheus.tpl. (Never used victoriadb/prometheus before)
Is there a recommended way to replace the configuration? As far as I can see, this might be related to Map the Home Assistant config directory to the add-on container, although I don't care about the location of the configuration file, as long as I can change it ;)
It took me a while to figure out it need to add it to the scrape configuration in prometheus.tpl. (Never used victoriadb/prometheus before)
Is there a recommended way to replace the configuration? As far as I can see, this might be related to Map the Home Assistant config directory to the add-on container, although I don't care about the location of the configuration file, as long as I can change it ;)
Hey @andyfr, we have a great coockbook about relabeling. You can practice at https://play.victoriametrics.com/select/accounting/1/6a716b0f-38bc-4856-90ce-448fd713e3fe/prometheus/graph/#/?g0.range_input=30m&g0.end_input=2023-10-16T04%3A34%3A31&g0.tab=0&g0.relative_time=last_30_minutes
@denisgolius Thanx for your help!
Hi,
I want to change some labels and the name of metrics. I followed the VictoriaDB guide and setup a relabel config. Now I'm struggling with where to place the relabel config.
Does this work at all, when using the influx integration?
For completeness, I want to apply following config:
replacement: '$1' target_label: plant_id
replacement: '$1' target_label: sensor_type
replacement: sensor.plant_sensor target_label: name