forked from lesovsky/pgscv
-
-
Notifications
You must be signed in to change notification settings - Fork 14
Open
Description
Is your feature request related to a problem? Please describe.
I'm using the service discovery option to get a list of targets, there are problems with that.:
- There is no way to specify
common labelsthat would apply to alltargets - An additional target
system:0is always created, which cannot be configured in any way
Describe the solution you'd like
I would like to have the common_labels option, in which you can specify parameters for all targets:
common_labels:
- name: instance
value: server_nameI would like to be able to completely disable the target system:0 or be able to configure its target_labels:
system_target: false
# or
services:
custom_name:
service_type: system
target_labels:
- name: instance
value: server_nameDescribe alternatives you've considered
So far I have to use relabel_configs to work with labels:
job_name: pgscv
...
relabel_configs:
- source_labels: [ __address__ ]
regex: .*target=system:0
target_label: instance
replacement: service_system
- target_label: exporter
replacement: pgscvReactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels