VictoriaMetrics/lib/promscrape/discovery/consul
Aliaksandr Valialkin 9330da3195
lib/promscrape/discovery/consul: expose service tags in individual labels __meta_consul_tag_<tagname>
This simplifies copying service tags to target labels with the following relabeling rule:

- action: labelmap
  regex: __meta_consul_tag_(.+)

See https://stackoverflow.com/questions/44339461/relabeling-in-prometheus
2022-12-19 13:02:56 -08:00
..
agent.go all: use %w instead of %s for wrapping errors in fmt.Errorf 2020-06-30 23:33:46 +03:00
agent_test.go lib/promscrape: add Prometheus-compatible service discovery for Consul aka consul_sd_configs 2020-05-04 20:53:06 +03:00
api.go all: use os.{Read|Write}File instead of ioutil.{Read|Write}File 2022-08-21 23:55:20 +03:00
consul.go lib/promscrape: optimize service discovery speed 2022-11-29 21:26:23 -08:00
service_node.go lib/promscrape/discovery/consul: expose service tags in individual labels __meta_consul_tag_<tagname> 2022-12-19 13:02:56 -08:00
service_node_test.go lib/promscrape/discovery/consul: expose service tags in individual labels __meta_consul_tag_<tagname> 2022-12-19 13:02:56 -08:00
watch.go lib/promscrape/discovery/consul: add __meta_consul_partition label in the same way as Prometheus does 2022-11-07 15:26:45 +02:00