Questions tagged [grafana-api]

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.

Grafana HTTP documentation

161 questions
1
vote
0 answers

Does Grafana support equality/binary operators in the Variable section?

I'm creating a dashboard to show the canary instance data. I am planning to create a variable that contains the canary instance IPs and we always create one instance in a stack for the canary. So we can assume that if a stack contains one instance…
Roopchand
  • 33
  • 5
1
vote
1 answer

Possible to add a query programmatically to a Grafana dashboard?

Every time we add a new producer to our system we manually need to add a new query for the associated panels in our Grafana dashboard to make the panel display a separate graph for the data coming from the new producer. With the number of producers…
OlliP
  • 1,545
  • 11
  • 22
1
vote
1 answer

CloudWatch Custom Metric Names Not Showing in Grafana

I'm new to Grafana and have a query. I have created a Grafana instance running on EC2 and attached a role with Cloudwatch permisisons to it. I've configured the Cloudwatch datasource and tested it and it all works fine. It doesn't look like Grafana…
Metro
  • 873
  • 8
  • 19
1
vote
2 answers

unable to get access Grafana from browser which is running on kubernetes cluster

I need a little help if someone can advise where I am doing some mistake. I am trying to Setup Prometheus & Grafana Monitoring on Kubernetes Using Helm. Installation of Prometheus and Grafana done successfully. Installation of Prometheus and Grafana…
1
vote
1 answer

Azure Monitor datasource isnt working error "Azure Log Analytics requires access to Azure Monitor but had the following error: InternalServerError"

We are using the Azure-Monitor Datasource with Managed Identity. We are monitoring the Kubernetes with log analytics. We have given "Log Analytics Reader Role and Monitoring reader(subscription Level)". Till last Thursday it was working fine when I…
1
vote
2 answers

Programmatically using python, import grafana dashboard data from grafana website

I have a visual and aggregate result showin in grafana.<>.com. I can manually go to the menu click export and export the data to my local in format option I have. This works great. Is there a way I can script that in python that hit…
Sachins
  • 31
  • 1
  • 7
1
vote
0 answers

how does grafana dashboard show jenkins as down when the jenkins server is stopped rather than just saying "no data available"

Background: I have a linux server where I configured my jenkins and installed the prometheus plugin to scrape the jenkins instance metrics. I am using grafana dashboard to visualize and monitor the jenkins server. In grafana I have used the…
1
vote
1 answer

Grafana Timeseries Panel: How to change color of annotations bar based on a tag

I am using Grafana version 8.1.0 and have a timeseries panel on which annotations are added using HTTP create annotation API and GUI both. I want to change the color of the annotation bar based on tags added to that annotation. I have tried to go…
Harsh
  • 445
  • 1
  • 5
  • 13
1
vote
0 answers

How to forward oauth token from grafana to downstream api's

I am trying to forward to OAuth token from grafana to the datasource which is a JSON API where token will be verified in the api service. I enabled the forward OAuth identity option But not able to see the token in any of the request header. How…
s.k Syed
  • 31
  • 3
1
vote
1 answer

Remove grafana cookie for user logout API

I’m using grafana HTTP API to build a front-end application on grafana. User authentication is with the basic Auth model (default grafana authentication). I need the logout API, which cause grafana_session cookie expire. I can not remove the…
fsefidabi
  • 153
  • 1
  • 12
1
vote
0 answers

Grafana invalid API key with newly created key

I embed some grafana charts in my web application. Right now, I have to login on my app, and then login on my grafana charts within the app to get the data. I would like to automatically log my users to grafana once they are connected to my app, for…
PleaseHelp
  • 133
  • 9
1
vote
0 answers

Grafana 8 alert API not providing instance details

I am having a requirement where I need to fetch all the alerting instances with details like IP Address. I used the api url /api/prometheus/grafana/api/v1/rules to get all the alerts. But in case of dashboards with multiple instances, the response…
1
vote
0 answers

Customize Grafana bar chart

I’m very new to Grafana but I like it! Now I try to customize my bar chart. Right now it looks like this: I would like to do two changes: Increase size of names on the left side Setup the bar chat out of small images like that? I'm using a…
PascalS
  • 975
  • 1
  • 16
  • 40
1
vote
0 answers

How to export all the data from Grafana as Excel/PDF

I have created a dashboard in grafana with Graphs and Singlestat i would like to export all the data which is shown in the dashboard either as PDF/Excel. I have tried with the following plugin which takes a snapshot of the dashboard and exports it…
Nidhin Kumar
  • 3,278
  • 9
  • 40
  • 72
1
vote
1 answer

Data is not refreshing in Grafana dashboard but refreshing in panel

I am using Grafana and data visualization. I have multiple panels inside one dashboard and multiple panels showing the different things. I am using Influxdb as the data source. Data is coming in Grafana and I am able to visualize as well. I have…