Hi Expert,

Currently i have a hundred Weblogic JVM Instances that already configures 
into Prometheus and JMX Exporter. However, i need to change label name of 
the instance (hostname:port) into weblogic instance name. Here is the 
configuration of prometheus.yml :

  - job_name: 'jmx'
  #  scrape_interval: 60s
    static_configs:
    - targets: 
['xptcregosb01:8080','xptcregosb02:8080','xptcregosb03:8080','xptcregosb04:8080','xptcregsoa01:8080','xptcregsoa02:8080','xptcregsoa03:8080','xptcregsoa04:8080']
      labels:
        group: 'CRS'

    - targets: 
['xptesbosbphost2:8080','xptesbosbphost2:8081','xptesbosbphost3:8080','xptesbosbphost3:8081']
      labels:
        group: 'UMB'

For example below target :

['xptcregosb01:8080','xptcregosb02:8080','xptcregosb03:8080','xptcregosb04:8080','xptcregsoa01:8080','xptcregsoa02:8080','xptcregsoa03:8080','xptcregsoa04:8080']

i need to label it with the weblogic instances name into :

WLS_OSB1,WLS_OSB2,WLS_OSB3,WLS_OSB4,WLS_SOA1,WLS_SOA2,WLS_SOA3,WLS_SOA4

I found this article 
https://stackoverflow.com/questions/49829423/prometheus-add-target-specific-label-in-static-configs
 but 
seems i need to define target instance one by one. Is there any others way 
to configure it?


Thanks,
Julian

-- 
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/8b973ea3-0b75-4b29-8ab9-ad25a3657f34%40googlegroups.com.

Reply via email to