Skip to main content
Filter by
Sorted by
Tagged with
0 votes
1 answer
68 views

I am looking for assistance in fixing my python script which uses Grafana API. I have to create silences in Grafana using a master excel sheet provided to me which contains below details to create the ...
Yavnica Saini's user avatar
0 votes
0 answers
104 views

I have an histogram metric which records time taken to execute a program. How do I display it in grafana that shows value recorded in specific time interval. Scenario: At t:0 to t5 the value recorded ...
Ninja Flinstone's user avatar
0 votes
0 answers
90 views

I've tried a variety of approaches to filtering data, but none have worked. All attempts to get an alert for a given field (alert_rule_uid) were unsuccessful. Sample data: "startsAt": "...
Ruslan Hafizov's user avatar
0 votes
0 answers
263 views

In my grafana helm values.yaml I have specified the following grafana.ini: live: max_connections: 0 This is based on the documentation that says "0 disables Grafana Live". I have ...
dat's user avatar
  • 442
1 vote
1 answer
162 views

I am using grafana operator to setup an Opensearch Datasource. According to the api documentation, the field cannot be set under the spec like this : apiVersion: grafana.integreatly.org/v1beta1 kind: ...
WannaGetHigh's user avatar
  • 3,954
0 votes
1 answer
50 views

I have a dashboard in Grafana. I added a variable and it has a lot of values. I want to know if I can hide some of these values from some users. Meaning that some users can only see half of the values ...
Yousef Alsakkaf's user avatar
1 vote
2 answers
545 views

I have been using Prometheus as a data source in Grafana lately, but there are so many limitation to Prometheus. for example have a look at these records that exists in my localhost:9090 where ...
Yousef Alsakkaf's user avatar
0 votes
1 answer
453 views

I am using grafana API to fetch settings. GET /api/admin/settings Accept: application/json Content-Type: application/json Authorization: Bearer glsa_wFaOgY9XUHNCP3STz63hQNBwJelyvuIP_a3abc4d5 It ...
Shokouh Dareshiri's user avatar
0 votes
0 answers
75 views

I'm attempting to import the currently selected time range in a dashboard (in the upper right) into Python through the API. From my understanding, the API can only retrieve the JSON of a dashboard, ...
jack_r01's user avatar
1 vote
1 answer
818 views

I'm using the Infinity plugin for Grafana the problem is the api I am trying to use first requires me to get a bearer token. For example using this CLI: curl --location 'https://serverIpAddress/auth/...
chowpay's user avatar
  • 1,715
0 votes
1 answer
769 views

In my environment, Grafana Alloy is hosted and all LGTM Services are deployed and configured and connected to alloy. My alloy is exposed through nginx-ingress. To Secure the endpoint now I am using a ...
gurunatha prasad's user avatar
0 votes
1 answer
1k views

enter image description hereI'm using Prometheus and monitoring it through Grafana. However, whenever I write a PromQL query and check it in table visualization, it always shows me a timestamp column ...
Mudit Gupta's user avatar
-1 votes
2 answers
956 views

Currently I have created Grafana Dashboard manually. I have got the Json. I wanted to automate and I came across the Grafana HTTP API. https://grafana.com/docs/grafana/latest/developers/http_api/...
prakashrajansakthivel's user avatar
2 votes
0 answers
261 views

I want to query a data source in Grafana via Python. Following is the code I have come up with. headers = {"Accept": "application/json", "Content-Type": "...
Akhil Sharma's user avatar
0 votes
0 answers
91 views

I am developing a plugin to get familar with the platform and make some proof of concepts. I am trying to execute SQL commands to a local postgres database directly in my plugin through a button ...
nulluser's user avatar
1 vote
0 answers
339 views

I have a OTLP instance running that collects traces successfully over grcp. But when I try to uplad the traces to my grafana cloud tempo instance I get this error: grafana-collector-1 | 2023-12-...
adkop's user avatar
  • 194
0 votes
1 answer
776 views

My goal is to programmatically duplicate a Grafana dashboard. I couldn't find this feature in the API doc so I thought pasting dashboard1's JSON into dashboard2 would achieve the same results. Here is ...
Vincent Tep's user avatar
2 votes
1 answer
942 views

I want to provision contact-points to my Grafana in Kubernetes. My config: contact_points.yaml: | apiVersion: 1 contactPoints: - orgId: 1 name: telegram-alerts ...
Dmitry's user avatar
  • 227
0 votes
2 answers
1k views

I'm facing some problems when I'm trying to provision open source grafana dashboards running on docker container. Dashboards are visible and working correctly, but for some reason they only have ...
VapeBoro's user avatar
1 vote
2 answers
5k views

self.add_metric( prom.Gauge, "date_to_catch", "The timestamp when the event happened", ) @property def date_to_catch(self): ...
Yosra MH's user avatar
  • 159
0 votes
1 answer
3k views

The API option under Administration is not available for me, I am using docker image (grafana/grafana) installed on a VM. [Image showing the said option not being there][1] [1]: https://i.sstatic....
Someone Alter's user avatar
0 votes
1 answer
1k views

I'm trying to get a very simple example of pushing Graphite metrics to Grafana Cloud using their HTTP API to work. This example comes straight from the Graphite HTTP API documentation: user_id=<...
Raine Revere's user avatar
  • 34.3k
1 vote
0 answers
492 views

Have anyone worked on alert rules using file provisioning ? like I am looking to delete an entire folder instead of deleting each alert one by one using its UID . the template I use to delete rule is ...
hemanth krishna's user avatar
0 votes
0 answers
784 views

I'm currently working on a script to update Grafana dashboards through the API, and I keep encountering issues when sending my JSON payload. Each time I make the request, I receive a <response 400&...
Caspernoah23426's user avatar
0 votes
1 answer
3k views

I am using the Grafana Infinity Plugin to make GET/POST requests to get data from the URL of an API for a visualization on a dashboard. For a particular POST request, it takes an input parameter ...
Kaizar R's user avatar
0 votes
1 answer
2k views

I have multiple instances of Grafana. All instances should have the same dashboard. Therefore, I created the dashboard on one instance and exported it (see Export a dashboard). Now, I want to import ...
dur's user avatar
  • 17.3k
0 votes
1 answer
876 views

I'm trying to API query from Grafana Cloud. I've got this JavaScript file: const url = new URL('/<apache proxy>' + '/loki/api/v1/labels', window.location.origin); const user = '<user>'; ...
user22009348's user avatar
0 votes
1 answer
856 views

I am using Grafana cloud v10.0.3 and could not find any way to exports alerts json data. I tried to write a python script to access alerts json data but it is not showing any output. Below is the ...
Faisal Shani's user avatar
0 votes
0 answers
147 views

I'm trying to query data from a Grafana Loki Cloud. This works: curl -s -G "https://<user>:<API key>@<site>.grafana.net/loki/api/v1/query_range" --data-urlencode 'query={...
user22009348's user avatar
3 votes
1 answer
1k views

I am adding attonations to my grafana dashboard via the API api/annotations with the request body: { "time": 167419909, "tags": ["tag1", "tag2"], "text&...
Ankit Sahay's user avatar
  • 2,063
1 vote
0 answers
704 views

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 ...
user22009348's user avatar
3 votes
1 answer
17k views

I have configured node exporter, grafana and prometheus through docker compose. I want to show Memory usage in the dashboard. I want to match the value shown with what is shown in the Ubuntu System ...
MsA's user avatar
  • 3,039
0 votes
1 answer
584 views

I want to test the connectivity between Grafana(v9.1.6) and a Tempo datasource using the API. In the documentation, it appears that I can use the GET path /api/datasources/:datasourceId/health (https:/...
Julio Enrique Guzmán Barraza's user avatar
0 votes
1 answer
4k views

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 ...
Zander007's user avatar
2 votes
0 answers
1k views

I am creating an alert for grafana using this endpoint POST /api/v1/provisioning/alert-rules with the bellow request body. The created alert is shown in the UI, but on the health column it's showing ...
Ciprian Goia's user avatar
1 vote
1 answer
2k views

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 ...
agallende's user avatar
0 votes
1 answer
176 views

Does anybody know if there is a way to get a paginated list of the Alert Rules via the Grafana API. Specifically for Grafana versions 7.5.17 and 9.3.X I found this endpoint for the version 9.3 /api/...
Ewen Field's user avatar
1 vote
0 answers
183 views

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 ...
Yoslandy Mesa's user avatar
0 votes
1 answer
2k views

I have a sample json & I'm using JSON API plugin as i'm getting data from API { "data": [ { "timeStamp": "2022-07-28 12:00:00", &...
Sasi Raj's user avatar
0 votes
0 answers
1k views

Problem: When generating dashboard panels using Python Requests, unless the panel query is manually clicked ‘Run’ on Grafana UI, there is no data displayed. Attached image shows how it does not ...
Starseamoon's user avatar
2 votes
1 answer
2k views

Using Grafana 9.2.2 with VictoriaMetrics as data source to send alerts when certain criteria is met. Using an external service to deliver alerts by configuring an API as webhook contact point, over ...
Niyanta's user avatar
  • 473
1 vote
1 answer
3k views

I am using the following script to query logs from loki which is running on some vm.I want to get the logs on multiple boxes and do some operation on them. so i am using loki as a source to get all ...
Nitz's user avatar
  • 51
0 votes
1 answer
170 views

I was able to delete Grafana dashboard through its delete API from Postman but when I try deleting it through NodeJS code, it is not working. I get status as 200 from the code but the response body ...
raghavginfocus's user avatar
1 vote
1 answer
4k views

I'd like to be able to provision alerts, and try to follow this instructions, but no luck! OS Grafana version: 9.2.0 Running in Kubernetes Steps that I take: Created a new alert rule from UI. Extract ...
realtest0000's user avatar
1 vote
0 answers
2k views

Edit: I also posted this question, which describes the problem in a much more concise manner. I feel I might be missing something basic, but I just don't know. Any help would be appreciated. Thanks. ...
realtest0000's user avatar
12 votes
2 answers
15k views

I am trying to use loki and grafana for generating and visualizing log-based metrics. I have created a Grafana dashboard using the loki filters. While clicking the refresh button, all dashboards fail ...
Shine Kumar K P's user avatar
1 vote
0 answers
2k views

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 (...
user9517026's user avatar
0 votes
1 answer
391 views

I am able to access dashboards using the following api call- url2 = server + "/api/dashboards/uid/" + uid #uid of dashboard r = requests.get(url=url2, headers=headers, verify=False) From ...
avm's user avatar
  • 399
0 votes
1 answer
2k views

I want to update the grafana dashboard through its API but i have found out 2 problems: i got an 412 HTTP error {'message': 'A dashboard with the same name in the folder already exists', 'status': '...
Mateusz Kiersnowski's user avatar
0 votes
1 answer
2k views

I'm creating a Grafana alert with the Elastic datasource. The condition operator is grouping all meaningful labels from my alert. [ var='A0' metric='' labels={header_host=hostname1.com value=1496 ], [ ...
Brandon Kauffman's user avatar