This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
groups: | |
- name: AllInstances | |
rules: | |
- alert: InstanceDown | |
# Condition for alerting | |
expr: up == 0 | |
for: 1m | |
# Annotation - additional informational labels to store more information | |
annotations: | |
title: 'Instance {{ $labels.instance }} down' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
global: | |
# How frequently to scrape targets | |
scrape_interval: 10s | |
# How frequently to evaluate rules | |
evaluation_interval: 10s | |
# Rules and alerts are read from the specified file(s) | |
rule_files: | |
- rules.yml |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
global: | |
resolve_timeout: 1m | |
slack_api_url: 'https://hooks.slack.com/services/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' | |
route: | |
receiver: 'slack-notifications' | |
receivers: | |
- name: 'slack-notifications' | |
slack_configs: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
global: | |
resolve_timeout: 1m | |
slack_api_url: 'https://hooks.slack.com/services/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' | |
route: | |
receiver: 'slack-notifications' | |
receivers: | |
- name: 'slack-notifications' | |
slack_configs: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
global: | |
resolve_timeout: 1m | |
pagerduty_url: 'https://events.pagerduty.com/v2/enqueue' | |
route:x | |
receiver: 'pagerduty-notifications' | |
receivers: | |
- name: 'pagerduty-notifications' | |
pagerduty_configs: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
global: | |
resolve_timeout: 1m | |
route: | |
receiver: 'gmail-notifications' | |
receivers: | |
- name: 'gmail-notifications' | |
email_configs: | |
- to: [email protected] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Include all necessary libraries | |
#include <Arduino.h> | |
#include <WiFi.h> | |
#include <NTPClient.h> | |
#include <HTTPClient.h> | |
#include <DHT.h> | |
#include <HCSR04.h> | |
#include "config.h" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
"math/rand" | |
"os" | |
"os/signal" | |
"syscall" | |
"time" | |
"github.com/afiskon/promtail-client/promtail" | |
) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { ReactNode } from 'react'; | |
import { css } from 'emotion'; | |
import _ from 'lodash'; | |
import { ButtonCascader, CascaderOption, withTheme } from '@grafana/ui'; | |
import { ExploreQueryFieldProps, QueryHint, GrafanaTheme } from '@grafana/data'; | |
//Monaco | |
import { ControlledEditor as Editor, monaco } from '@monaco-editor/react'; | |
import * as monacoEditor from 'monaco-editor/esm/vs/editor/editor.api'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"annotations": { | |
"list": [ | |
{ | |
"builtIn": 1, | |
"datasource": "-- Grafana --", | |
"enable": true, | |
"hide": true, | |
"iconColor": "rgba(0, 211, 255, 1)", | |
"name": "Annotations & Alerts", |
OlderNewer