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 / consul_cluster_docker-compose.yml
Last active October 25, 2017 03:20
Consul Cluster on Docker
version: '2'
services:
consul_server_1:
image: consul
ports:
- '8510:8500'
- '8610:8600'
volumes:
- /etc/timezone:/etc/timezone
@kelein
kelein / etcd_cluster_docker-composer.yml
Created October 25, 2017 03:19
Etcd Cluster with docker container
version: '2'
services:
etcd_peer1:
image: quay.io/coreos/etcd:v2.0.3
ports:
- '4001:4001'
- '2379:2379'
- '2380:2380'
volumes:
@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" {
@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 / 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 / influxdb_lsof.log
Created March 20, 2018 02:55
Influxdb use too much of file descriptor, which cause the port 8086 not listenning after restart.
influxd 8792 influxdb txt REG 253,1 24631334 8793505 /usr/bin/influxd
influxd 8792 influxdb mem REG 253,17 1741097719 1112722 /var/lib/influxdb/data/telegraf/autogen/4/000000128-000000006.tsm
influxd 8792 influxdb mem REG 253,17 2151357231 1112719 /var/lib/influxdb/data/telegraf/autogen/4/000000128-000000005.tsm
influxd 8792 influxdb mem REG 253,17 1478946998 1112703 /var/lib/influxdb/data/telegraf/autogen/4/000000160-000000003.tsm
influxd 8792 influxdb mem REG 253,17 247468642 1112727 /var/lib/influxdb/data/telegraf/autogen/4/000000168-000000002.tsm
influxd 8792 influxdb mem REG 253,17 33363869 1112709 /var/lib/influxdb/data/telegraf/autogen/4/000000169-000000001.tsm
influxd 8792 influxdb mem REG 253,17 11136249 134846533 /var/lib/influxdb/data/telegraf/autogen/2/000000001-00000000
—– BEGIN LICENSE —–
Die Socialisten GmbH
10 User License
EA7E-800613
51311422 E45F49ED 3F0ADE0C E5B8A508
2F4D9B65 64E1E244 EDA11F0E F9D06110
B7B2E826 E6FDAA72 2C653693 5D80582F
09DCFFB5 113A940C 5045C0CD 5F8332F8
34356CC6 D96F6FDB 4DEC20EA 0A24D83A
2C82C329 E3290B29 A16109A7 EC198EB9
@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:
@kelein
kelein / zookeeperKafka.py
Created May 8, 2018 07:58 — forked from tromika/zookeeperKafka.py
Python script to get Kafka Brokers from Zookeeper
from kazoo.client import KazooClient
import json
####
# A quick function to get Kafka brokers from Zookeeper
###
# Probably you need only the first one because the broker will advertise the other brokers
# This is need only for producers due there you can only use bootstrap servers
# Arguments
@kelein
kelein / Dockerfile
Created June 27, 2018 12:53 — forked from dukelion/Dockerfile
Rocksdb tools image
# docker-rocksdb
Alpine Linux image with compiled and installed RocksDB with all compression libraries
dukelion@x1-carbon:~/source/docker-rocksdb$ cat Dockerfile
FROM golang:1.8-alpine
RUN echo "@testing http://nl.alpinelinux.org/alpine/edge/testing" >>/etc/apk/repositories && \
echo "@community http://nl.alpinelinux.org/alpine/edge/community" >>/etc/apk/repositories
RUN apk add --update --no-cache build-base linux-headers git cmake bash #wget mercurial g++ autoconf libgflags-dev cmake bash jemalloc perl
RUN apk add --update --no-cache zlib zlib-dev bzip2 bzip2-dev snappy snappy-dev lz4 lz4-dev zstd@community zstd-dev@community jemalloc jemalloc-dev libtbb-dev@testing libtbb@testing