22
33A standalone Go binary that analyzes StackRox Sensor Prometheus metrics using declarative TOML rule files.
44
5+ ![ Made with VHS] ( https://vhs.charm.sh/vhs-33cWV6RkqrjaeabNAcxVmc.gif )
6+
7+ <a href =" https://vhs.charm.sh " ><img src =" https://stuff.charm.sh/vhs/badge.svg " alt =" Made with VHS " ></a >
8+
59## ✨ Features
610
711- ** 🎮 Interactive TUI** : Beautiful terminal UI with keyboard navigation (powered by [ Bubble Tea] ( https://github.com/charmbracelet/bubbletea ) )
@@ -19,11 +23,13 @@ make build
1923
2024## Usage
2125
26+ > ⚠️ ** Note:** Flags must come BEFORE the metrics file!
27+
2228### Interactive TUI Mode (Recommended)
2329
2430``` bash
2531# Launch interactive terminal UI
26- ./bin/metrics-analyzer analyze metrics.txt --format tui
32+ ./bin/metrics-analyzer analyze --format tui --rules ./automated-rules metrics.txt
2733```
2834
2935** TUI Features:**
@@ -40,16 +46,16 @@ make build
4046./bin/metrics-analyzer analyze metrics.txt
4147
4248# Analyze with custom rules directory
43- ./bin/metrics-analyzer analyze metrics.txt --rules ./automated-rules
49+ ./bin/metrics-analyzer analyze --rules ./automated-rules metrics.txt
4450
4551# Generate markdown report
46- ./bin/metrics-analyzer analyze metrics.txt --format markdown --output report.md
52+ ./bin/metrics-analyzer analyze --format markdown --output report.md metrics.txt
4753
4854# Override load level
49- ./bin/metrics-analyzer analyze metrics.txt --load-level high
55+ ./bin/metrics-analyzer analyze --load-level high metrics.txt
5056
5157# Specify ACS version
52- ./bin/metrics-analyzer analyze metrics.txt --acs-version 4.8
58+ ./bin/metrics-analyzer analyze --acs-version 4.8 metrics.txt
5359```
5460
5561### Utility Commands
@@ -104,10 +110,25 @@ make test
104110
105111# Integration test (compare with Python output)
106112python3 analyze_metrics_full.py metrics.txt > /tmp/python-output.txt
107- ./bin/metrics-analyzer analyze metrics.txt --format markdown --output /tmp/go-report.md
113+ ./bin/metrics-analyzer analyze --format markdown --output /tmp/go-report.md metrics.txt
108114go run testdata/compare_outputs.go /tmp/python-output.txt /tmp/go-report.md
109115```
110116
117+ ## Recording Demos
118+
119+ This project uses [ VHS] ( https://github.com/charmbracelet/vhs ) for recording terminal demos:
120+
121+ ``` bash
122+ # Install VHS
123+ brew install vhs
124+
125+ # Record the demo
126+ vhs demo.tape
127+
128+ # Or record the short version
129+ vhs demo-short.tape
130+ ```
131+
111132## Dependencies
112133
113134Built with:
0 commit comments