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
2
votes
2 answers

Grafana: Loading dashboard even if "Alert validation error: Data source used by alert rule not found"

I am trying to add a dashboard to a toy Grafana local installation to debug a dashboard and play on how to setup the c.i. on our server. I try to load the dasboard using e.g. curl --request POST \ --url http://localhost:3000/api/dashboards/db \ …
ntg
  • 12,950
  • 7
  • 74
  • 95
2
votes
1 answer

Disable View, Share and More menu from graph in Grafana

How to disable the View, Share and More menu from the Grafana [Panel Menu --> View, Share, More–Export CSV, JSON etc;]. I don't want to show these options to user.
2
votes
1 answer

Post grafana dashboard to particular folder

I am trying to use the grafana API to post dashboards to a specific folder. Using the following command, I can see the folder ID's for all folders in my grafana: curl -X GET…
2
votes
1 answer

VBA: Download a picture via HTTPS

I'm trying to download a picture from a website (Grafana monitoring tool, API) using VBA (MS Access 2016). It's a HTTPS address using a self signed ceritificat and requires username and password for authentication. I'm currently using the following…
ibkl
  • 43
  • 5
2
votes
1 answer

How to create a custom metrics end point for Grafana using Spring Boot 2?

I am trying to learn Grafana and creating application using Spring Boot 2, Prometheus and Grafana for metrics. I need to create custom metrics for per day student creation count. import com.demo.mockito.entity.StudentEntity; import…
shrikant.sharma
  • 203
  • 1
  • 17
  • 37
2
votes
0 answers

Grafana showing 'no data found' only for few Relative time range filter

Hi I am working on Grafana V7.0.0 with Postgresql as DB, where data is displaying correctly when I select Today/This year(Filters with months/day/year) etc.. But when I select data filter as Last 6 hours/ last 12 hours( FILTERS WITH TIME) showing…
2
votes
0 answers

unable to connect Azure china log analytics from Grafana

Able to connect to Azure rest of world Log analytics from Grafana but not to china Azure log analytics. Followed the same steps . Getting below error : Successfully queried the Azure Monitor service. Azure Log Analytics: Cannot connect to Azure…
2
votes
0 answers

How to make production build in grafana?

I am newbie in grafana. How to i make production build in garfana and how can i push to production. http://docs.grafana.org/project/building_from_source/ I am following above link to install grafana and build a development. But i dont know how to…
2
votes
0 answers

Panel-specific annotations or similar mechanism for Grafana

Annotations are extremely useful, but lose a lot of their utility when you have panels with widely different time ranges. For example, we have a panel with an hour time range, and another panel that shows the last three months history. With the…
Torque
  • 3,319
  • 2
  • 27
  • 39
1
vote
1 answer

Not able to see Grafana Annotations

I am adding attonations to my grafana dashboard via the API api/annotations with the request body: { "time": 167419909, "tags": ["tag1", "tag2"], "text" : "My annotations" } As a response, I am getting 200 OK with response body: { "id": 24, …
Ankit Sahay
  • 1,710
  • 8
  • 14
1
vote
0 answers

Grafana Loki HTTP API parameter "since"

I'm doing Grafana Loki HTTP API queries, specifically query_range ones which produce stream responses. The parameters listed for such queries are: query limit start end since direction I've got 5 of the 6 working: const url = new…
1
vote
1 answer

Assigning permissions to Grafana dashboards in helm values.yaml

When I create a dashboard in Grafana and export it in JSON, the role, user and group permissions I define are not saved with it. I am looking for a way to assign permissions for each dashboard in a Grafana deployment with Helm, in which I already…
agallende
  • 25
  • 5
1
vote
0 answers

Pausing Grafana alerting rules from Mobile app (React Native) through Grafana API

I'm trying to use the grafana API to pause and unpause grafana alerts via a mobile app in React-Native and Expo. following the documentation, with postman, the states are changed correctly, but when I make the app calls I can unpause the alerts but…
1
vote
0 answers

Grafana /api/dashboards/uid/ result miss datasource id

When I use grafana /api/dashboards/uid/xyz123 API, I get all definitions of dashboard xyz123, except the datasources’ ids. It returns dashboard json with “datasource”: null, If I export it via GUI (share->export) it does have datasources’ ids. Pls…
1
vote
0 answers

Push alert from alert manager to Grafana

I want to ask if there is a way how to push alerts from prometheus alert manager into the grafana which runs in a different network. I need to send alert via an API and show it in the Grafana. Does Grafana support such feature? All ports except http…
JurajRabcan
  • 133
  • 1
  • 11
1 2
3
10 11