使用 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 复制后, 就可以知道查询语句了
相关推荐
雾隐隐o7 小时前
AI 零代码生成平台 13|ARMS与 Prometheus可观测性
人工智能·prometheus
一万年太久。10 小时前
Prometheus的安装部署
prometheus
飞奔的瓜牛1 天前
Loki + Promtail + Prometheus + Grafana 实现日志关键字监控及告警
grafana·prometheus·日志监控告警
飞奔的瓜牛1 天前
Loki + Grafana + Alloy 实现日志检索:完整部署步骤
grafana
JasonChen@6662 天前
Prometheus 黑盒监控入门:Blackbox Exporter 配置全解析(20)
prometheus·blackbox
JasonChen@6664 天前
Prometheus 存储实战:本地 TSDB 配置与 VictoriaMetrics 远端存储对接(18)
grafana·prometheus·victoria
JasonChen@6665 天前
Grafana 权限管理实战:用户授权与 Team 团队管理(17)
grafana·prometheus
JasonChen@6666 天前
pushgateway组件实现自定义监控数据采集(16)
grafana·prometheus·pushgateway
W_son8 天前
14.Grafana 监控看板实战:新建、调优、变量配置全流程
grafana·prometheus
真上帝的左手9 天前
2. 编程语言-Java-Spring Boot-集成SkyWalking + Prometheus 性能工程闭环实战
java·spring boot·性能优化·架构·系统架构·prometheus·skywalking