I am running a Job on multiple nodes using Spring batch.
implementation 'org.springframework.boot:spring-boot-starter-batch'
implementation 'org.springframework.boot:spring-boot-starter-actuator'
implementation 'io.micrometer:micrometer-registry-prometheus:1.3.2'
implementation 'io.prometheus:simpleclient_pushgateway:0.9.0'
And basically, PushGateway's grouping key is used as host and job name.
And while maintaining the above metrics,
I want to create a logic that is sent once again by excluding the host from the grouping key and configuring it only with the job name.
for example
When A Job is executed, we want to have two Groups in PushGateway.
Group1 - host=node1, jobName=A Job
Group2 - jobName=A Job
I wonder if this is possible and how do you think about it?