使用 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 复制后, 就可以知道查询语句了
相关推荐
何中应10 小时前
Grafana展示服务器数据
运维·服务器·grafana
qq_2975746720 小时前
K8s系列第十三篇:K8s 监控告警实战:Prometheus + Grafana 部署与配置
kubernetes·grafana·prometheus
tian_jiangnan2 天前
grafana白皮书
linux·服务器·grafana
学不完的2 天前
ZrLog 高可用架构监控部署指南(Prometheus + Grafana)
linux·运维·架构·负载均衡·grafana·prometheus·ab测试
桌面运维家3 天前
Prometheus服务器监控告警实战指南
运维·服务器·prometheus
qq_266348734 天前
Grafana+Loki+Alloy日志采集系统-3
grafana·loki·alloy
秦渝兴4 天前
MySQL容器部署Prometheus+Granfana全流程
grafana·prometheus
七夜zippoe4 天前
OpenClaw 日志与调试技巧:从入门到精通
grafana·日志·调试技巧·log·openclaw
布史5 天前
Prometheus Python Client 实操指南:从零实现自定义 Exporter
网络·python·prometheus
Yu_摆摆7 天前
windows部署prometheus+windows_exporter+grafana+alertmanager实现监控CPU、内存、磁盘并邮件告警
windows·grafana·prometheus