Yes, use file_sd_configs 
<https://prometheus.io/docs/prometheus/latest/configuration/configuration/#file_sd_config>
 
instead of static_configs.

    file_sd_configs:
      - files:
        - /etc/prometheus/targets.d/cluster_a.yml
        - /etc/prometheus/targets.d/cluster_b.yml

This has the additional advantage that prometheus automatically detects 
whenever these files change - you don't need to send it a signal to re-read 
them.

-- 
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/b6938257-a41c-4813-9eac-4d33fcec4f77o%40googlegroups.com.

Reply via email to