Skip to content

Instantly share code, notes, and snippets.

View hagen1778's full-sized avatar
💭
I may be slow to respond.

Roman Khavronenko hagen1778

💭
I may be slow to respond.
View GitHub Profile
@hagen1778
hagen1778 / rules.yml
Created August 8, 2020 21:10
Migrating data from Prometheus to VM. Prometheus rules config
groups:
- name: CPU rules
interval: 10s
rules:
# The count of CPUs per node, useful for getting CPU time as a percent of total.
- record: instance:node_cpus:count
expr: >
count without (cpu, mode) (
node_cpu_seconds_total{mode="idle"}
)
@hagen1778
hagen1778 / prometheus.yaml
Created August 8, 2020 20:59
Migrating data from Prometheus to VM. Prometheus scrape config
global:
scrape_interval: 5s
rule_files:
- "rules.yml"
scrape_configs:
- job_name: 'node_exporter_1'
static_configs:
- targets: ['localhost:9100']
- job_name: 'node_exporter_2'
static_configs:
{
"__inputs": [],
"__requires": [
{
"type": "grafana",
"id": "grafana",
"name": "Grafana",
"version": "5.3.0-beta1"
}
],
{
"__inputs": [
{
"name": "DS_CH",
"label": "CH",
"description": "",
"type": "datasource",
"pluginId": "vertamedia-clickhouse-datasource",
"pluginName": "ClickHouse"
}