content large_stringlengths 3 20.5k | url large_stringlengths 53 192 ⌀ | branch large_stringclasses 4
values | source large_stringclasses 51
values | embeddings listlengths 384 384 | score float64 -0.21 0.65 |
|---|---|---|---|---|---|
-> 1010 triggers a firing alert. - 1010 -> 990 does not resolve the alert, keeping it in the firing state. - 990 -> 1020 keeps the alert in the firing state. The recovery threshold mitigates unnecessary alert state changes and reduces alert noise. {{< collapse title="Classic condition (legacy)" >}} #### Classic conditi... | https://github.com/grafana/grafana/blob/main/docs/sources/alerting/fundamentals/alert-rules/queries-conditions.md | main | grafana | [
-0.05704164505004883,
0.08105133473873138,
0.06037304177880287,
0.024813460186123848,
0.10798866301774979,
-0.01149447076022625,
0.043616361916065216,
0.035222768783569336,
0.02072756178677082,
-0.06642217934131622,
-0.02718067355453968,
0.019645163789391518,
-0.003726943163201213,
-0.0170... | 0.111948 |
# Labels and annotations Labels and annotations add additional information about an alert using key/value pairs: - [Labels](#labels) are used to differentiate an alert from all other alerts and decide how to manage them. - [Annotations](#annotations) provide extra details for alert responders to help them understand an... | https://github.com/grafana/grafana/blob/main/docs/sources/alerting/fundamentals/alert-rules/annotation-label.md | main | grafana | [
-0.04033568874001503,
0.037080664187669754,
-0.04598992317914963,
0.06857886165380478,
0.1130199134349823,
-0.014850284904241562,
0.14784090220928192,
-0.03530154749751091,
0.07875213027000427,
-0.08281505852937698,
-0.030479706823825836,
-0.030538149178028107,
0.06961310654878616,
0.00916... | 0.221688 |
means that label keys must only contain \_ASCII letters\_, \_numbers\_, and \_underscores\_. Label keys must also be matched by the regular expression `[a-zA-Z\_][a-zA-Z0-9\_]\*`. Any invalid characters are removed or replaced by the Grafana alerting engine before being sent to the external Alertmanager according to th... | https://github.com/grafana/grafana/blob/main/docs/sources/alerting/fundamentals/alert-rules/annotation-label.md | main | grafana | [
-0.12550809979438782,
0.03369386866688728,
-0.05520428344607353,
0.042291343212127686,
0.023980120196938515,
-0.025812869891524315,
0.1207972913980484,
-0.05868580937385559,
0.0800873190164566,
-0.05794869735836983,
0.04288989678025246,
-0.03230387717485428,
0.07934240251779556,
-0.0021967... | 0.175364 |
# Alert rules An alert rule is a set of evaluation criteria for when an alert rule should fire. An alert rule consists of: 1. [Queries](ref:queries-and-conditions) that select the dataset to evaluate. 1. An [alert condition](ref:alert-condition) (the threshold) that the query must meet or exceed to trigger the alert in... | https://github.com/grafana/grafana/blob/main/docs/sources/alerting/fundamentals/alert-rules/_index.md | main | grafana | [
-0.04241948202252388,
0.023185579106211662,
-0.030873822048306465,
0.0381210595369339,
0.07301942259073257,
-0.11181990802288055,
0.0644541084766388,
-0.01649695262312889,
0.02708779089152813,
-0.020441962406039238,
-0.001810939167626202,
-0.059883687645196915,
0.1176416203379631,
0.012145... | 0.191857 |
# Meta monitoring Monitor your alerting metrics to ensure you identify potential issues before they become critical. Meta monitoring is the process of monitoring your monitoring system and alerting when your monitoring is not working as it should. In order to enable you to meta monitor, Grafana provides predefined metr... | https://github.com/grafana/grafana/blob/main/docs/sources/alerting/set-up/meta-monitoring.md | main | grafana | [
-0.03916569799184799,
-0.011223233304917812,
-0.07315127551555634,
0.00902151595801115,
-0.005602617282420397,
-0.09860000014305115,
0.027135267853736877,
0.0037668468430638313,
0.0027238684706389904,
0.025883499532938004,
-0.07954266667366028,
-0.1062387004494667,
-0.0026608435437083244,
... | 0.173259 |
scheduled unless it is paused, and the value of this metric should match the total number of non-paused alert rules in Grafana. #### grafana\_alerting\_schedule\_periodic\_duration\_seconds\_bucket This metric is a histogram that shows you the time it takes to process an individual tick in the scheduler that evaluates ... | https://github.com/grafana/grafana/blob/main/docs/sources/alerting/set-up/meta-monitoring.md | main | grafana | [
-0.08659739792346954,
-0.01604553498327732,
-0.09489426016807556,
0.022353312000632286,
-0.025820434093475342,
-0.055498115718364716,
0.011862833984196186,
-0.02919747866690159,
0.045700736343860626,
0.0029590672347694635,
-0.038709256798028946,
-0.08575080335140228,
0.0082396250218153,
0.... | 0.144633 |
suppressed, and unprocessed alerts in Alertmanager. Suppressed alerts are silenced alerts, and unprocessed alerts are alerts that have been sent to the Alertmanager but have not been processed. #### alertmanager\_alerts\_invalid\_total This metric is a counter that shows you the number of invalid alerts that were sent ... | https://github.com/grafana/grafana/blob/main/docs/sources/alerting/set-up/meta-monitoring.md | main | grafana | [
0.013694697059690952,
-0.028503835201263428,
-0.02078319899737835,
0.08687834441661835,
0.05081361532211304,
-0.04624806344509125,
0.1205543652176857,
-0.031323421746492386,
0.115933358669281,
-0.03779279440641403,
0.04832417145371437,
-0.054955076426267624,
0.09676449745893478,
-0.0001636... | 0.212572 |
# Configure roles and permissions This guide explains how to configure roles and permissions for Grafana Alerting for Grafana OSS users. You'll learn how to manage access using roles, folder permissions, and contact point permissions. A user is any individual who can log in to Grafana. Each user is associated with a ro... | https://github.com/grafana/grafana/blob/main/docs/sources/alerting/set-up/configure-roles/index.md | main | grafana | [
-0.07156217098236084,
-0.010457221418619156,
-0.13936883211135864,
-0.0076018632389605045,
-0.06360751390457153,
-0.04941786453127861,
0.05366038531064987,
-0.025178832933306694,
0.00169915403239429,
-0.0016798232682049274,
-0.03091057948768139,
-0.0290092620998621,
-0.0010718724224716425,
... | 0.123633 |
should have additional permissions to read users and teams. | ### Assign contact point permissions To manage contact point permissions, complete the following steps: 1. In the left-side menu, click \*\*Notification configuration\*\*, then select the \*\*Contact points\*\* tab. 1. Hover your mouse cursor over a contact ... | https://github.com/grafana/grafana/blob/main/docs/sources/alerting/set-up/configure-roles/index.md | main | grafana | [
-0.015044068917632103,
-0.027725422754883766,
-0.02364116534590721,
-0.038131993263959885,
0.06980324536561966,
-0.015903031453490257,
0.0584946870803833,
-0.03564174100756645,
0.09465206414461136,
0.006228583864867687,
-0.028303463011980057,
-0.02073623426258564,
-0.0069454326294362545,
0... | 0.048659 |
# Configure high availability Grafana Alerting uses the Prometheus model of separating the evaluation of alert rules from the delivering of notifications. In this model, the evaluation of alert rules is done in the alert generator and the delivering of notifications is done in the alert receiver. In Grafana Alerting, t... | https://github.com/grafana/grafana/blob/main/docs/sources/alerting/set-up/configure-high-availability/_index.md | main | grafana | [
-0.07596699148416519,
0.011694148182868958,
-0.015757033601403236,
0.05374737083911896,
0.059059131890535355,
-0.12532103061676025,
-0.010288745164871216,
-0.05440853163599968,
0.02855437994003296,
0.020509453490376472,
-0.01852368749678135,
-0.04306279495358467,
0.06217145174741745,
0.014... | 0.137128 |
>}} Memberlist is the preferred option for high availability. Use Redis only in environments where direct communication between Grafana servers is not possible, such as when TCP or UDP ports are blocked. {{< /admonition >}} 1. Make sure you have a Redis server that supports pub/sub. If you use a proxy in front of your ... | https://github.com/grafana/grafana/blob/main/docs/sources/alerting/set-up/configure-high-availability/_index.md | main | grafana | [
-0.03804929181933403,
-0.10154648870229721,
-0.10409457236528397,
0.036584679037332535,
-0.01103715319186449,
-0.022508781403303146,
-0.014027209021151066,
0.007765929214656353,
-0.010890327394008636,
0.010894987732172012,
-0.045598775148391724,
-0.028763441368937492,
0.009761976078152657,
... | 0.145975 |
- \*\*Alert broadcasting:\*\* The primary instance broadcasts fired alerts to all other instances through the cluster communication channel. This ensures that every instance's embedded Alertmanager has the current alerts, which is needed for failure recovery and for the Alertmanager API to return correct data on all in... | https://github.com/grafana/grafana/blob/main/docs/sources/alerting/set-up/configure-high-availability/_index.md | main | grafana | [
0.02486208640038967,
0.004838678520172834,
-0.0028547944966703653,
0.10564277321100235,
0.10636310279369354,
-0.03242722526192665,
0.07310003787279129,
-0.037847381085157394,
0.046683959662914276,
-0.01603037118911743,
-0.005432211793959141,
-0.014983240514993668,
0.11094970256090164,
-0.0... | 0.205694 |
provides a straightforward way to verify that your high availability configuration is working correctly. {{< admonition type="note" >}} If using a mix of `execute\_alerts=false` and `execute\_alerts=true` on the HA nodes, since the alert state is not shared amongst the Grafana instances, the instances with `execute\_al... | https://github.com/grafana/grafana/blob/main/docs/sources/alerting/set-up/configure-high-availability/_index.md | main | grafana | [
-0.0461759977042675,
-0.008641690015792847,
-0.03356420621275902,
0.046160075813531876,
-0.0000652230010018684,
-0.09504388272762299,
0.01784789375960827,
-0.06879156827926636,
-0.0017952094785869122,
0.004750214982777834,
-0.00047379685565829277,
-0.05915309861302376,
0.01751043274998665,
... | 0.070015 |
# Performance considerations and limitations Grafana Alerting supports multi-dimensional alerting, where one alert rule can generate many alerts. For example, you can configure an alert rule to fire an alert every time the CPU of individual virtual machines max out. This topic discusses performance considerations resul... | https://github.com/grafana/grafana/blob/main/docs/sources/alerting/set-up/performance-limitations/index.md | main | grafana | [
-0.014132604002952576,
0.0010231034830212593,
-0.0875842347741127,
-0.008329496718943119,
-0.006033796817064285,
-0.11291840672492981,
0.017739474773406982,
-0.027906330302357674,
0.044941265136003494,
-0.00017214695981238037,
-0.09824229776859283,
-0.03639496862888336,
0.07236174494028091,
... | 0.110877 |
only receive Grafana managed alerts Grafana cannot be used to receive external alerts. You can only send alerts to the Grafana Alertmanager using Grafana managed alerts. You have the option to send Grafana-managed alerts to an external Alertmanager, you can find this option in the Admin tab on the Alerting page. For mo... | https://github.com/grafana/grafana/blob/main/docs/sources/alerting/set-up/performance-limitations/index.md | main | grafana | [
-0.04269622638821602,
-0.07697398215532303,
-0.06521778553724289,
0.05041654035449028,
-0.025252873077988625,
-0.13564930856227875,
-0.0014396581100299954,
-0.03531860560178757,
0.03217529132962227,
0.04319608956575394,
-0.06191857531666756,
-0.039097897708415985,
0.05006919056177139,
-0.0... | 0.054436 |
takes to write to the database periodically can be monitored using the `state\_full\_sync\_duration\_seconds` metric that is exposed by Grafana. If Grafana crashes or is force killed, then the database can be up to `state\_periodic\_save\_interval` seconds out of date. When Grafana restarts, the UI might show incorrect... | https://github.com/grafana/grafana/blob/main/docs/sources/alerting/set-up/performance-limitations/index.md | main | grafana | [
-0.05461633577942848,
-0.0625743642449379,
-0.03460082784295082,
0.021208714693784714,
0.006116467993706465,
-0.06054430454969406,
-0.05948499217629433,
-0.04519668221473694,
-0.01539217121899128,
0.05276523903012276,
-0.04878642410039902,
-0.00828952994197607,
-0.0033452711068093777,
-0.0... | 0.068773 |
# Configure alert state history Alerting can record all alert rule state changes for your Grafana managed alert rules in a Loki or Prometheus instance, or in both. - With Prometheus, you can query the `GRAFANA\_ALERTS` metric for alert state changes in \*\*Grafana Explore\*\*. - With Loki, you can query and view alert ... | https://github.com/grafana/grafana/blob/main/docs/sources/alerting/set-up/configure-alert-state-history/index.md | main | grafana | [
-0.04820060357451439,
-0.010766969993710518,
-0.03804228827357292,
0.03197791799902916,
0.014368874952197075,
-0.08720652759075165,
-0.025189099833369255,
-0.04633745923638344,
0.01860712841153145,
0.016217757016420364,
-0.041082777082920074,
-0.06124519556760788,
-0.013596330769360065,
0.... | 0.1496 |
= loki # URL of the Loki server. loki\_remote\_url = http://localhost:3100 secondaries = prometheus # Target data source UID for writing alert state changes. prometheus\_target\_datasource\_uid = ``` | https://github.com/grafana/grafana/blob/main/docs/sources/alerting/set-up/configure-alert-state-history/index.md | main | grafana | [
-0.07274757325649261,
0.034195899963378906,
0.014175904914736748,
0.0356532484292984,
0.052146945148706436,
-0.12417561560869217,
0.022444995120167732,
0.005491966847330332,
0.021385639905929565,
-0.0011952617205679417,
-0.013122214935719967,
-0.07716263085603714,
-0.002107897074893117,
0.... | 0.247895 |
# Provision Alerting resources Alerting infrastructure is often complex, with many pieces of the pipeline that often live in different places. Scaling this across multiple teams and organizations is an especially challenging task. Importing and exporting (or provisioning) your alerting resources in Grafana Alerting mak... | https://github.com/grafana/grafana/blob/main/docs/sources/alerting/set-up/provision-alerting-resources/_index.md | main | grafana | [
-0.07930155843496323,
-0.0005297324969433248,
-0.048453230410814285,
0.05593898892402649,
0.059362322092056274,
-0.0937231257557869,
0.022796982899308205,
-0.0514284148812294,
0.03687894344329834,
0.03662646934390068,
-0.05450901389122009,
-0.06892415136098862,
0.01615913026034832,
0.03194... | 0.103517 |
# Use Terraform to provision alerting resources Use Terraform’s Grafana Provider to manage your alerting resources and provision them into your Grafana system. Terraform provider support for Grafana Alerting makes it easy to create, manage, and maintain your entire Grafana Alerting stack as code. This guide outlines th... | https://github.com/grafana/grafana/blob/main/docs/sources/alerting/set-up/provision-alerting-resources/terraform-provisioning/index.md | main | grafana | [
-0.021610649302601814,
0.025073200464248657,
-0.046790752559900284,
0.04987586662173271,
0.05088447406888008,
-0.10383182018995285,
0.03254754841327667,
-0.05423436686396599,
0.06862907856702805,
0.056581124663352966,
-0.051258672028779984,
-0.11997433006763458,
0.06633928418159485,
0.0472... | 0.079996 |
the alert rule group in Terraform format. This exports the alert rule group as [`grafana\_rule\_group` Terraform resource](https://registry.terraform.io/providers/grafana/grafana/latest/docs/resources/rule\_group). You can edit the exported resource, or alternatively, consider creating the resource from scratch. ```ter... | https://github.com/grafana/grafana/blob/main/docs/sources/alerting/set-up/provision-alerting-resources/terraform-provisioning/index.md | main | grafana | [
-0.08896489441394806,
0.035376571118831635,
-0.03737325593829155,
0.06611382961273193,
0.06625860184431076,
-0.0817708745598793,
0.043496277183294296,
-0.06688857823610306,
0.07667422294616699,
0.038972701877355576,
-0.001611186657100916,
-0.10508675128221512,
0.039701852947473526,
0.01577... | 0.099029 |
### Add mute timings [Mute timings](ref:mute-timings) pause alert notifications during predetermined intervals. 1. Create or find the mute timings you want to import in Grafana. Alternatively, consider writing the resource in code as demonstrated in the example below. 1. [Export](ref:alerting\_export) the mute timing i... | https://github.com/grafana/grafana/blob/main/docs/sources/alerting/set-up/provision-alerting-resources/terraform-provisioning/index.md | main | grafana | [
-0.07433711737394333,
-0.0076112691313028336,
-0.00519399531185627,
0.017960598692297935,
-0.016293639317154884,
-0.036161042749881744,
0.008355679921805859,
-0.11949017643928528,
0.004916494712233543,
0.02830270677804947,
-0.04445436969399452,
-0.1386847198009491,
-0.0018614311702549458,
... | 0.029058 |
of the Terraform Alerting schemas in the [Grafana Terraform Provider documentation](https://registry.terraform.io/providers/grafana/grafana/latest/docs). - Review the [tutorial to manage a Grafana Cloud stack using Terraform](ref:provision-cloud-with-terraform). | https://github.com/grafana/grafana/blob/main/docs/sources/alerting/set-up/provision-alerting-resources/terraform-provisioning/index.md | main | grafana | [
-0.03768380731344223,
-0.02138371206820011,
-0.024755874648690224,
0.03388208523392677,
-0.013124773278832436,
-0.04981086403131485,
-0.043165069073438644,
-0.07502404600381851,
0.009124884381890297,
0.09367325901985168,
-0.029225429520010948,
-0.11530507355928421,
0.030917905271053314,
0.... | 0.108783 |
# Export alerting resources Export your alerting resources, such as alert rules, contact points, and notification policies for provisioning, automatically importing single folders and single groups. There are distinct methods to export your alerting resources: - [Grafana UI](#export-from-the-grafana-ui) exports in Terr... | https://github.com/grafana/grafana/blob/main/docs/sources/alerting/set-up/provision-alerting-resources/export-alerting-resources/index.md | main | grafana | [
-0.06641153246164322,
0.017510676756501198,
-0.07642189413309097,
0.057184670120477676,
0.07350217550992966,
-0.07303785532712936,
-0.0017816051840782166,
-0.04904377460479736,
0.03461039066314697,
0.05228695645928383,
-0.012462479993700981,
-0.07122299075126648,
-0.0129037881270051,
0.051... | 0.061742 |
using Terraform. To export your alert rule definition into Terraform (HCL) format, complete the following steps. 1. Click \*\*Alerts & IRM\*\* -> \*\*Alert rules\*\*. 2. Click \*\*Export rule definition\*\*. 3. Fill out the alert rule details. 4. Choose a provisioned folder and group to add your alert rule definition t... | https://github.com/grafana/grafana/blob/main/docs/sources/alerting/set-up/provision-alerting-resources/export-alerting-resources/index.md | main | grafana | [
-0.05489995703101158,
0.027938934043049812,
-0.0481860488653183,
0.0211944542825222,
0.06868430972099304,
-0.06263574957847595,
0.045514293015003204,
-0.05644899234175682,
0.05253591760993004,
0.057168398052453995,
-0.06189301609992981,
-0.13545596599578857,
0.06465936452150345,
-0.0074971... | 0.021181 |
Terraform (HCL). | Resource | Method / URI | Summary | | ------------------------ | -------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | | Alert rules | GET /api/v1/provisioning/alert-rules/export | [Export ... | https://github.com/grafana/grafana/blob/main/docs/sources/alerting/set-up/provision-alerting-resources/export-alerting-resources/index.md | main | grafana | [
0.0018367114244028926,
0.09505975246429443,
-0.02112889476120472,
0.020770534873008728,
0.11339874565601349,
-0.05424944683909416,
0.006998803000897169,
-0.0180602315813303,
0.03329663351178169,
0.039597757160663605,
0.004391530994325876,
-0.12782342731952667,
0.039891816675662994,
-0.0456... | 0.01243 |
# Use configuration files to provision alerting resources Manage your alerting resources using configuration files that can be version controlled. When Grafana starts, it provisions the resources defined in your configuration files. [Provisioning](ref:provisioning) can create, update, or delete existing resources in yo... | https://github.com/grafana/grafana/blob/main/docs/sources/alerting/set-up/provision-alerting-resources/file-provisioning/index.md | main | grafana | [
-0.045429714024066925,
0.020283127203583717,
-0.051677387207746506,
0.031816452741622925,
0.03149052709341049,
-0.07431977987289429,
0.02134694904088974,
-0.06436064839363098,
0.042703207582235336,
0.05662298947572708,
-0.02261381410062313,
-0.06673936545848846,
0.002789613325148821,
0.031... | 0.041196 |
"NoData", "Alerting", "OK", default = NoData noDataState: Alerting # the state the alert rule will have when the query execution # failed - possible values: "Error", "Alerting", "OK" # default = Alerting execErrState: Alerting # for how long should the alert fire before alerting for: 60s # > a map of strings to pass ar... | https://github.com/grafana/grafana/blob/main/docs/sources/alerting/set-up/provision-alerting-resources/file-provisioning/index.md | main | grafana | [
-0.062994584441185,
0.048981063067913055,
-0.054345279932022095,
0.019238796085119247,
0.05448282137513161,
-0.04924517124891281,
0.06015909090638161,
-0.055577073246240616,
0.02877700701355934,
-0.02891264669597149,
-0.005958861671388149,
-0.05330386012792587,
0.04425561800599098,
-0.0044... | 0.146024 |
type: line settings: # token: xxx ``` {{< /collapse >}} {{< collapse title="MQTT" >}} #### MQTT ```yaml type: mqtt settings: # brokerUrl: tcp://127.0.0.1:1883 # clientId: grafana # topic: grafana/alerts # messageFormat: json # username: grafana # password: password1 # qos: 0 # retain: false # tlsConfig: # insecureSkipV... | https://github.com/grafana/grafana/blob/main/docs/sources/alerting/set-up/provision-alerting-resources/file-provisioning/index.md | main | grafana | [
-0.07560146600008011,
0.11362645030021667,
-0.03274965658783913,
0.03994163125753403,
-0.06971971690654755,
-0.04946945607662201,
-0.030747342854738235,
-0.019027894362807274,
0.06894856691360474,
0.021986886858940125,
-0.003579261712729931,
-0.08324012905359268,
0.05299965292215347,
0.059... | 0.020838 |
X-Grafana-Alerting-Signature-Timestamp ``` {{< /collapse >}} {{< collapse title="WeCom" >}} #### WeCom ```yaml type: wecom settings: # url: https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=xxxxxxxx # message: | {{ template "default.message" . }} # title: | {{ template "default.title" . }} ``` {{< /collapse >}} ## I... | https://github.com/grafana/grafana/blob/main/docs/sources/alerting/set-up/provision-alerting-resources/file-provisioning/index.md | main | grafana | [
-0.0972440242767334,
0.06807887554168701,
-0.05937576666474342,
0.04463977739214897,
0.016901688650250435,
-0.05622041970491409,
0.030743012204766273,
-0.021877223625779152,
0.04605725035071373,
-0.04118354618549347,
0.007377151399850845,
-0.1176803708076477,
0.021331068128347397,
0.003228... | 0.081556 |
node (allowed chars # [a-zA-Z\_:]) matchers: - alertname = Watchdog - service\_id\_X = serviceX - severity =~ "warning|critical" # a list of grafana-like matchers that an alert rule has to fulfill to match the node object\_matchers: - ['alertname', '=', 'CPUUsage'] - ['service\_id-X', '=', 'serviceX'] - ['severity', '=... | https://github.com/grafana/grafana/blob/main/docs/sources/alerting/set-up/provision-alerting-resources/file-provisioning/index.md | main | grafana | [
-0.12164013832807541,
-0.023913931101560593,
-0.020532503724098206,
0.07114174962043762,
0.0105591407045722,
-0.03785945102572441,
0.05082190781831741,
-0.034868307411670685,
0.039339400827884674,
0.017006704583764076,
-0.012586559168994427,
-0.04415655881166458,
0.05408693850040436,
-0.01... | 0.189978 |
addresses: $EMAIL ``` In this example, provisioning replaces `$EMAIL` with the value of the `EMAIL` environment variable or an empty string if it is not present. For more information, refer to [Using environment variables in the Provision documentation](ref:provisioning\_env\_vars). In alerting resources, most properti... | https://github.com/grafana/grafana/blob/main/docs/sources/alerting/set-up/provision-alerting-resources/file-provisioning/index.md | main | grafana | [
0.02707180753350258,
0.025492938235402107,
0.05017555132508278,
0.05836882069706917,
0.08184512704610825,
-0.01139160804450512,
0.09721338748931885,
-0.024527907371520996,
0.0671016126871109,
-0.0015667214756831527,
-0.001990554854273796,
-0.10596885532140732,
0.02510826662182808,
0.011565... | 0.052389 |
# Configure RBAC [Role-based access control (RBAC)](/docs/grafana/latest/administration/roles-and-permissions/access-control/plan-rbac-rollout-strategy/) for Grafana Enterprise and Grafana Cloud provides a standardized way of granting, changing, and revoking access, so that users can view and modify Grafana resources. ... | https://github.com/grafana/grafana/blob/main/docs/sources/alerting/set-up/configure-rbac/_index.md | main | grafana | [
-0.08091326802968979,
0.002504287287592888,
-0.09510736167430878,
0.038440339267253876,
-0.02836715616285801,
0.00439333263784647,
0.05012042820453644,
-0.04152487963438034,
0.008234870620071888,
0.055235859006643295,
-0.03490953892469406,
-0.005073638167232275,
0.006442446727305651,
0.050... | 0.14838 |
the scope of data sources the user can query. | | `alert.rules:delete` | `folders:\*` `folders:uid:\*` | Delete Grafana alert rules in a folder and its subfolders. Combine this permission with `folders:read` in a scope that includes the folder. | ### External alert rules Permissions for managing alert rules in external... | https://github.com/grafana/grafana/blob/main/docs/sources/alerting/set-up/configure-rbac/_index.md | main | grafana | [
-0.029997335746884346,
0.03275443986058235,
-0.11040893942117691,
0.0481722429394722,
0.027171798050403595,
-0.10355928540229797,
0.1027180477976799,
-0.006117934361100197,
0.04508988559246063,
-0.03248290345072746,
0.03687824681401253,
-0.03053348697721958,
0.05100491642951965,
0.01738349... | 0.087658 |
update existing templates. | | `alert.notifications.templates:delete` | n/a | Delete existing templates. | | `alert.notifications.templates.test:write` | n/a | Test templates with custom payloads (preview and payload editor functionality). | ### External notifications Permissions for managing notification resources in ... | https://github.com/grafana/grafana/blob/main/docs/sources/alerting/set-up/configure-rbac/_index.md | main | grafana | [
0.010975424200296402,
0.011724249459803104,
0.009797899052500725,
0.0465884730219841,
0.0483759269118309,
-0.06310293078422546,
0.03637607395648956,
-0.018851429224014282,
0.023917056620121002,
-0.014979025349020958,
-0.004748461302369833,
-0.07172658294439316,
0.03558851405978203,
0.00066... | 0.079231 |
| ------------------------------------------------------------------------------------------------------------------------------------ | | `alert.notifications.receivers:test` | n/a | Use `alert.notifications.receivers.test:create` with scope `receivers:uid:-` (new integrations) or `receivers:\*` (existing) instead. | | https://github.com/grafana/grafana/blob/main/docs/sources/alerting/set-up/configure-rbac/_index.md | main | grafana | [
-0.011610393412411213,
0.01310823019593954,
-0.032128527760505676,
0.08650662750005722,
0.00625123456120491,
-0.05563632771372795,
0.1188066303730011,
-0.05249660089612007,
0.02597764879465103,
-0.013025419786572456,
0.043796371668577194,
-0.0635964423418045,
0.06889639794826508,
0.0366426... | 0.06629 |
# Configure silence access This article describes how Grafana Alerting controls access to silences and how to configure it for your teams. Use this article when you need to give some users full silence management while limiting others to silencing only their own rules. Before you begin, ensure you have: - Admin access ... | https://github.com/grafana/grafana/blob/main/docs/sources/alerting/set-up/configure-rbac/silence-access/index.md | main | grafana | [
-0.047673746943473816,
0.022661302238702774,
-0.09343733638525009,
0.04003492742776871,
0.021638285368680954,
-0.050271037966012955,
0.0697513148188591,
-0.11250117421150208,
0.03248139098286629,
-0.058528006076812744,
-0.04423070326447487,
-0.05203991010785103,
0.033381473273038864,
0.030... | 0.110705 |
Enterprise and Grafana Cloud, folder permissions grant the same silence access as in OSS, but you can go further by assigning folder-scoped RBAC permissions independently of rule access — for example, granting silence write access without granting rule write access. ## Scenario: restrict users to rule-specific silences... | https://github.com/grafana/grafana/blob/main/docs/sources/alerting/set-up/configure-rbac/silence-access/index.md | main | grafana | [
-0.025440284982323647,
-0.01145466323941946,
-0.1141590029001236,
0.06789330393075943,
0.00009136822336586192,
-0.03542677313089371,
0.08579281717538834,
-0.09898083657026291,
0.09808774292469025,
-0.011853957548737526,
0.007985098287463188,
-0.00754034286364913,
0.04264045134186745,
-0.00... | 0.097789 |
# Manage access using roles In Grafana Enterprise and Grafana Cloud there are Basic, Fixed, and Custom roles. ## Basic roles There are four basic roles: `Admin`, `Editor`, `Viewer`, and `None`. Each basic role contains a number of fixed roles. Details of the basic roles and the access they provide for Grafana Alerting ... | https://github.com/grafana/grafana/blob/main/docs/sources/alerting/set-up/configure-rbac/access-roles/index.md | main | grafana | [
-0.021613309159874916,
0.022318195551633835,
-0.09047873318195343,
0.01529289036989212,
-0.06935504823923111,
-0.014293525367975235,
0.00922437384724617,
-0.0409541018307209,
0.008031376637518406,
0.028769319877028465,
-0.01956867426633835,
-0.044353824108839035,
0.026191899552941322,
-0.0... | 0.080027 |
provisioning API: `fixed:alerting.provisioning:writer` | `alert.provisioning:read` and `alert.provisioning:write` | Manage all alert rules, notification policies, contact points, templates, in the organization using the provisioning API. | | Set provisioning status: `fixed:alerting.provisioning.provenance:writer` | `al... | https://github.com/grafana/grafana/blob/main/docs/sources/alerting/set-up/configure-rbac/access-roles/index.md | main | grafana | [
-0.06313751637935638,
-0.0479830838739872,
-0.047301970422267914,
0.061200208961963654,
0.0753469169139862,
-0.07503385841846466,
0.11992055177688599,
-0.013601342216134071,
0.005150024313479662,
0.03875233605504036,
0.0024655687157064676,
-0.038645897060632706,
0.04858919605612755,
0.1053... | 0.092554 |
custom role for write access to alert rules that uses simplified routing: ``` PUT access-control/roles { "name": "custom:alert\_rules\_updater", "displayName": "Alert rules editor in folder F", "description": "Edit access to rules in folder F that use DS1 and DS2", "permissions": [ { "action": "alert.rules:read", "scop... | https://github.com/grafana/grafana/blob/main/docs/sources/alerting/set-up/configure-rbac/access-roles/index.md | main | grafana | [
-0.005952303297817707,
0.0009061734890565276,
-0.05863802507519722,
0.09768009185791016,
0.023551562801003456,
-0.057902973145246506,
0.09739336371421814,
0.025678766891360283,
0.024449650198221207,
0.008570956997573376,
-0.019025281071662903,
-0.008113387040793896,
0.025180421769618988,
0... | 0.073831 |
# Manage access using folders or data sources You can extend the access provided by a role to alert rules and rule-specific silences by assigning permissions to individual folders or data sources. {{< admonition type="note" >}} Data source query permissions are required to create an alert rule or modify an alert rule's... | https://github.com/grafana/grafana/blob/main/docs/sources/alerting/set-up/configure-rbac/access-folders/index.md | main | grafana | [
0.013543867506086826,
0.05871639773249626,
-0.06334378570318222,
0.07336867600679398,
0.07932727783918381,
-0.05786474421620369,
0.13083122670650482,
-0.053940627723932266,
0.059900570660829544,
-0.056667979806661606,
0.008443423546850681,
-0.027758533135056496,
0.042767129838466644,
-0.02... | 0.086115 |
{{< admonition type="caution" >}} Pre-provisioned Loki and Prometheus data source-managed alerts have been deprecated in Grafana Cloud and can not be created in new stacks. New Grafana Cloud stacks will use Grafana-managed alerting (GMA) by default. Datasource-managed alerting (DMA) is not provisioned in new stacks. Ex... | https://github.com/grafana/grafana/blob/main/docs/sources/alerting/set-up/configure-alertmanager/_index.md | main | grafana | [
-0.10916551202535629,
-0.02789214253425598,
-0.03326449915766716,
0.04657936468720436,
0.05627237260341644,
-0.11873326450586319,
0.00038054821197874844,
-0.04385017603635788,
0.011903339065611362,
0.0502157025039196,
0.002534169005230069,
-0.07219704985618591,
0.038930270820856094,
0.0086... | 0.121078 |
/admonition >}} When using multiple Alertmanagers, use the `Choose Alertmanager` dropdown to switch between Alertmanagers. ## Enable an Alertmanager to receive Grafana-managed alerts After enabling \*\*Receive Grafana Alerts\*\* in the Data Source Settings, you must also configure the Alertmanager in the Alerting Setti... | https://github.com/grafana/grafana/blob/main/docs/sources/alerting/set-up/configure-alertmanager/_index.md | main | grafana | [
-0.059981074184179306,
-0.03963117673993111,
-0.09254475682973862,
0.06431904435157776,
0.01808770000934601,
-0.10069669038057327,
0.06218808889389038,
-0.08557125180959702,
0.02536613866686821,
0.021205734461545944,
0.008525173179805279,
-0.08533398807048798,
0.03684109076857567,
0.027029... | 0.08672 |
# Create and link alert rules to panels Grafana allows you to link an alert rule to a dashboard panel. This can help you: - Inform alert responders about where to investigate and which data to examine. - Visualize the alert state directly from dashboards. - Include a screenshot of the panel in notification messages. An... | https://github.com/grafana/grafana/blob/main/docs/sources/alerting/alerting-rules/link-alert-rules-to-panels.md | main | grafana | [
-0.07726237177848816,
0.008345024660229683,
-0.045294687151908875,
0.026502104476094246,
0.10442069917917252,
-0.010395976714789867,
0.08160048723220825,
-0.006678488105535507,
0.04724288359284401,
0.0033226676750928164,
-0.03291955590248108,
-0.08919833600521088,
0.07492686808109283,
0.05... | 0.080206 |
{{< admonition type="caution" >}} Pre-provisioned Loki and Prometheus data source-managed alerts have been deprecated in Grafana Cloud and can not be created in new stacks. New Grafana Cloud stacks will use Grafana-managed alerting (GMA) by default. Datasource-managed alerting (DMA) is not provisioned in new stacks. Ex... | https://github.com/grafana/grafana/blob/main/docs/sources/alerting/alerting-rules/create-grafana-managed-rule.md | main | grafana | [
-0.10893767327070236,
-0.028176965191960335,
-0.029474427923560143,
0.04639475420117378,
0.05650121346116066,
-0.11907073855400085,
0.0014516899827867746,
-0.0438077449798584,
0.01615813374519348,
0.04893919825553894,
0.0005068161990493536,
-0.07136043161153793,
0.03754306212067604,
0.0071... | 0.12114 |
advanced configuration, you can disable the \*\*Default\*\* modes by disabling the `alertingQueryAndExpressionsStepMode` and `alertingNotificationsStepMode` feature toggles. ## Set alert rule name {{< docs/shared lookup="alerts/configure-alert-rule-name.md" source="grafana" version="" >}} ## Define query and condition ... | https://github.com/grafana/grafana/blob/main/docs/sources/alerting/alerting-rules/create-grafana-managed-rule.md | main | grafana | [
-0.06125756725668907,
0.08651788532733917,
-0.011809125542640686,
0.1311493068933487,
0.07454704493284225,
-0.040170181542634964,
0.09914153069257736,
-0.0260212030261755,
0.03615613654255867,
-0.0019101651851087809,
-0.04227011278271675,
-0.07222520560026169,
0.06796947866678238,
-0.02303... | 0.079849 |
Select an evaluation group or click \*\*+ New evaluation group\*\*. If you are creating a new evaluation group, specify the interval for the group. All rules within the same group are evaluated concurrently over the same time interval. 1. Enter a [pending period](ref:pending-period). The pending period is the period in... | https://github.com/grafana/grafana/blob/main/docs/sources/alerting/alerting-rules/create-grafana-managed-rule.md | main | grafana | [
-0.02142937295138836,
-0.00867406278848648,
-0.00038899228093214333,
0.08485350757837296,
0.04309884086251259,
-0.040902890264987946,
0.09491635113954544,
-0.09996175765991211,
0.06918899714946747,
-0.018405307084321976,
-0.005784178618341684,
-0.0029046868439763784,
0.051867783069610596,
... | 0.101243 |
feature is not enabled in your Grafana instance, follow the \*\*Advanced options\*\* instructions. ## Configure notification message Use [annotations](ref:shared-annotations) to add information to alert messages that can help respond to the alert. Annotations are included by default in notification messages, and can us... | https://github.com/grafana/grafana/blob/main/docs/sources/alerting/alerting-rules/create-grafana-managed-rule.md | main | grafana | [
-0.06336767971515656,
0.046028826385736465,
-0.04592183232307434,
0.08718443661928177,
0.05900668352842331,
-0.011719580739736557,
0.009744979441165924,
0.0034049944952130318,
0.03625469654798508,
-0.018413208425045013,
-0.0619969479739666,
-0.08784973621368408,
0.036681562662124634,
-0.01... | 0.104229 |
{{< admonition type="caution" >}} Pre-provisioned Loki and Prometheus data source-managed alerts have been deprecated in Grafana Cloud and can not be created in new stacks. New Grafana Cloud stacks will use Grafana-managed alerting (GMA) by default. Datasource-managed alerting (DMA) is not provisioned in new stacks. Ex... | https://github.com/grafana/grafana/blob/main/docs/sources/alerting/alerting-rules/create-data-source-managed-rule.md | main | grafana | [
-0.11002261936664581,
-0.028976107016205788,
-0.028850113973021507,
0.04569406062364578,
0.05641110613942146,
-0.11802785843610764,
0.00024652938009239733,
-0.04367843642830849,
0.013648408465087414,
0.04968864843249321,
-0.00002355482502025552,
-0.07247830182313919,
0.0384901762008667,
0.... | 0.12127 |
you have write permission to the Mimir or Loki data source. Otherwise, you cannot create or update data source-managed alert rules. #### Enable the Ruler API For more information, refer to the [Mimir Ruler API](/docs/mimir/latest/references/http-api/#ruler) or [Loki Ruler API](/docs/loki/latest/api/#ruler). - \*\*Mimir... | https://github.com/grafana/grafana/blob/main/docs/sources/alerting/alerting-rules/create-data-source-managed-rule.md | main | grafana | [
-0.09028380364179611,
0.034285664558410645,
-0.0663079023361206,
0.018763113766908646,
-0.03521507978439331,
-0.11788700520992279,
-0.07279122620820999,
-0.012668122537434101,
-0.005036375485360622,
0.04691672697663307,
0.005086779594421387,
-0.09055137634277344,
0.039026934653520584,
0.02... | 0.117844 |
display dynamic data from queries. Grafana provides several optional annotations. 1. Optional: Add a summary. Short summary of what happened and why. 1. Optional: Add a description. Description of what the alert rule does. 1. Optional: Add a Runbook URL. Webpage where you keep your runbook for the alert 1. Optional: Ad... | https://github.com/grafana/grafana/blob/main/docs/sources/alerting/alerting-rules/create-data-source-managed-rule.md | main | grafana | [
-0.0479944609105587,
0.07747583091259003,
-0.04639123007655144,
0.09906812757253647,
0.10761377215385437,
-0.010760079137980938,
0.03329307585954666,
-0.004165490157902241,
0.06390232592821121,
-0.008162938058376312,
-0.06893697381019592,
-0.054718419909477234,
0.06618304550647736,
-0.0415... | 0.098773 |
# Import data source-managed rules to Grafana-managed rules You can convert existing alert rules from data sources such as Mimir, Loki, and Prometheus into Grafana-managed alert rules. This enables you to operate and manage these rules using Grafana Alerting. This guide explains two methods for importing data source-ma... | https://github.com/grafana/grafana/blob/main/docs/sources/alerting/alerting-rules/alerting-migration.md | main | grafana | [
-0.08064506202936172,
-0.048652686178684235,
-0.07200181484222412,
-0.0052129789255559444,
0.04253054037690163,
-0.1388496607542038,
0.002366533735767007,
-0.05588585138320923,
-0.03387904912233353,
0.03201177343726158,
0.031889934092760086,
-0.04454587772488594,
0.07090684026479721,
0.005... | 0.116733 |
- \*\*Folders\*\*: `Creator`. The Folders permission is optional and only necessary if you want to create new folders for your target namespace. If your account doesn't have permissions to view a namespace, the tool creates a new one. To convert data source-managed alert rules to Grafana managed alerts: 1. Go to \*\*Al... | https://github.com/grafana/grafana/blob/main/docs/sources/alerting/alerting-rules/alerting-migration.md | main | grafana | [
-0.0964009165763855,
-0.03956978768110275,
-0.09358637034893036,
0.030421458184719086,
0.026910169050097466,
-0.12683556973934174,
0.0008397171040996909,
-0.06895110756158829,
-0.0017349814297631383,
0.038422245532274246,
0.021756427362561226,
-0.1082443818449974,
0.06651418656110764,
0.00... | 0.106416 |
that: 1. When using the `/api/convert/` endpoint, `mimirtool` interacts with Grafana—not with a Mimir instance. In this case, `MIMIR\_TENANT\_ID` must always be set to `1`. 1. The [`X-Grafana-Alerting-Datasource-UID` header](#x-grafana-alerting-datasource-uid) configures the data source that the imported alert rules wi... | https://github.com/grafana/grafana/blob/main/docs/sources/alerting/alerting-rules/alerting-migration.md | main | grafana | [
-0.08303429931402206,
-0.0068535227328538895,
-0.07827497273683548,
0.02087240479886532,
-0.008159702643752098,
-0.1163516491651535,
-0.019987953826785088,
-0.06591122597455978,
0.01603899709880352,
0.009001003578305244,
0.02257661148905754,
-0.11966313421726227,
0.04804976284503937,
0.004... | 0.018546 |
less than `group\_interval`. | | `mute\_time\_intervals` | `[]string` | No | `["maintenance"]` | One or more mute time interval names that silence alerts during those windows. | | `active\_time\_intervals` | `[]string` | No | `["maintenance"]` | List of active time interval names. Alerts are suppressed unless the curre... | https://github.com/grafana/grafana/blob/main/docs/sources/alerting/alerting-rules/alerting-migration.md | main | grafana | [
-0.13163504004478455,
0.011041558347642422,
-0.0745069682598114,
0.016314681619405746,
-0.025852413848042488,
-0.0847020149230957,
-0.02026595175266266,
-0.027885649353265762,
0.0382935032248497,
-0.02355065941810608,
0.008405143395066261,
-0.0727119967341423,
0.02101045288145542,
0.013889... | 0.226723 |
{{< admonition type="caution" >}} Pre-provisioned Loki and Prometheus data source-managed alerts have been deprecated in Grafana and can not be created in new stacks. New Grafana stacks will use Grafana-managed alerting (GMA) by default. Datasource-managed alerting (DMA) is not provisioned in new stacks. Existing stack... | https://github.com/grafana/grafana/blob/main/docs/sources/alerting/alerting-rules/_index.md | main | grafana | [
-0.1075378805398941,
-0.027063220739364624,
-0.0293925441801548,
0.04566444084048271,
0.05995231494307518,
-0.1179928109049797,
0.01606583781540394,
-0.042833149433135986,
0.0037859701551496983,
0.040747422724962234,
0.0015099812299013138,
-0.07613345235586166,
0.038736265152692795,
0.0054... | 0.12081 |
# Create data source-managed recording rules [Recording rules](ref:create-recording-rules) allow you to periodically pre-compute frequently used or computationally expensive queries, saving the results as a new time series metric. Alert rules and dashboards can then query the new metric resulting from the recording rul... | https://github.com/grafana/grafana/blob/main/docs/sources/alerting/alerting-rules/create-recording-rules/create-data-source-managed-recording-rules.md | main | grafana | [
-0.08487801998853683,
-0.009898750111460686,
-0.034898970276117325,
0.03384385257959366,
0.05339600145816803,
-0.14618928730487823,
0.01851077564060688,
-0.02533809281885624,
0.006886153947561979,
-0.005218398291617632,
0.011157403700053692,
-0.05957067385315895,
0.0406084805727005,
0.0312... | 0.175259 |
# Migrate recorded queries Users can transpose their [now-depreciated recorded queries](/docs/grafana/latest/administration/recorded-queries/) into Grafana-managed recording rules in a few easy steps. The query PromQL for each recorded query has been exposed on the recorded queries list along with the existing datasour... | https://github.com/grafana/grafana/blob/main/docs/sources/alerting/alerting-rules/create-recording-rules/migrate-recorded-queries.md | main | grafana | [
-0.08312872052192688,
0.00004252812505001202,
-0.06224668398499489,
0.057200413197278976,
-0.04047215357422829,
-0.0709238201379776,
0.02716706693172455,
-0.04349202662706375,
-0.015198842622339725,
0.039302024990320206,
-0.03738979622721672,
-0.07066112756729126,
0.0592084638774395,
-0.00... | 0.070477 |
# Create Grafana-managed recording rules for Tempo {{< docs/private-preview product="Grafana-managed recording rules for Tempo" >}} Grafana-managed recording rules let you pre-compute query results and store them as new time series metrics. These metrics can then be reused in dashboards, alerts, or downstream queries, ... | https://github.com/grafana/grafana/blob/main/docs/sources/alerting/alerting-rules/create-recording-rules/create-recording-rule-tempo.md | main | grafana | [
-0.10982030630111694,
-0.020429858937859535,
-0.11895673722028732,
0.041838500648736954,
-0.03516790270805359,
-0.01292997132986784,
0.0191851444542408,
-0.043314557522535324,
0.014665109105408192,
-0.02038956992328167,
-0.037936363369226456,
-0.08753606677055359,
0.01231896411627531,
-0.0... | 0.12344 |
can apply the `offset` modifier in your Prometheus queries. | https://github.com/grafana/grafana/blob/main/docs/sources/alerting/alerting-rules/create-recording-rules/create-recording-rule-tempo.md | main | grafana | [
-0.08397389948368073,
0.06109501048922539,
0.012165973894298077,
0.011708072386682034,
-0.00640872260555625,
-0.1052761822938919,
0.013517276383936405,
-0.013139141723513603,
-0.026770099997520447,
-0.024702996015548706,
0.05317002162337303,
-0.04646291956305504,
0.01500086858868599,
-0.06... | 0.169465 |
# Configure recording rules Recording rules allow you to periodically pre-compute frequently used or computationally expensive queries, saving the results as a new time series metric. For instance, you can create a recording rule generating a new metric, `error\_9001\_count`, which counts occurrences of a specific log ... | https://github.com/grafana/grafana/blob/main/docs/sources/alerting/alerting-rules/create-recording-rules/_index.md | main | grafana | [
-0.046981390565633774,
0.030155085027217865,
-0.07137050479650497,
0.05600878223776817,
0.035838913172483444,
-0.04144803807139397,
0.06819889694452286,
0.04627952724695206,
0.04544016718864441,
-0.02527671866118908,
-0.05668146163225174,
-0.05475926771759987,
0.09733933210372925,
0.004472... | 0.175248 |
# Create Grafana-managed recording rules [Recording rules](ref:create-recording-rules) allow you to periodically pre-compute frequently used or computationally expensive queries, saving the results as a new time series metric. Alert rules and dashboards can then query the new metric resulting from the recording rule. T... | https://github.com/grafana/grafana/blob/main/docs/sources/alerting/alerting-rules/create-recording-rules/create-grafana-managed-recording-rules.md | main | grafana | [
-0.13579612970352173,
0.006613404955714941,
-0.08330278843641281,
0.020088810473680496,
-0.002459490904584527,
-0.09525760263204575,
-0.014884959906339645,
-0.036767784506082535,
0.013551722280681133,
0.02651195041835308,
-0.055126842111349106,
-0.05575430393218994,
0.03173338249325752,
0.... | 0.143131 |
queries, click \*\*Add query\*\*. 1. Add one or more [expressions](ref:expressions). a. For each expression, select either \*\*Classic condition\*\* to create a single recording rule, or choose from the \*\*Math\*\*, \*\*Reduce\*\*, and \*\*Resample\*\* options. When using Prometheus, you can use an instant vector and ... | https://github.com/grafana/grafana/blob/main/docs/sources/alerting/alerting-rules/create-recording-rules/create-grafana-managed-recording-rules.md | main | grafana | [
-0.07403025031089783,
0.05174640193581581,
-0.010335906408727169,
0.009304128587245941,
-0.006818314548581839,
-0.031370341777801514,
0.01710454188287258,
-0.010425658896565437,
-0.0309425238519907,
0.02307269535958767,
-0.042168229818344116,
-0.12555424869060516,
0.08271746337413788,
0.01... | 0.109901 |
# Alerting template language Notification templates and alert rule templates, such as annotations and labels, both use the Go template language, [text/template](https://pkg.go.dev/text/template). Both types of templates can use the same keywords, functions, and comparison operators of the Go template language, such as ... | https://github.com/grafana/grafana/blob/main/docs/sources/alerting/alerting-rules/templates/language.md | main | grafana | [
0.022681131958961487,
0.08483906090259552,
-0.010744140483438969,
-0.017379695549607277,
0.0945073813199997,
0.06658454239368439,
0.13102053105831146,
0.018773969262838364,
0.05929313972592354,
-0.11021681874990463,
0.012797519564628601,
-0.01835966296494007,
-0.00830901600420475,
0.086860... | 0.10331 |
# Labels and annotations template examples Templating allows you to add dynamic data from queries to alert labels and annotations. Dynamic data enhances alert context, making it easier for responders to quickly assess and address the issue. This page provides common examples for templating labels and annotations. For m... | https://github.com/grafana/grafana/blob/main/docs/sources/alerting/alerting-rules/templates/examples.md | main | grafana | [
-0.012394257821142673,
0.1292189359664917,
-0.04821956530213356,
0.10702414065599442,
0.12491641938686371,
0.05226628854870796,
0.15551245212554932,
0.03494124487042427,
0.09238504618406296,
-0.07740616798400879,
-0.055669624358415604,
-0.07075360417366028,
0.008531196974217892,
-0.0049226... | 0.243945 |
-}}critical {{- else if (gt $values.A.Value 80.0) -}}high {{- else if (gt $values.A.Value 60.0) -}}medium {{- else -}}low {{- end -}} ``` In this example, the `severity` label is determined by the query value: - `critical` for values above 90, - `high` for values above 80, - `medium` for values above 60, - and `low` fo... | https://github.com/grafana/grafana/blob/main/docs/sources/alerting/alerting-rules/templates/examples.md | main | grafana | [
0.009667552076280117,
0.10132166743278503,
-0.05250507965683937,
0.06769663840532303,
0.004711086396127939,
0.03424559906125069,
0.138534814119339,
0.031091203913092613,
0.049447715282440186,
-0.05138340964913368,
0.0020321800839155912,
-0.08956793695688248,
0.05540396273136139,
0.01178022... | 0.101554 |
(match "B[0-9]+" $k) -}} {{ $k }}: {{ $v.Labels }}{{ end }} {{ end }} ``` For example, a classic condition for two time series exceeding a single condition would print: ``` B0: instance=server1 B1: instance=server2 ``` If the classic condition has two or more conditions, and a time series exceeds multiple conditions at... | https://github.com/grafana/grafana/blob/main/docs/sources/alerting/alerting-rules/templates/examples.md | main | grafana | [
-0.00010327019117539749,
0.09397650510072708,
-0.012523068115115166,
-0.019149020314216614,
0.03386744484305382,
0.037161387503147125,
0.08507754653692245,
-0.10414369404315948,
0.051353819668293,
-0.0332353375852108,
0.017884818837046623,
-0.07160595804452896,
0.014231369830667973,
0.0106... | 0.011254 |
# Annotation and label template reference Annotations and labels in alert rules can be defined using plain text. However, you can also define templates to customize their values with dynamic data from alert rule queries. For example, you can template the `summary` annotation to include information from query values, pr... | https://github.com/grafana/grafana/blob/main/docs/sources/alerting/alerting-rules/templates/reference.md | main | grafana | [
-0.005300134886056185,
0.10997645556926727,
-0.04757034033536911,
0.08728832751512527,
0.06913840025663376,
0.056709662079811096,
0.16104741394519806,
0.03913598880171776,
0.07635172456502914,
-0.06731908023357391,
-0.03398342430591583,
-0.043222006410360336,
0.04186875373125076,
0.0079269... | 0.115968 |
Float | The value returned by the instant query or expression. | | `Labels` | Key/value pairs | The labels associated with the instance query or expression. | Here's the previous example printing now the value of the instant query with Ref ID `A`: ``` {{ $values.A.Value }} CPU usage for {{ $labels.instance }} over the ... | https://github.com/grafana/grafana/blob/main/docs/sources/alerting/alerting-rules/templates/reference.md | main | grafana | [
-0.008412177674472332,
0.12647686898708344,
-0.0578715018928051,
0.1294836699962616,
0.0214033555239439,
0.01458651851862669,
0.09089964628219604,
0.010084642097353935,
0.06360846012830734,
-0.015334195457398891,
-0.02186470665037632,
-0.06571564078330994,
-0.020228497684001923,
-0.0370229... | 0.060168 |
Converts a Unix timestamp in seconds to time. | \*\*Strings\*\* | Name | Arguments | Returns | Description | | ------------------------------- | -------------------------- | ------- | --------------------------------------------------------------------------------------------- | | [title](#title) | string | string | Ca... | https://github.com/grafana/grafana/blob/main/docs/sources/alerting/alerting-rules/templates/reference.md | main | grafana | [
0.043436549603939056,
0.11613411456346512,
-0.03327831253409386,
-0.00544969504699111,
-0.02477308176457882,
-0.01124706119298935,
0.004943751264363527,
0.06849436461925507,
-0.018858926370739937,
-0.027745230123400688,
0.028818612918257713,
-0.05782566964626312,
0.052012696862220764,
-0.0... | 0.054349 |
"example.com:8080" }} ``` ``` example.com ``` #### match The `match` function matches the text against a regular expression pattern: ``` {{ match "a.\*" "abc" }} ``` ``` true ``` #### reReplaceAll The `reReplaceAll` function replaces text matching the regular expression: ``` {{ reReplaceAll "localhost:(.\*)" "example.c... | https://github.com/grafana/grafana/blob/main/docs/sources/alerting/alerting-rules/templates/reference.md | main | grafana | [
-0.08327046781778336,
0.0666544958949089,
0.14360404014587402,
0.04636172205209732,
-0.007819785736501217,
-0.045771997421979904,
-0.003530851099640131,
-0.03039947897195816,
-0.03129734471440315,
0.042350102216005325,
0.025502583011984825,
-0.006972093600779772,
0.034449029713869095,
0.02... | -0.035185 |
# Template annotations and labels You can use templates to customize alert and notification messages, including dynamic data from alert rule queries. In Grafana Alerting, you can template alert messages in two ways. 1. \*\*Template annotations and labels\*\*: In the alert rule definition, you can template annotations a... | https://github.com/grafana/grafana/blob/main/docs/sources/alerting/alerting-rules/templates/_index.md | main | grafana | [
-0.037754401564598083,
0.08952051401138306,
0.022083237767219543,
0.05511690676212311,
0.04929269105195999,
0.03410559520125389,
0.09907858818769455,
0.03661733493208885,
0.078119195997715,
-0.042153745889663696,
-0.05177898332476616,
-0.027630722150206566,
0.05307232588529587,
0.031370893... | 0.152969 |
annotation field (`summary`, `description`, `runbook\_url`, `custom`). ### Preview annotation templates You can template annotations when creating or editing an alert rule. {{< figure src="/media/docs/alerting/alert-rule-using-annotation-template.png" max-width="1200px" alt="An alert rule templating the annotation summ... | https://github.com/grafana/grafana/blob/main/docs/sources/alerting/alerting-rules/templates/_index.md | main | grafana | [
-0.07083748281002045,
0.05058752000331879,
-0.019406793639063835,
0.03643491491675377,
0.08141706138849258,
0.004104457329958677,
0.03694616258144379,
-0.003526115557178855,
0.08414103090763092,
-0.017029738053679466,
-0.05653202533721924,
-0.061921119689941406,
0.0247051939368248,
0.02361... | 0.152872 |
practical example of templating, refer to our [Getting Started with Templating tutorial](https://grafana.com/tutorials/alerting-get-started-pt4/). {{< /admonition >}} | https://github.com/grafana/grafana/blob/main/docs/sources/alerting/alerting-rules/templates/_index.md | main | grafana | [
-0.0410650335252285,
0.11803550273180008,
-0.041261982172727585,
0.06287247687578201,
0.0504009909927845,
-0.027824878692626953,
0.026584263890981674,
0.02514740824699402,
0.06567953526973724,
-0.034161701798439026,
0.01773739606142044,
-0.011903814971446991,
-0.022054672241210938,
0.02942... | 0.203888 |
# Alerting best practices Designing and configuring an effective alerting system takes time. This guide focuses on building alerting systems that scale with real-world operations. The practices described here are intentionally high-level and apply regardless of tooling. Whether you use Prometheus, Grafana Alerting, or ... | https://github.com/grafana/grafana/blob/main/docs/sources/alerting/guides/best-practices.md | main | grafana | [
-0.0182641614228487,
-0.012254852801561356,
0.05197938159108162,
0.03374022617936134,
0.06953336298465729,
-0.11931078135967255,
0.028610710054636,
0.00237917248159647,
0.05625379458069801,
0.0032310490496456623,
-0.060224149376153946,
-0.0020061018876731396,
0.014852178283035755,
0.049269... | 0.204673 |
the alert. Anyone on call should be able to understand what's wrong and what to do next without deep knowledge of the system or alert configuration. Avoid vague alerts that force responders to spend time figuring out context. Every alert should clearly explain why it exists, what triggered it, and how to investigate. U... | https://github.com/grafana/grafana/blob/main/docs/sources/alerting/guides/best-practices.md | main | grafana | [
-0.010508735664188862,
0.019604045897722244,
-0.03196635842323303,
0.03668848052620888,
0.05904180929064751,
-0.07455424964427948,
0.09346242994070053,
0.042107291519641876,
0.08243526518344879,
-0.025942623615264893,
-0.05147683247923851,
-0.0044738226570189,
0.015043926425278187,
0.01783... | 0.158124 |
threshold for some minutes. Also, stabilize alerts by tuning query ranges and aggregations. Using raw data makes alerts sensitive to noise. Instead, evaluate over a time window and aggregate the data to smooth short spikes. ```promql # Reacts to transient spikes. Avoid this. cpu\_usage > 90 # Smooth fluctuations. avg\_... | https://github.com/grafana/grafana/blob/main/docs/sources/alerting/guides/best-practices.md | main | grafana | [
-0.025125466287136078,
0.020631279796361923,
-0.014577634632587433,
0.10244745761156082,
0.03953882306814194,
-0.1410951167345047,
0.08696508407592773,
0.050512392073869705,
0.06338182091712952,
-0.03585471212863922,
-0.03418935462832451,
0.0012174873845651746,
0.020725617185235023,
-0.005... | 0.167824 |
# Handle missing data in Grafana Alerting Missing data from when a target stops reporting metric data can be one of the most common issues when troubleshooting alerts. In cloud-native environments, this happens all the time. Pods or nodes scale down to match demand, or an entire job quietly disappears. When this happen... | https://github.com/grafana/grafana/blob/main/docs/sources/alerting/guides/missing-data.md | main | grafana | [
-0.03080049529671669,
-0.007408882956951857,
0.021422095596790314,
0.08067085593938828,
0.04595639929175377,
-0.1088106706738472,
-0.048224691301584244,
-0.07514986395835876,
0.061021123081445694,
0.05401933565735817,
-0.02079056389629841,
-0.06801297515630722,
0.007350257597863674,
-0.025... | 0.091872 |
doesn't fire alerts when the query returns no data. It simply assumes there was nothing to report, like with query errors. Missing data won’t trigger existing alerts unless you explicitly check for it. In Prometheus, a common way to catch missing data is by to use the `absent\_over\_time` function. `absent\_over\_time(... | https://github.com/grafana/grafana/blob/main/docs/sources/alerting/guides/missing-data.md | main | grafana | [
0.007294369395822287,
0.02586900070309639,
-0.015936484560370445,
0.0871753990650177,
0.07998831570148468,
-0.08598394691944122,
0.0222138874232769,
-0.05234205350279808,
0.07902508229017258,
-0.06937272846698761,
0.020236169919371605,
-0.08276532590389252,
0.029800089076161385,
-0.0336613... | 0.104638 |
eviction process. Here’s what happens under the hood: - Alert instances with missing data keep their last state for two evaluation intervals. - If the data is still missing after that: - Grafana adds the annotation `grafana\_state\_reason: MissingSeries`. - The alert instance transitions to the `Normal` state. - A \*\*... | https://github.com/grafana/grafana/blob/main/docs/sources/alerting/guides/missing-data.md | main | grafana | [
-0.0837194174528122,
0.027369022369384766,
-0.019043806940317154,
0.09315688908100128,
0.03480011224746704,
-0.06879922747612,
-0.0038545720744878054,
-0.09939681738615036,
0.1422806829214096,
-0.0358351431787014,
0.009322636760771275,
-0.038009464740753174,
-0.015137465670704842,
-0.04650... | 0.104891 |
alert rule then triggers an alert instance for each missing region. You can apply the same technique to any label or target dimension. ## Conclusion Missing data isn’t always a failure. It’s a common scenario in dynamic environments when certain targets stop reporting. Grafana Alerting handles distinct scenarios automa... | https://github.com/grafana/grafana/blob/main/docs/sources/alerting/guides/missing-data.md | main | grafana | [
-0.014496589079499245,
0.028645381331443787,
-0.009575769305229187,
0.062358010560274124,
0.026034018024802208,
-0.08474373072385788,
0.0366089828312397,
-0.07803961634635925,
0.03124150075018406,
-0.041348524391651154,
0.018795371055603027,
-0.133726105093956,
0.04935423657298088,
-0.0423... | 0.107366 |
# Handle connectivity errors in alerts Connectivity issues are a common cause of misleading alerts or unnoticed failures. There could be a number of reasons for these errors. Maybe your target went offline, or Prometheus couldn't scrape it. Or maybe your alert query failed because its target timed out or the network we... | https://github.com/grafana/grafana/blob/main/docs/sources/alerting/guides/connectivity-errors.md | main | grafana | [
-0.028655624017119408,
0.018718361854553223,
0.020441684871912003,
0.057822685688734055,
0.03779466450214386,
-0.1264469027519226,
0.049055084586143494,
-0.019999312236905098,
0.024432770907878876,
-0.007240355480462313,
-0.03190639987587929,
-0.01841195672750473,
0.04442035034298897,
0.01... | 0.133694 |
However, this kind of `up` alert has a few potential downfalls: - \*\*Failures can slip between scrape intervals\*\*: An outage that starts and ends between two evaluations go undetected. You could shorten the `for` duration, but this might lead to scrape failures that trigger false alarms. - \*\*Intermittent recoverie... | https://github.com/grafana/grafana/blob/main/docs/sources/alerting/guides/connectivity-errors.md | main | grafana | [
-0.08887411653995514,
0.04943813011050224,
-0.018201341852545738,
0.07923906296491623,
0.06658950448036194,
-0.11324440687894821,
0.042760226875543594,
-0.010553810745477676,
0.04789462313055992,
-0.06371433287858963,
0.004567589145153761,
0.030484436079859734,
0.03747285157442093,
-0.0574... | 0.082688 |
internal scrape fails or the service is externally unreachable. `up == 0 or probe\_success == 0` As with the `up` metric, you might want to smooth this out using `avg\_over\_time()` for more robust detection. The smooth version might look like: `avg\_over\_time(up[10m]) < 0.8 or avg\_over\_time(probe\_success[10m]) < 0... | https://github.com/grafana/grafana/blob/main/docs/sources/alerting/guides/connectivity-errors.md | main | grafana | [
-0.07605071365833282,
-0.00009523928019916639,
0.007388158235698938,
0.05286947265267372,
0.05233693867921829,
-0.19636447727680206,
0.024443382397294044,
-0.03576338663697243,
0.0068621644750237465,
-0.016675177961587906,
-0.01784587651491165,
-0.05784062668681145,
0.024911098182201385,
-... | 0.135901 |
other alerts detecting connectivity issues. - \*\*Keep Last State\*\*: Keeps the previous state until the query succeeds again. Suitable for unstable environments to avoid flapping alerts. {{< figure src="/media/docs/alerting/alert-rule-configure-no-data-and-error-v2.png" alt="A screenshot of the `Configure error handl... | https://github.com/grafana/grafana/blob/main/docs/sources/alerting/guides/connectivity-errors.md | main | grafana | [
-0.02226673811674118,
0.039075497537851334,
0.005379252135753632,
0.07518512010574341,
0.03205140680074692,
-0.137661874294281,
0.04131226986646652,
-0.022249622270464897,
0.0032377506140619516,
0.0002547719341237098,
-0.022221757099032402,
-0.0156392902135849,
0.0847838744521141,
0.037321... | 0.098369 |
# When SLOs reduce alert noise As your alerting setup grows in production, not every alert works as expected. Sometimes they fire too often, or they resolve immediately before anyone responds. You start wondering if the problem is the alert. When this happens, your instinct may be to tune the query or threshold, or may... | https://github.com/grafana/grafana/blob/main/docs/sources/alerting/guides/when-slos-reduce-alert-noise.md | main | grafana | [
-0.022562220692634583,
-0.022674845531582832,
-0.006241851951926947,
0.08567386120557785,
0.013313897885382175,
-0.1463196724653244,
0.11107899248600006,
-0.04285551980137825,
0.050736214965581894,
-0.004512102343142033,
-0.038246724754571915,
-0.01219930313527584,
0.04764910414814949,
-0.... | 0.178748 |
SLO objective aligns the team around a shared target and determines when accumulated degradation is severe enough to require action. This is frequently the hardest part. Expect a few iterations before the objective reflects reality. Sometimes deleting the alert is the right call if there's no commitment or SLI to ancho... | https://github.com/grafana/grafana/blob/main/docs/sources/alerting/guides/when-slos-reduce-alert-noise.md | main | grafana | [
-0.03366173803806305,
-0.03905622288584709,
-0.029261551797389984,
0.026653887704014778,
0.05842893570661545,
-0.06041973456740379,
0.05704832449555397,
-0.041208263486623764,
0.08896602690219879,
-0.0738445296883583,
0.0008366945548914373,
0.04677657037973404,
0.03949575126171112,
0.03789... | 0.19713 |
teams track similar user-facing metrics, but lack a shared objective. - \*\*Transient conditions\*\*: short-lived failures are often ignored, but still impact users. In all three cases, the shift is from evaluating a threshold over a recent period to evaluating a reliability objective tracked over a long period. This r... | https://github.com/grafana/grafana/blob/main/docs/sources/alerting/guides/when-slos-reduce-alert-noise.md | main | grafana | [
-0.05347424000501633,
-0.020645728334784508,
-0.016341086477041245,
0.056431520730257034,
0.049267444759607315,
-0.08914151042699814,
0.04753458872437477,
-0.019632358103990555,
0.057668790221214294,
-0.025690635666251183,
-0.012404496781527996,
-0.025451282039284706,
0.03864216431975365,
... | 0.17829 |
# Example of dynamic labels in alert instances Labels are essential for scaling your alerting setup. They define metadata like `severity`, `team`, `category`, or `environment`, which you can use for alert routing. A label like `severity="critical"` can be set statically in the alert rule configuration, or dynamically b... | https://github.com/grafana/grafana/blob/main/docs/sources/alerting/examples/dynamic-labels.md | main | grafana | [
-0.05480274185538292,
0.027946624904870987,
-0.08726111054420471,
0.061637744307518005,
-0.05225559324026108,
-0.029321160167455673,
0.08643944561481476,
0.019428987056016922,
0.05720251053571701,
-0.07363713532686234,
-0.04031631350517273,
-0.06138879433274269,
0.0336746908724308,
0.03227... | 0.127881 |
You can define a single rule and assign `severity` dynamically using a template: ```go {{/\* $values.B.Value refers to the numeric result from query B \*/}} {{- if gt $values.B.Value 90.0 -}}critical {{- else if gt $values.B.Value 80.0 -}}warning {{- else if gt $values.B.Value 70.0 -}}minor {{- else -}}none {{- end -}}... | https://github.com/grafana/grafana/blob/main/docs/sources/alerting/examples/dynamic-labels.md | main | grafana | [
0.023806946352124214,
0.0688927099108696,
-0.01648719795048237,
0.047726184129714966,
0.032676294445991516,
0.030624283477663994,
0.1185062825679779,
0.03886204585433006,
0.03217250108718872,
-0.034821320325136185,
-0.02296377718448639,
-0.09570182859897614,
0.07611222565174103,
0.08272650... | 0.042999 |
it with TestData You can replicate this scenario using the [TestData data source](ref:testdata-data-source) to simulate an unstable signal—like monitoring a noisy sensor. This setup reproduces label flapping and shows how dynamic label values affect alert instance behavior. 1. Add the \*\*TestData\*\* data source throu... | https://github.com/grafana/grafana/blob/main/docs/sources/alerting/examples/dynamic-labels.md | main | grafana | [
-0.060362908989191055,
-0.023135149851441383,
-0.01920066401362419,
0.08424216508865356,
0.03855476900935173,
-0.052312202751636505,
0.15944847464561462,
-0.06839007884263992,
0.09116845577955246,
-0.08070208877325058,
-0.05044079199433327,
-0.021416353061795235,
0.06013372540473938,
-0.02... | 0.11919 |
case, as it can complicate alert troubleshooting. - \*\*Preserve context across related alerts\*\* Ensure alert metadata includes enough information to help correlate related alerts during investigation. - \*\*Use separate alert rules and static labels when simpler\*\* In some cases, defining separate rules with static... | https://github.com/grafana/grafana/blob/main/docs/sources/alerting/examples/dynamic-labels.md | main | grafana | [
-0.058932073414325714,
0.05170649290084839,
-0.05715101212263107,
0.04578843340277672,
0.05740613117814064,
-0.04485918954014778,
0.09564804285764694,
-0.03493146970868111,
0.03783946484327316,
-0.07277324050664902,
-0.008900350891053677,
-0.10538730770349503,
0.04448937624692917,
0.009321... | 0.124706 |
# Example of dynamic thresholds per dimension In Grafana Alerting, each alert rule supports only one condition expression. That's enough in many cases—most alerts use a fixed numeric threshold like `latency > 3s` or `error\_rate > 5%` to determine their state. As your alerting setup grows, you may find that different t... | https://github.com/grafana/grafana/blob/main/docs/sources/alerting/examples/dynamic-thresholds.md | main | grafana | [
-0.04765094444155693,
0.00434862682595849,
-0.03839072585105896,
0.013677702285349369,
-0.007327570114284754,
-0.10912615805864334,
0.058403380215168,
-0.01540609821677208,
0.062262218445539474,
-0.0170582327991724,
-0.051691144704818726,
-0.1416703313589096,
0.048344872891902924,
0.061233... | 0.120134 |
state where the condition is true. The \_Math\_ expression works as long as each series in `$A` can be matched with exactly one series in `$B`. They must align in a way that produces a one-to-one match between series in `$A` and `$B`. {{< admonition type="caution" >}} If a series in one query doesn’t match any series i... | https://github.com/grafana/grafana/blob/main/docs/sources/alerting/examples/dynamic-thresholds.md | main | grafana | [
-0.07015753537416458,
0.07070450484752655,
-0.015652284026145935,
0.005076236557215452,
-0.033379413187503815,
0.054643671959638596,
0.09969642758369446,
-0.10006658732891083,
0.09447701275348663,
0.016424400731921196,
-0.009021652862429619,
-0.13395826518535614,
0.07104948908090591,
-0.01... | 0.06298 |
volume. For example, you can define a PromQL expression that sets a latency threshold which adjusts based on traffic—allowing higher response times during periods of high-load. ``` ( // Fires when p95 latency > 2s during usual traffic (≤ 1000 req/s) service:latency:p95 > 2 and service:request\_rate:rate1m <= 1000 ) or ... | https://github.com/grafana/grafana/blob/main/docs/sources/alerting/examples/dynamic-thresholds.md | main | grafana | [
-0.010905437171459198,
-0.01787814125418663,
-0.03805238753557205,
0.0032199756242334843,
-0.07310806214809418,
-0.041818201541900635,
0.00805202592164278,
0.03776527941226959,
0.067771315574646,
0.010063916444778442,
-0.05750244855880737,
-0.0007516795885749161,
0.006761538330465555,
0.03... | 0.167426 |
# Example of multi-dimensional alerts on time series data This example shows how a single alert rule can generate multiple alert instances — one for each label set (or time series). This is called \*\*multi-dimensional alerting\*\*: one alert rule, many alert instances. In Prometheus, each unique combination of labels ... | https://github.com/grafana/grafana/blob/main/docs/sources/alerting/examples/multi-dimensional-alerts.md | main | grafana | [
-0.07261980324983597,
-0.00789553765207529,
-0.03792118281126022,
0.03243781253695488,
0.006249142810702324,
-0.10789157450199127,
0.03145860880613327,
-0.028615523129701614,
0.07783600687980652,
-0.054557133466005325,
-0.050470639020204544,
-0.09519682079553604,
0.03601473942399025,
-0.00... | 0.186252 |
the TestData data source" >}} ## Reduce time series data for comparison The example returns three time series like shown above with values across the selected time range. To alert on each series, you need to reduce the time series to a single value that the alert condition can evaluate and determine the alert instance ... | https://github.com/grafana/grafana/blob/main/docs/sources/alerting/examples/multi-dimensional-alerts.md | main | grafana | [
-0.10301987081766129,
0.05304475873708725,
-0.04613986611366272,
0.053107257932424545,
-0.04761672765016556,
-0.09068934619426727,
0.011060819961130619,
-0.005475366488099098,
0.03223203122615814,
0.011256718076765537,
-0.03840671107172966,
-0.12045754492282867,
0.0027016757521778345,
-0.0... | 0.148618 |
# Example of alerting on tabular data Not all data sources return time series data. SQL databases, CSV files, and some APIs often return results as rows or arrays of columns or fields — commonly referred to as tabular data. This example shows how to create an alert rule using data in table format. Grafana treats each r... | https://github.com/grafana/grafana/blob/main/docs/sources/alerting/examples/table-data.md | main | grafana | [
-0.06232878938317299,
0.02063915878534317,
-0.0970429927110672,
0.052365973591804504,
-0.020861057564616203,
-0.04085862636566162,
0.0700988695025444,
-0.03379945456981659,
0.01800665818154812,
0.004869753494858742,
-0.020955407992005348,
-0.08291450887918472,
0.0579342320561409,
-0.039623... | 0.078212 |
`$A < 5` and \*\*Preview\*\* the alert. Grafana evaluates the table data and fires the two first alert instances. {{< figure src="/media/docs/alerting/example-table-data-preview.png" max-width="750px" alt="Alert preview with tabular data using the TestData data source" >}} {{< admonition type="tip" >}} You can explore ... | https://github.com/grafana/grafana/blob/main/docs/sources/alerting/examples/table-data.md | main | grafana | [
-0.04230734333395958,
0.02533354051411152,
-0.10655424743890762,
0.018701015040278435,
-0.009043813683092594,
-0.030971171334385872,
0.03816470503807068,
-0.013769043609499931,
0.0639432817697525,
0.051704663783311844,
0.03030097298324108,
-0.05650869011878967,
0.012854326516389847,
0.0063... | 0.011558 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.