Skip to content

feat(telemetry): prometheus promql ast validation, client-side anomaly detection & alertmanager engine research #314

Closed

Description

@dan-petty

Context & Rationale

Metric monitoring currently forwards raw PromQL strings to /api/v1/query with minimal client-side validation and no automated anomaly analysis.

Scope & Deliverables

  • Context & Rationale*: Metric monitoring currently forwards raw PromQL strings to /api/v1/query with minimal client-side validation and no automated anomaly analysis.
  • Deep Integration & Functional Extension*: In-process PromQL AST parser to validate query syntax before network dispatch; client-side anomaly detection (z-score, EWMA trend forecasting) on metric vectors; native Alertmanager alert dispatch and silence management; pre-flight rule file syntax verification.
  • Code Optimization & Performance Acceleration*: Prevent invalid PromQL queries from hitting Prometheus servers; compute instant trend projections locally in Python without server-side subqueries; aggregate multi-target scrape metrics without redundant JSON decoding.
  • Refactoring Potential & Legacy Elimination*: Refactor src/devops_cli/commands/prometheus.py into a strongly-typed metric analysis library; unify metric representations across CLI, TUI, and Grafana provisioners; eliminate ad-hoc dictionary parsing.

Strategic Alignment

  • Milestone: v0.2.22 (Deep Subsystem Integration, Architectural Optimization & Extensible Refactoring)
  • Roadmap Reference: docs/ROADMAP.md

Activity

  1. added this to the v0.2.22 milestone on Sep 19, 2026
  2. added
    type/feature
    scope/telemetry
    priority/p1-high
    on Sep 19, 2026
  3. dan-petty commented on Sep 21, 2026

    @dan-petty
    OwnerAuthor

    Closed by #358, merged into release/v0.2.22.

    GitHub only acts on closing keywords when a pull request merges into the default branch, so this was closed by devops gh issues close-merged.

  4. added a commit that references this issue on Sep 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    priority/p1-highscope/telemetrytype/feature

    Type

    No type

    Projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions