Add this tag to questions regarding Grafana HTTP API. The Grafana backend exposes an HTTP API, the same API is used by the frontend to do everything from saving dashboards, creating users and updating data sources.
Questions tagged [grafana-api]
161 questions
1
vote
1 answer
How to label x-axis with non-time series data in Grafana with Elasticsearch data source?
I have a dashboard in Grafana that displays the percentage of utilization of multiple servers. The x-axis is labeled with time-series(timestamp), I want to label it as server names.
This is how x-axis looks like with time series.
This is what I want…

Lovleen
- 11
- 5
1
vote
0 answers
How to drag and drop item from Angular 9 application to iframe
We have Angular 9 application with embed iframe which is pointed to Grafana dashboard. And we would like to have possibility to drag item from core application and drop it to iframe. Then in background Grafana HTTP API will to be invoked in order to…

Igor Golovan
- 91
- 2
- 11
1
vote
0 answers
Plugins for net-data to show creation date
I just got a project to, where the user wants to add the following feature in the net-data monitoring for the virtual machines.
creation date
uptime
internal ip
external ip

rest17
- 25
- 1
- 6
1
vote
0 answers
Grafana dashboard fails to load if one of the datasources of --mixed-- type is down
I am using grafana 6.2.5 version. I created a dashboard with ryantxu-ajax-panel plugin and --mixed-- datasource with five targets. The dashboard doesn't load if any of the prometheus query fails (like 503 service unavailable). I wanted to handle…

Nikitha
- 11
- 1
1
vote
3 answers
Get Grafana alerts history for a panel by using API
I am use Grafana with a lot of Dashboards and Panels.
Many panels have alerts.
Accordingly, these alerts often change their state, for example, from OK to Altering or no_data.
I also have my application (ASP.NET Core) where I want to get the current…

Valeriy Rindin
- 23
- 2
- 6
1
vote
0 answers
Grafana LDAP created user can't login through REST API
I am using the Grafana with my Django App and creating the user in the LDAP server. I wanted to make the user to Grafana admin at the time at the creating the user in the LDAP server. I found REST API Doc to set the user as grafanaAdmin, for this,…

Ravindra Gupta
- 1,256
- 12
- 42
1
vote
1 answer
Cannot import grafana dashboard via grafana HTTP API
I am trying to import existing json file using HTTP API, but the 'curl' command throwing the error.
I am using the below command to import existing json file,
curl --user admin:admin "http://localhost:3000/api/dashboards/db" -X POST -H…

sivanesan1
- 779
- 4
- 20
- 44
1
vote
3 answers
How to import grafana dashboard json file manually
I have exported the dashboard in json format.
I want to import the json file manually to create the same dashboard in new grafana instance.
While googling i got some related information but finding difficulties to implement successfully.
From the…

sivanesan1
- 779
- 4
- 20
- 44
1
vote
1 answer
How to monitor thread count for apps in Hawkular metrics in Grafana?
I'm working on creating a dashboard where I can monitor the thread count for apps which are present in hawkular-metrics from openshift. (The datasource is already configured).
I do have a json file for creating dashbboard for memory usage for all…

Underoos
- 4,708
- 8
- 42
- 85
1
vote
1 answer
Datasource Authentication via Routes for Grafana Datasource Plugin
I'm trying to write a custom data source plugin for Grafana that would request Azure AD authentication tokens and send them along with the queries to my database which will accept the token and return the response to the query.
I've noticed that the…

Abhinav Reddy
- 11
- 3
1
vote
1 answer
Can we create an alert from 2 different data sources in grafana?
Can we create an alert in Grafana from 2 graphs(2 data sources) and compare the values in those graphs.
For eg: I have a parameter in 1 data source, 1 parameter in another data source, I created a graph for both of them. Can I create an alert to…

naga g
- 121
- 1
- 2
- 7
1
vote
1 answer
How to copy dashboard to other organisations in Grafana
I'm using Grafana to show some data. I have 20 organisations and they all use the same dashboards (Dash1, Dash2, Dash3). Thus I can use the same json data for all dashboards in all organisations.
But I do not want to update it manually every time…

Boky
- 11,554
- 28
- 93
- 163
1
vote
0 answers
Grafana template showing data only for remote and local hosts data but not for containers when drop down doesnot have IP showing
I have Prometheus with node-exporter, cdvisor and grafana on same instance.
I have other instances with node and cadvisor for collecting metrics to grafana.
Now I have created a grafana template that accepts the Instance name:
As We have 2…

Tara Prasad Gurung
- 3,422
- 6
- 38
- 76
0
votes
0 answers
Trouble Updating Grafana Dashboard via API: Getting a 400 Response Error
I'm currently working on a script to update Grafana dashboards through the API, and I keep encountering issues when sending my JSON payload. Each time I make the request, I receive a error, which seems to suggest a problem with the…

Caspernoah23426
- 1
- 1
0
votes
0 answers
How do I pass a variable that I created for a Grafana Dashboard as a body parameter for a JSON Query of a Grafana Visual?
I am using the Grafana Infinity Plugin to make GET/POST requests to get data from the URL of an API for a visualization on a dashboard.
For a particular POST request, it takes an input parameter called location_id. The possible values that can be…

Kaizar R
- 1