i have GCE project with multiple networks, i want prometheus to scrape only
specific network, is it possible? try adding it to filter in various ways
with no success.
error: googleapi: Error 400: Invalid value for field 'filter':
'network=europe-west1-net'. Invalid list filter expression., invalid"
conf:
- job_name: 'gce_scrape_node_europe-west1-b'
gce_sd_configs:
- project: myproject
zone: europe-west1-b
port: 9100
filter: 'network=mynetwork'
refresh_interval: 120s
relabel_configs:
- source_labels: [__meta_gce_label_network]
target_label: network
- source_labels: [__meta_gce_metadata_billing_component]
target_label: billing_component
- source_labels: [__meta_gce_instance_name]
target_label: instance
tried setting networkInterfaces.network / networkInterfaces[].network in
the filter as well and got the same error
--
You received this message because you are subscribed to the Google Groups
"Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/prometheus-users/ac69e586-db0b-4c09-a030-7f5ceb023ad1n%40googlegroups.com.