首页 > 其他分享 >Grafana学习(9)—— Alerting - Alerting on numeric data

Grafana学习(9)—— Alerting - Alerting on numeric data

时间:2023-11-22 15:56:38浏览次数:29  
标签:Alerting 数据源 alerting Grafana numeric Azure data 警报

This topic describes how Grafana managed alerts are evaluated by the backend engine as well as how Grafana handles alerting on numeric rather than time series data.

本主题介绍Grafana管理的警报如何由后端引擎评估,以及Grafana如何处理数字而非时间序列数据的警报。

Alert evaluation
Grafana managed alerts query the following backend data sources that have alerting enabled:

built-in data sources or those developed and maintained by Grafana: Graphite, Prometheus, Loki, InfluxDB, Elasticsearch, Google Cloud Monitoring, Cloudwatch, Azure Monitor, MySQL, PostgreSQL, MSSQL, OpenTSDB, Oracle, and Azure Monitor
community developed backend data sources with alerting enabled (backend and alerting properties are set in the plugin.json

警报评估
Grafana管理的警报查询以下启用了警报的后端数据源:

  • 内置数据源或Grafana开发和维护的数据源:Graphite、Prometheus、Loki、InfluxDB、Elasticsearch、Google Cloud Monitoring、Cloudwatch、Azure Monitor、MySQL、PostgreSQL、MSSQL、OpenTSDB、Oracle和Azure Monitor
  • 社区开发的启用了警报的后端数据源(后端和警报属性在plugin.json中设置)
Metrics from the alerting engine
The alerting engine publishes some internal metrics about itself. You can read more about how Grafana publishes internal metrics.

警报引擎发布一些关于其自身的内部指标。您可以阅读更多关于Grafana如何发布内部指标的信息。

Metric Name Type Description
grafana_alerting_alerts gauge How many alerts by state
grafana_alerting_request_duration histogram Histogram of requests to the Alerting API
grafana_alerting_active_configurations gauge The number of active, non default Alertmanager configurations for grafana managed alerts
grafana_alerting_rule_evaluations_total counter The total number of rule evaluations
grafana_alerting_rule_evaluation_failures_total counter The total number of rule evaluation failures
grafana_alerting_rule_evaluation_duration summary The duration for a rule to execute
grafana_alerting_rule_group_rules gauge The number of rules
Alerting on numeric data
Among certain data sources numeric data that is not time series can be directly alerted on, or passed into Server Side Expressions (SSE). This allows for more processing and resulting efficiency within the data source, and it can also simplify alert rules. When alerting on numeric data instead of time series data, there is no need to reduce each labeled time series into a single number. Instead labeled numbers are returned to Grafana instead.

数字数据报警

  • 在某些数据源中,可以直接向非时间序列的数字数据发出警报,或将其传递到服务器端表达式(SSE)中。这允许在数据源中进行更高的处理效率,还可以简化警报规则。当对数字数据而不是时间序列数据发出警报时,无需将每个标记的时间序列reduce为单个数字。相反,labeled 的数字会返回给Grafana。
Tabular Data
This feature is supported with backend data sources that query tabular data:

SQL data sources such as MySQL, Postgres, MSSQL, and Oracle.
The Azure Kusto based services: Azure Monitor (Logs), Azure Monitor (Azure Resource Graph), and Azure Data Explorer.
A query with Grafana managed alerts or SSE is considered numeric with these data sources, if:

The “Format AS” option is set to “Table” in the data source query.
The table response returned to Grafana from the query includes only one numeric (e.g. int, double, float) column, and optionally additional string columns.
If there are string columns then those columns become labels. The name of column becomes the label name, and the value for each row becomes the value of the corresponding label. If multiple rows are returned, then each row should be uniquely identified their labels.

表格数据
查询表格数据的后端数据源支持此功能:

  • SQL数据源,如MySQL、Postgres、MSSQL和Oracle。
  • 基于Azure Kusto的服务:Azure Monitor(日志)、Azure Monitor(Azure资源图)和Azure Data Explorer。
    具有Grafana管理警报或SSE的查询在以下情况下被视为具有这些数据源的数字查询:
  • 在数据源查询中,“Format AS”选项设置为“Table”。
  • 从查询返回给Grafana的表响应只包括一个数字列(例如int、double、float),以及可选的其他字符串列。
    如果存在字符串列,则这些列将成为标签。列的名称变为标签名称,每行的值变为相应标签的值。如果返回了多行,则每一行都应唯一标识其标签。

标签:Alerting,数据源,alerting,Grafana,numeric,Azure,data,警报
From: https://www.cnblogs.com/route/p/17849206.html

相关文章

  • Grafana学习(7)——Alerting
    GrafanaAlertingallowsyoutolearnaboutproblemsinyoursystemsmomentsaftertheyoccur.MonitoryourincomingmetricsdataorlogentriesandsetupyourAlertingsystemtowatchforspecificeventsorcircumstancesandthensendnotificationswhen......
  • WPF --- 如何以Binding方式隐藏DataGrid列
    引言如题,如何以Binding的方式动态隐藏DataGrid列?预想方案像这样:先在ViewModel创建数据源People和控制列隐藏的IsVisibility,这里直接以MainWindow为DataContextpublicpartialclassMainWindow:Window,INotifyPropertyChanged{publicMainWindow(){......
  • A____Z____RECOVER____DATA勒索恢复---惜分飞
    有客户MySQL数据库被黑,业务库中表被删除,并创建A____Z____RECOVER____DATA库,里面有一张readme表,内容为:mysql>select*fromreadme\G;***************************1.row***************************zh_content:请尽快与我们取得联系,否则我们将会公布你的数据......
  • Exadata存储节点大量nvmecli进程,导致系统出现卡顿现象
    1、故障概要同事在执行Exadata巡检时,发现客户Exadata环境中的celadm01存储节点存在卡顿的现象。相同的命令,在其他的存储节点很快就返回输出结果,而celadm01这台存储节点需要很长时间才返回输出结果。 2、故障分析(1).检查主机负载情况。发现celadm01这台存储节点的负载(loadave......
  • Datawhale_0&1
    安装与启航安装Minicondagit创建和激活CONDA环境创建Conda环境condacreate-np2spython=3.12激活Conda环境condaactivatep2s删除某个Conda环境condadeactivate#退出该环境condaremove-np2s--all#删除整个环境PIP安装与展示Pip安装第三方库......
  • datawhale task01,02
    python要点conda![1700559481851](C:\Users\25322\Documents\WeChatFiles\wxid_xc71h7t6nm2i22\FileStorage\Temp\1700559481851.png)注释单行注释以#开头多行注释可以用多个#号,还有'''和""".程序员最讨厌的10件事:0:别人的代码不写注释​......
  • 将DataFrame 的每一列的列标题和每一行元素打包成一个元组 *zip
    将DataFrame的每一列的(列标题和每一行元素)打包成一个元组将DataFrame的(列标题)和deffun_zip(self,df_arg=pd.DataFrame(),bool_arg=False):#每列元素打包zipped=zip(*[df_arg.iloc[i]foriinrange(df_arg.sha......
  • evm体系中data和value的区别
    在区块链中,data和value是两个不同的字段,具有不同的含义和用途。1.data字段:data字段用于存储任意的数据,可以是交易数据、智能合约代码、文本注释等。在以太坊和其他智能合约平台中,data字段通常用于传递智能合约的调用或消息,其中包含了要执行的函数、参数等信息。data字段的内容......
  • Databend 开源周报第 120 期
    Databend是一款现代云数仓。专为弹性和高效设计,为您的大规模分析需求保驾护航。自由且开源。即刻体验云服务:https://app.databend.cn。What'sOnInDatabend探索Databend本周新进展,遇到更贴近你心意的Databend。使用自定义CONNECTION管理存储访问Databend现已提......
  • easyui datagrid实现通用编辑
    functionBillEdit(Jquerygrd){varself=this;this.grd=Jquerygrdthis.editIndex=undefinedthis.GetCurrentIndex=function(){letindex=nullletrow=this.grd.datagrid("getSelected")if(row!=null)......