All gists

0 0 1

System Design Interview: Designing a Metrics Monitoring and Alerting System

Think Prometheus or Datadog: millions of time series, cheap writes, fast range queries, and alerts that fire reliably.

Requirements

  • Collect metrics like CPU, latency percentiles and request counts from 100k hosts every 10 seconds.
  • Dashboards query the last hour to the last year.
  • Alert rules ("p99 latency > 500 ms for 5 minutes") notify on-call within a minute.
Last active 5 days ago
0 0 1
1 Run west build -s zmk/app -d "/tmp/tmp.7xQRfRU2p7" -b "mriya_left" -- -DZMK_CONFIG=/__w/zmk-config/zmk-config/config
2 + west build -s zmk/app -d /tmp/tmp.7xQRfRU2p7 -b mriya_left -- -DZMK_CONFIG=/__w/zmk-config/zmk-config/config
3 -- west build: generating a build system
4 Loading Zephyr default modules (Zephyr base).
5 -- Application: /__w/zmk-config/zmk-config/zmk/app
6 -- CMake version: 3.31.6
7 -- Found Python3: /usr/bin/python3 (found suitable version "3.12.3", minimum required is "3.10") found components: Interpreter
8 -- Cache files will be written to: /__w/zmk-config/zmk-config/zephyr/.cache
9 -- Zephyr version: 4.1.0 (/__w/zmk-config/zmk-config/zephyr)
10 -- Found west (found suitable version "1.5.0", minimum required is "0.14.0")
Last active 5 days ago
0 0 1
1 keymap {
2 compatible = "zmk,keymap";
3
4 default_layer {
5 bindings = <
6 &kp ESCAPE &kp Q &kp W &kp E &kp R &kp T &kp Y &kp U &kp I &kp O &kp P &kp LBKT
7 &kp LALT &kp A &kp S &kp D &kp F &kp G &kp H &kp J &kp K &kp L &kp SEMI &kp SQT
8 &kp LCTRL &kp Z &kp X &kp C &kp V &kp B &kp N &kp M &kp COMMA &kp DOT &kp FSLH &kp RIGHT_BRACKET
9 &kp LGUI &lt 4 ESC &mt LSHFT SPACE &lt 2 TAB &lt 3 BACKSPACE &mt RSHFT SPACE &lt 4 DEL &sk LEFT_SHIFT
10 >;