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

How can I share Grafana dashboard with json data in php web application?

Using HTTP API to share dashboard from Grafana into another PHP web application's dashboard gives me JSON data using curl Referred http://docs.grafana.org/http_api/dashboard/ and used GET /api/dashboards/uid/:uid $curl =…
Mohaks
  • 3
  • 4
0
votes
0 answers

Grafana: Response is failed when try to load as XMLHttpRequest

I am trying to load data from grafana using Javascript XMLHTTPRequest. Following is my code, function populateIframe( ) { var xhr = new XMLHttpRequest(); xhr.open('GET', 'http://username:password@localhost:3000/api/org'); …
kumaranc
  • 105
  • 1
  • 11
0
votes
1 answer

Can alerts be added to a Grafana Panel on a dashboard using API?

There is a Grafana dashboard with a panel inside it. Is it possible to add (or define) an API?
Aref Karimi
  • 1,822
  • 4
  • 27
  • 46
0
votes
0 answers

Grafana simplejson api implementation

I am novice in this area, started to build an api for simple json, using mongo db. The idea is to show mongo collection metrics like min, max, avg records per day, collections updates or inserts on a daily basis in mongo collection. I am not clear…
TechJump
  • 79
  • 1
  • 12
0
votes
0 answers

Exception on /csvfolder/query Traceback (most recent call last)

I'm using Grafana-csv-datasource that can be found at Github. Basically it's a data source that works with csv. I can add it to Grafana without errors, but when I try query something in a csv file, it gives the following error : [2018-06-11…
0
votes
1 answer

Not able to create Grafana User using HTTP API

I am trying to create the grafana users using API's and this is what I tried. curl -XPOST -H “Content-Type: application/json” -d ‘{“name”:“User”,“email”:“user@graf.com”,“login”:“user”,“password”:“password”}’…
user8782233
0
votes
0 answers

Grafana query for created table in clickhouse

As I was trying to see the data from clickhouse as a graph in grafana...I tried a lot with query processing but I couldn't able to get points on grafana..my table looks like CREATE TABLE m_psutilinfo (timestamp String, namespace String, data Float,…
0
votes
1 answer

What timestamp is used at Grafana Annotation HTTP API?

I'm trying to create an annotation in Grafana via the HTTP-API. Due to the official docs I need to add a timestamp. Example Request (from official docs) POST /api/annotations HTTP/1.1 Accept: application/json Content-Type: application/json { …
Thomas Schwärzl
  • 9,518
  • 6
  • 43
  • 69
0
votes
1 answer

How to use external angular modules in own Grafana plugin

I’m developing my datasource plugin based on simple-json. I want to use the library angular-ivh-treeview, but I do not understand how to use it in the plugin. Can someone help me?
-1
votes
1 answer

CORS in Grafana API

I want to enable cors on grafana so that I can make POST request on a react APP using grafana API. My issue is I can't set cors on grafana. I have tried to edit the defaults.ini file for grafana but the issue of CORS Not enabled keeps persisting.…
Zander007
  • 3
  • 4
-1
votes
1 answer

Grafana transformations: calculate percentage in the table panel

i am using grafana-v7.3.6 on ubuntu. i basically have a timeseries with different versions as tags. I want to create a table with each version and its percentage of the total value. I am using opentsdb-v2.4 as my datasource. example: time, …
random_user
  • 73
  • 1
  • 6
1 2 3
10
11