Skip to content

Instantly share code, notes, and snippets.

View kelein's full-sized avatar
🤒
Out sick

Kallen Ding kelein

🤒
Out sick
  • Kuiper Belt
View GitHub Profile
@kelein
kelein / uwgi-medium-post.ini
Created April 21, 2022 02:42 — forked from sumitsk20/uwgi-medium-post.ini
uwsgi configuration with most commonly sused options for highly scalable website (medium blog post)
[uwsgi]
# telling user to execute file
uid = bunny
# telling group to execute file
gid = webapps
# name of project you during "django-admin startproject <name>"
project_name = updateMe
@fl64
fl64 / main.go
Created December 24, 2020 07:18
golang prometheus exporter example
package main
import (
"github.com/prometheus/client_golang/prometheus"
"github.com/prometheus/client_golang/prometheus/promhttp"
"log"
"math/rand"
"net/http"
"time"
@roidelapluie
roidelapluie / main.go
Created September 26, 2019 08:21
Read Alertmanager NFLOG
package main
import (
"errors"
"flag"
"fmt"
"io"
"os"
"github.com/gogo/protobuf/jsonpb"
@sumitsk20
sumitsk20 / uwgi-medium-post.ini
Last active January 30, 2024 07:58
uwsgi configuration with most commonly sused options for highly scalable website (medium blog post)
[uwsgi]
# telling user to execute file
uid = bunny
# telling group to execute file
gid = webapps
# name of project you during "django-admin startproject <name>"
project_name = updateMe
@kelein
kelein / docker-compose-grafana.yml
Created July 17, 2018 03:08
Grafana on Docker
version: "2"
services:
grafana:
image: grafana/grafana:5.1.0
ports:
- 3000:3000
user: 'root'
volumes:
- ./grafana.ini:/etc/grafana/grafana.ini
@kelein
kelein / gist:1a6d5a3ec349937c0a38797800911521
Created May 1, 2018 08:31 — forked from rxaviers/gist:7360908
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue:
package main
import (
"bytes"
"fmt"
"io"
"os"
"regexp"
"sort"
"strings"
@kelein
kelein / prometheus-horizontal-sharding.yml
Created February 1, 2018 08:28
Prometheus Horizontal Sharding Configuration
global:
scrape_interval: 15s
external_labels:
monitor: 'prome-master'
scrape_configs:
- job_name: federate
honor_labels: true
metrics_path: /federate
params:
@kelein
kelein / alertmanager_peer_docker-compose.yml
Created January 30, 2018 07:23
Alert Manager Peer Cluster docker compose file.
version: '2'
services:
alertmanager_peer1:
image: prom/alertmanager:latest
ports:
- '9193:9093'
volumes:
- /etc/timezone:/etc/timezone
- /etc/localtime:/etc/localtime
- ./simple.yml:/etc/alertmanager/simple.yml
@kelein
kelein / logstash.conf
Created December 19, 2017 02:58 — forked from irq0/logstash.conf
logstash config - extract data from ceph logs
input {
gelf {
port => 12222
type => gelf
codec => json { }
}
}
filter {
if [type] == "gelf" {