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 / step-1.go
Last active November 29, 2020 14:35
Simple go web app
package main
import (
"fmt"
"io/ioutil"
"log"
"net/http"
)
func main() {
@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"
}