Dynamic variable with Json_Exporter

26 views
Skip to first unread message

rs

unread,
Feb 13, 2024, 1:18:54 PM2/13/24
to Prometheus Users
Hi all,
I want to run a series of REST calls to monitor an endpoint. The issue is that the final endpoint requires using a dynamic variable in the REST path that can change. 

Here's the scenario:
1. The first rest call would require using Json_Exporter to parse an integration_key field and save that variable. This can consist of multiple integration_key's
2. The 2nd REST call would be to use that integration key in the rest call: 
GET https://application/api/1/${integration_key}/status
Or in prometheus.yml, have something like this:



```
scrape_configs:
- job_name: json_exporter
...
   - targets: 
      - https://application/api/1/${integration_key}/status
```

Is something like this possible?
Reply all
Reply to author
Forward
0 new messages