{"id":34851952,"url":"https://github.com/stackrox/sensor-metrics-analyzer","last_synced_at":"2026-05-22T08:33:05.919Z","repository":{"id":326554946,"uuid":"1106078381","full_name":"stackrox/sensor-metrics-analyzer","owner":"stackrox","description":"Analyze metrics from Stackrox Sensor and discover potential problems ","archived":false,"fork":false,"pushed_at":"2025-11-28T16:20:19.000Z","size":3257,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-11-30T21:45:44.406Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/stackrox.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-11-28T15:41:04.000Z","updated_at":"2025-11-28T17:26:22.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/stackrox/sensor-metrics-analyzer","commit_stats":null,"previous_names":["stackrox/sensor-metrics-analyzer"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/stackrox/sensor-metrics-analyzer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stackrox%2Fsensor-metrics-analyzer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stackrox%2Fsensor-metrics-analyzer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stackrox%2Fsensor-metrics-analyzer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stackrox%2Fsensor-metrics-analyzer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stackrox","download_url":"https://codeload.github.com/stackrox/sensor-metrics-analyzer/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stackrox%2Fsensor-metrics-analyzer/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28035467,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-12-25T02:00:05.988Z","response_time":58,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-12-25T19:24:55.234Z","updated_at":"2026-05-22T08:33:05.913Z","avatar_url":"https://github.com/stackrox.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# StackRox Sensor Metrics Analyzer\n\nA standalone Go binary that analyzes StackRox Sensor Prometheus metrics using declarative TOML rule files.\n\n\u003ca href=\"https://vhs.charm.sh\"\u003e\u003cimg src=\"https://stuff.charm.sh/vhs/badge.svg\" alt=\"Made with VHS\"\u003e\u003c/a\u003e\n\n## 🎬 Demos\n\n### Interactive TUI Mode\n![TUI Demo](https://vhs.charm.sh/vhs-33cWV6RkqrjaeabNAcxVmc.gif)\n\n### CLI Mode (Console \u0026 Markdown)\n![CLI Demo](https://vhs.charm.sh/vhs-5slvsgOGnyRd7JsWNA7vMu.gif)\n\n## ✨ Features\n\n- **🎮 Interactive TUI**: Beautiful terminal UI with keyboard navigation (powered by [Bubble Tea](https://github.com/charmbracelet/bubbletea))\n- **📊 Load-Aware Analysis**: Automatically detects cluster load level (low/medium/high) and adjusts thresholds accordingly\n- **🔗 Correlation Rules**: Rules can reference other metrics for intelligent status evaluation\n- **🏷️ ACS Versioning**: Rules specify supported ACS versions and are filtered automatically\n- **📝 Template-Based Reports**: Markdown reports generated from templates\n- **🖥️ Console Output**: Default colorful console output with tables\n\n## Installation\n\n```bash\nmake build\n```\n\n## Usage\n\n\u003e ⚠️ **Note:** Flags must come BEFORE the metrics file!\n\n### Interactive TUI Mode (Recommended)\n\n```bash\n# Launch interactive terminal UI\n./bin/metrics-analyzer analyze --format tui --rules ./automated-rules metrics.txt\n```\n\n**TUI Features:**\n- Navigate results with `↑`/`↓` or `j`/`k` keys\n- Press `Enter` to view detailed information\n- Filter by status with `1-4` keys (All/Red/Yellow/Green)\n- Search with `/` key\n- Press `?` for help\n\n### Console \u0026 Markdown Output\n\n```bash\n# Analyze metrics (console output - default)\n./bin/metrics-analyzer analyze metrics.txt\n\n# Analyze with custom rules directory\n./bin/metrics-analyzer analyze --rules ./automated-rules metrics.txt\n\n# Generate markdown report\n./bin/metrics-analyzer analyze --format markdown --output report.md metrics.txt\n\n# Override load level\n./bin/metrics-analyzer analyze --load-level high metrics.txt\n\n# Specify ACS version\n./bin/metrics-analyzer analyze --acs-version 4.8 metrics.txt\n```\n\n### Utility Commands\n\n```bash\n# Validate rules (defaults to current directory)\n./bin/metrics-analyzer validate\n\n# Validate rules in specific directory\n./bin/metrics-analyzer validate ./automated-rules\n\n# List all rules\n./bin/metrics-analyzer list-rules\n```\n\n## More Documentation\n\n- [TUI Keyboard Shortcuts](docs/usage/tui-shortcuts.md)\n- [Project Structure](docs/architecture/project-structure.md)\n- [Testing](docs/dev/testing.md)\n- [Recording Demos](docs/dev/recording-demos.md)\n- [Releasing a New Version](docs/dev/releasing.md)\n\n## Dependencies\n\nBuilt with:\n- [Bubble Tea](https://github.com/charmbracelet/bubbletea) - TUI framework\n- [Lip Gloss](https://github.com/charmbracelet/lipgloss) - Style definitions\n- [Bubbles](https://github.com/charmbracelet/bubbles) - TUI components\n- [go-pretty](https://github.com/jedib0t/go-pretty) - Table formatting\n\n## Additional Docs\n\n- [Documentation Home](docs/README.md)\n- [Rules Wiki](docs/rules/README.md)\n\n## License\n\nApache 2.0 - See [LICENSE](LICENSE) for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstackrox%2Fsensor-metrics-analyzer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstackrox%2Fsensor-metrics-analyzer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstackrox%2Fsensor-metrics-analyzer/lists"}