Is there any REST Post/PUT/other API to add below to prometheus scrape config?
- job_name: 'My Service'
metrics_path: '/actuator/prometheus'
static_configs:
- targets:
- '10.252.1.2:61'
labels:
role: 'mysvc'
No such API provided by Prometheus since it is a core Prometheus server config file. I can suggest following options based on my experience and you can see which one works best for you ->
Hope this helps!