使用 Grafana api 查询 Datasource 数据

一、使用grafana 的api 接口 官方API

二、生成Api key

  1. 点击 Administration -》Users and accss -》Service accounts 进入页面
  2. 点击Add service account
  3. 创建 service account
  4. 点击Add service account token
  5. 点击 Generate token , 就可以生成 api key 了

    三、进入grafana 查询面板,F12打开控制台,查看 query 接口的请求body

    右键copy 复制后, 就可以知道查询语句了
相关推荐
AIOps打工人2 天前
Grafana Query MCP:基于FastAPI的Grafana查询转换与分页服务
运维·数据库·python·ai·grafana·fastapi·devops
学Linux的语莫2 天前
prometheus、grafana的docker搭建
docker·容器·prometheus
为什么不问问神奇的海螺呢丶2 天前
服务器巡检报告-基于categraf 采集数据-存入Prometheus-写入mysql后生成报告
服务器·mysql·prometheus
一枚正在学习的小白3 天前
prometheus监控mysql服务
linux·运维·mysql·prometheus
chen_note4 天前
监控——普罗米修斯
grafana·prometheus
闲人编程4 天前
Prometheus监控指标集成指南
prometheus·监控·promql·仪表盘··cncf·codecapsule
木子欢儿5 天前
Prometheus Blackbox域名SSL证书监控并设置AlertManager告警
网络·网络协议·ssl·prometheus
lvbinemail5 天前
Grafana模板自动复制图表
数据库·mysql·zabbix·grafana·监控
wxjlkh5 天前
docker 搭建 grafana+prometheus 监控主机资源之node_exporter
docker·grafana·prometheus
yunson_Liu6 天前
kube-prometheus-stack基础上部署domain-exporter监控域名注册过期时间
prometheus