Atlassian Statuspage Grafana 数据源
注意
Atlassian Statuspage 企业数据源(适用于 Grafana)目前处于公开预览阶段。Grafana Labs 提供有限支持,并且该功能在正式发布前可能会发生重大更改。
Atlassian Statuspage 数据源插件允许您查询您的 Atlassian Statuspage 的页面运行状态、事件和计划维护。
要求
此插件有以下要求
- 有效的 Atlassian Statuspage
- 任何免费或付费的 Grafana Cloud 套餐或已激活的本地 Grafana Enterprise 许可证。签约 Cloud 客户应参考其合同。
安装数据源
要安装数据源,请参阅安装。
在 Grafana 中配置数据源
添加数据源,填写以下信息
连接
URL
这是您的 Atlassian Statuspage URL。您应包含协议(例如 https://
)并移除尾部 /
。以下是一些示例。
URL | 正确吗? |
---|---|
https://status.grafana.com | ✅ 正确 |
https://taewookim.statuspage.io | ✅ 正确 |
status.grafana.com | ❌ 错误 - 缺少 https:// |
https://status.grafana.com/ | ❌ 错误 - 包含尾部 / |
认证
此数据源不需要认证。可以使用任何公共 Atlassian Statuspage。
通过 Provisioning 配置数据源
可以使用配置文件通过 Grafana 的 Provisioning 系统配置数据源。要了解其工作原理,请参阅Provisioning Grafana 数据源。
以下是使用 API token 认证配置此数据源的 Provisioning 示例
apiVersion: 1
datasources:
- name: Atlassian Statuspage
type: grafana-atlassianstatuspage-datasource
jsonData:
variables:
url: <YOUR_ATLASSIAN_STATUSPAGE_URL>
查询数据源
插件允许查询 Summary
、Status
、Components
、Unresolved incidents
、All incidents
、Upcoming scheduled maintenances
、Active scheduled maintenances
、All scheduled maintenances
。
查询 Status 数据
Status 查询显示您页面的运行状态
查询 Summary 数据
获取整个页面的状态汇总。此端点包含一个指示器 - 可能的值包括 none、minor、major 或 critical,以及混合组件状态的描述。混合状态的示例包括“所有系统运行正常”、“部分系统中断”和“主要服务中断”。
查询 Components 数据
获取页面的 Components。每个组件及其状态都会列出 - 可能的值包括 operational、degraded_performance、partial_outage 或 major_outage。
查询 Unresolved incidents 数据
获取任何未解决的事件列表。此端点仅返回处于 Investigating、Identified 或 Monitoring 状态的事件。
查询 All incidents 数据
获取最近 50 个事件的列表。这包括上述所有未解决的事件,以及处于 Resolved 和 Postmortem 状态的事件。
查询 Upcoming scheduled maintenances 数据
获取任何即将到来的维护列表。此端点仅返回仍处于 Scheduled 状态的计划维护。
Active scheduled maintenances 数据
获取任何活跃维护的列表。此端点仅返回处于 In Progress 或 Verifying 状态的计划维护。
All scheduled maintenances 数据
获取最近 50 个计划维护的列表。这包括上述两个端点中描述的计划维护,以及处于 Completed 状态的维护。
注解
您可以使用注解在仪表盘上可视化 Atlassian Statuspage 数据与其他数据之间的关系。有关如何使用注解的一般信息,请参阅文档。
已知限制
Incidents
和Maintenances
操作目前仅返回最多 50 条最新记录。- 目前插件不支持告警。
了解更多
- 添加转换。