My Elasticsearch cheatsheet with example usage via rest api (still a work-in-progress)
# https://github.com/rama-nallamilli/kafka-prometheus-monitoring | |
# https://github.com/Yolean/kubernetes-kafka/blob/master/prometheus/10-metrics-config.yml | |
lowercaseOutputName: true | |
rules: | |
- pattern : kafka.network<type=Processor, name=IdlePercent, networkProcessor=(.+)><>Value | |
- pattern : kafka.network<type=RequestMetrics, name=RequestsPerSec, request=(.+)><>OneMinuteRate | |
- pattern : kafka.network<type=SocketServer, name=NetworkProcessorAvgIdlePercent><>Value | |
- pattern : kafka.server<type=ReplicaFetcherManager, name=MaxLag, clientId=(.+)><>Value | |
- pattern : kafka.server<type=BrokerTopicMetrics, name=(.+), topic=(.+)><>OneMinuteRate |
FWIW: I'm not the author of the content presented here (which is an outline from Edmond Lau's book). I've just copy-pasted it from somewhere over the Internet, but I cannot remember what exactly the original source is. I was also not able to find the author's name, so I cannot give him/her the proper credits.
- By Edmond Lau
- Highly Recommended 👍
- http://www.theeffectiveengineer.com/
Moved to git repository: https://github.com/denji/nginx-tuning
For this configuration you can use web server you like, i decided, because i work mostly with it to use nginx.
Generally, properly configured nginx can handle up to 400K to 500K requests per second (clustered), most what i saw is 50K to 80K (non-clustered) requests per second and 30% CPU load, course, this was 2 x Intel Xeon
with HyperThreading enabled, but it can work without problem on slower machines.
You must understand that this config is used in testing environment and not in production so you will need to find a way to implement most of those features best possible for your servers.
https://github.com/mohanson/gameboy - gameboy emulator
https://github.com/JakeStanger/mpd-discord-rpc - discordrpc for mpd
https://github.com/spieglt/nestur - nes emulator
https://github.com/cristicbz/rust-doom - doom renderer
https://github.com/Aloxaf/silicon - a tool for creating pretty images of your source code for sharing
https://github.com/Rigellute/spotify-tui - a tui for spotify
https://github.com/atanunq/viu - view images in the terminal
-- timezone abrev list | |
select * from pg_timezone_names ; | |
-- set timezone TO 'pg_timezone_names.name' | |
set timezone TO 'posix/Africa/Tunis'; --(GMT+01) | |
set timezone TO 'GMT'; --(UTC/GMT) | |
-- read current timezone: | |
SELECT current_setting('TIMEZONE') |
// For all the confusing Prometheus configuration and | |
// regular expressions, | |
// explained in examples. | |
// Remember, there are default values for each item if it's missing. | |
// regex is (.*), | |
// replacement is $1, | |
// separator is ; | |
// ,and action is replace |
A curated list of AWS resources to prepare for the AWS Certifications
A curated list of awesome AWS resources you need to prepare for the all 5 AWS Certifications. This gist will include: open source repos, blogs & blogposts, ebooks, PDF, whitepapers, video courses, free lecture, slides, sample test and many other resources.