Hii, I am Vinay
Can you please suggest me how to pass URL Dynamically in Grafana using Infinity Plugin.
http://127.0.0.1:1880/api_output?device=123
The above url is my nodered url.
Hi @vinayvadlamudi,
Can you elaborate? What are you trying to do, and what is going wrong when you try to do it? Screenshots?
thanks!
Hi @mattabrams
Here I am using html form
when i submit this form. I am getting Json Output in Url.
I have to pass this url dynamically to Grafana using Infinity data Source.
Based On this this data the grafana should display their graphs.
I tried But I am not getting that how to pass url dynamically to grafana
@vinayvadlamudi - can you post the full url that includes timestamp ? ( Masking sensitive data ). Btw, this should be straight forward as any other plugin. You can use grafana variables and grafana time macros in the url.
Hi@yesoreyeram
http://127.0.0.1:1880/api-out?device=1001&StartDate=2021-01-01&EndDate=2021-12-30
The sample url is above,
the url parameter values will be changing frequently. Is there any way to include paramters dynamically in grafana using Infinity dataplugin.
Probably what you need is
http://127.0.0.1:1880/api-out?device=${deviceID}&StartDate={__from:date:YYYY-MM-DD}&EndDate={__to:date:YYYY-MM-DD}
as your URL.
Where ${deviceID}
is variable you need to create using dashboard template variable
and {__from:date:YYYY-MM-DD}
and {__to:date:YYYY-MM-DD}
will be coming from dashboard’s time range.
Read more about time variables here Add and manage variables | Grafana documentation
Hi @yesoreyeram,
I am using Infinity Plugin in grafana to fetch data from rest api.I am using multiple value variables in the queries of the panel.
But when i am using multi value variable in the query of the panel,the panel is populated with the data of single value of the variable,when i select multiple values ,am not getting any data
I have tried enabling panel repetition option,then am getting data for multiple vaules of the variable in multiple panels.
I want the combined data for all the values of the variable.
Any suggestions would be greatly helpful
@charishmavinny - I would suggest to create a thread in https://github.com/yesoreyeram/grafana-infinity-datasource/discussions/new?category=q-a for infinity plugin related questions. If possible include steps to reproduce, screenshots.
Hi @yesoreyeram ,Thank you for the reply.
I have created a thread on infinity plugin github page with my data.Please check it when you have some time
This topic was automatically closed after 365 days. New replies are no longer allowed.