-
Grafana version v10.3.3 (252761264e)
-
What are you trying to achieve?
I wan to create a key-value variable using data received from JSON API with the JSON API plugin
- How are you trying to achieve it?
I use https://jsonplaceholder.typicode.com/users as a test backend, I want to pick up key-value pairs like Bret: 1
, Antonette: 2
, etc. So I use path /users
and JSONpath fields like $[*].id
for __value
and $[*].username
for __text
:
- What happened?
I receive just ids
- What did you expect to happen?
I expect to receive IDs and usernames
- Can you copy/paste the configuration(s) that you are having problems with?
Pastebined test dashboard : https://pastebin.com/raw/tS7HkHLJ
- Did you follow any online instructions? If so, what is the URL?
JSON API plugin guide: Variables | JSON API for Grafana
Grafana gide about variables: Add and manage variables | Grafana documentation
Some issues on this site like this: __value and __text for variables not working as expected
I guess that JSON API is not the proper plugin to solve this issue, so I tried with Infinity plugin with no result, too. Is it possible to get gey-value variables from APIs with any plugin?