使用 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 复制后, 就可以知道查询语句了
相关推荐
oMcLin2 天前
如何在 Rocky Linux 8.7 上通过 Prometheus 与 Grafana 结合,提升大规模容器环境的监控与性能分析?
linux·grafana·prometheus
飞翔沫沫情2 天前
Prometheus 监控 ESXi 实战
grafana·prometheus·esxi·vcenter 监控·vsphere 监控
莫非王土也非王臣2 天前
Prometheus监控多个网站状态并推送到企业微信群机器人的完整方案
机器人·企业微信·prometheus
goodlook01234 天前
监控平台搭建-日志-alloy篇(八)
grafana·prometheus
goodlook01234 天前
监控平台搭建-日志-springboot直接推送loki篇(九)
java·spring boot·后端·grafana
三不原则4 天前
实战:Prometheus 监控 GPU 使用率,设置智能告警阈值
prometheus
新钛云服4 天前
Grafana Polystat面板与腾讯云可观测平台的深度融合实践
大数据·云计算·腾讯云·grafana
flying robot5 天前
Prometheus[2.33.3]grafana[12.3.1]监控安装
grafana·prometheus
flying robot5 天前
Grafana对xx-export监控和AlertManager 告警
grafana
一只懒鱼a8 天前
Prometheus和Grafana的安装和使用
grafana·prometheus