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
0
votes
3 answers

grafana- get values from dashboard with mysql as data source with API

I am trying to extract values from the dashboard from Grafana Dashboard. I have MySQL as data source and I have a query to extract values from a particular table in MySQL. I am trying to get these values shown on dashboard with some API. For…
Tech Girl
  • 169
  • 2
  • 17
0
votes
1 answer

How can I adjust the length of the bars in Statusmap chart in Grafana?

How can I adjust the length of the bars in Statusmap chart in Grafana? I want to show the start and end time for each of the bar. The link shows what I want to achieve. Graph to be achieved
0
votes
1 answer

Retrieve Grafana dashboard query using the API

I would like to get the query used in each of my dashboards using the Grafana API. The expr field in the JSON model menu of the UI seems to contain the query. Is there a way of querying this using the API?
Perfect_Comment
  • 165
  • 1
  • 2
  • 15
0
votes
1 answer

How can I publish grafana dashbord using API?

I'm very new to grafana and I hope to use grafana API for uploading .json file to publish dashboard in grafana marketplace instead of uploading it manually. Are there any options or API can use for it?
lnash
  • 53
  • 10
0
votes
2 answers

How to enale url enctryption on Grafana portal while diplaying dasbhboard

I want to enable url encryption on grafana in-house portal. When we design any sample payload with lets say influxDb/Mysql as database. On defined interval dashboard data will get refreshed by calling rest call to server in backend mode, while…
M S Parmar
  • 955
  • 8
  • 22
0
votes
0 answers

Permission denied error with admin user while trying to create a grafana dashboard via API

I'm trying to migrate a couple of dashboards from one server to another. To accomplish this I write a pretty simple script using python and requests library. class Grafana: def __init__(self, url, key): self.headers = { …
Murilo Sitonio
  • 270
  • 7
  • 30
0
votes
1 answer

Grafana query to fetch a particular value from JSON

If I use jvm_memory_max_bytes it is automatically feeding the data, but I need to split up the required one to display. How can I fetch an ID with a particular value to add in a Grafana query? jvm_memory_max_bytes{area="heap", id="CMS Old Gen",…
user3428736
  • 864
  • 2
  • 13
  • 33
0
votes
1 answer

How can I update metric values in Grafana panels via REST API

There are panels on the dashboards: On the right panel, free disk space is displayed, the value comes from the zabbix-agent. On the left panel I want to display my custom values through Grafana REST Api. I found a way to change the whole dashboard,…
ArchiSova
  • 181
  • 7
0
votes
1 answer

Accessing the Grafana API through k8s proxy

I am running Grafana v6.2.4 in kubernetes, using basic auth. I want to use the k8s proxy for testing (i.e. kubectl proxy --port=8080). I have changed the GF_SERVER_ROOT_URL environment variable to: { "name": "GF_SERVER_ROOT_URL", "value":…
Dan
  • 45,079
  • 17
  • 88
  • 157
0
votes
1 answer

How to delete grafana dashboard using curl command?

I am trying to delete grafana dashboard using curl command, but it is not deleting, the below curl command I tried to delete the dashboard, curl -XPOST -d '{"name":"mydashboard"}' http://localhost:3000/api/dashboards/db -u admin:admin -H…
sivanesan1
  • 779
  • 4
  • 20
  • 44
0
votes
1 answer

Calculate percentage along with groupBy in Grafana

I am logging a success count metric and failure count metric for every 30 seconds into graphite. In the Grafana, I am using per second and hitCount(1minute) that aggregates the count(success and failure) for every minute. Now I need to calculate…
Harish
  • 565
  • 1
  • 12
  • 34
0
votes
1 answer

how to add custom data/url in grafana for monitoring metrics

i want to add custom data/url in grafana for monitoring the metrics. how can do this ? in url have a data in the from of table,i want to use that data in grafana and get the graph for it. is that possible?
0
votes
1 answer

grafana TLS version configuration

Grafana version: 2.6.0 Grafana with default installation configs has got the SSL TLS versions 1.0, 1.1 and 1.2 enabled. Is there any configuration with grafana just to enable grafana HTTPS port 3000 to support only TLS 1.2? (Just to give more…
Ranganatha
  • 1,157
  • 14
  • 32
0
votes
2 answers

Grafana dashboards created through API not showing up in Grafana UI

I presume Im doing something wrong because every time I run my api script from the backend, it says "success" but when i go to the grafana UI, the dashboard I just created is no where to be found. here's the full script: #!/usr/bin/env…
Dev Ops
  • 127
  • 1
  • 10
0
votes
3 answers

How to make a datasource read-only

I am creating a Grafana datasource by a curl call with POST data to the Grafana REST API. This works fine. But is there a way to make this datasource "read-only"? By that I mean that I don't want any Grafana user to be able to delete this datasource…
user1140596
  • 121
  • 1
  • 1
  • 10
1 2 3
10
11