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
0
votes
2 answers
How to find the instance status based on the Loki logs?
I am creating a panel to show the instance's health status. In LOKI, If "ERROR" is present in the log then the instance status should be in Red else it should be in Green.
I'm using the following query,
{component="dz-snmp",…

Roopchand
- 33
- 5
0
votes
1 answer
Is it possible to pass the one-panel data to another panel query label value? - Grafana
I have created a panel to find out the canary instances(Blue/Green) and it shows the usage of those instances with IP address. Now I need to create another panel to show the errors of that instance(will grep certain words in the log) with the help…

Roopchand
- 33
- 5
0
votes
0 answers
How to export/import Grafana Alerts?
I tried to export via API, Curl,grafanaalertsexporter
Every method had failed.
Is there a way to export and import the Grafana (Version:8.5 )Alert Rules to JSON files conveniently?

kasun_u_m
- 1
- 2
0
votes
1 answer
How to show the exact variable value in the result - PromQL/ Grafana?
Making a Grafana dashboard to view the performance of our application and it deployed in the various regions (not all regions). My dropdown variable(location) has all the region data so it'll substitute in my query and shows the result.
I'm using…

Roopchand
- 33
- 5
0
votes
0 answers
Embedded Grafana in iframe and JWT authentication
I'm trying to get an access (via Nginx proxy) to embedded Grafana in my web application via auth0 (JWT token) authentication.
Nginx address: IP_ADDRESS
Grafana address: https://grafana.domain.pl
Web app address: https://domain.pl
Grafana version is…

piterek
- 47
- 1
- 6
0
votes
1 answer
Unable to send request to the grafana using basic authentication
I'm using Grafana free version (v8.5.0). I'm using python 3.7 and sending requests to Grafana. But it is not working. Below is my Code.
import requests
import json
base_url="https://MY_USERNAME:MY_PASSWORD@santoshburadalearning.grafana.net"
resp…
0
votes
1 answer
How can I create panel to show the count of http request duration to be less than or equal to "0.7" seconds in Grafana
I have prometheus data endpoint as - http_request_duration_seconds{method="GET",status="200",uri="XYZ"}1468.0.
How can I create a panel in Grafana for count of http requests with a duration less than or equal to "0.7" seconds?
I have tried few…

Max
- 1
- 1
- 3
0
votes
0 answers
Grafana synchronisation between two servers
i'm making a shell script to synchronize two instance of grafana but i always got the error {"message":"folder title cannot be empty"}./dir_import.sh: line 25: -d: command not found
but the title is not empty and i dont know wht ?
here is the code i…

marcel boulon
- 9
- 3
0
votes
0 answers
Grafana inside a webapp without iframe
I am trying to bring in some Grafana charts into an Angular Application. I tried with Iframe and it works fine but I am exploring options where I can feed data to grafana APIs in the form of JSON and render the charts inside my Angular application.…

vp310
- 300
- 1
- 9
0
votes
1 answer
Close proxy API access
Close proxy API access
Hi community,
Grafana 8.2.5
We have a Grafana system 8.2.5. He had a security audit, where the API access is criticized.
We have enabled an anonymous acess for users without login.
[auth.anonymous]
enabled =true
org_name =…

ula.uvula
- 158
- 13
0
votes
1 answer
create or update a panel in Grafana using Python
I have a dashboard named as "server-plots" and there is another dashboard named as "master-plots". panels under "master-plots" are most updated graphs and I want to add the new panels inside "master-plots" dashboard to "server-plots" as well,…

coderKeed
- 21
- 6
0
votes
0 answers
How to pull metrics in prometheus from grafana agent on k8s?
Is it possible to setup grafana agent on k8s cluster and then use the central prometheus to pull metrics from it ?
From what I see in docs is that grafana agent can push to any system that supports prometheus remote_write api like cortex etc .So…

user3422981
- 13
- 3
0
votes
1 answer
how to hide or merge same data fields in grafana chart
I have a grafana chart which has multiple same values which i want to merge to single data
.check this chart
Example : the chart in link has "activity - ExternalNonFinancialBaseRepository (findByStateIn) " occurences multiple times .
I want that…

Harshad Solanki
- 7
- 5
0
votes
1 answer
Grafana API script to create new datasource failing
I'm learning both Grafana, AND how to interact with APIs in Powershell. I was able to use the Grafana HTTP API to create a dashboard, however I cannot get the same API to create a Datasource. My code is as follows:
$header = @{"Authorization" =…

nightsurfer
- 113
- 7
0
votes
1 answer
Grafana : How to use JWT authentication?
I want to use JWT for Grafana login authentication, Grafana docs dictate some steps for the same but [auth.jwt] default is not provided in sample.ini, and can you clarify what it means by header name that contains a token in the step mentioned for…

Ajay Sabarish
- 107
- 9