Use file_sd. It's the same as static_configs (i.e. list of targets+labels), but bundled into a separate file, which makes it easier to edit or generate. Also, prometheus picks up changes automatically without a HUP. It's true though that each group of targets will need to be configured with its weblogic instance.
If you don't want to directly label the targets at scrape time, then make separate timeseries containing the mapping from instance <=> weblogic name, and then join on these other instances at query time. For example, using node_exporter and textfile_collector on each node, you can make each node *tell* prometheus what its weblogic instance name is. See: https://www.robustperception.io/how-to-have-labels-for-machine-roles https://www.robustperception.io/exposing-the-software-version-to-prometheus To make these joins possible, you want to keep the port number :8080 out of the instance label. See: https://www.robustperception.io/controlling-the-instance-label -- 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/dee3452f-f68f-4d69-a054-6aef4c6b2f4b%40googlegroups.com.

