Skip to content

feat(k8s): integrate grafana pyroscope to the monitoring stack #943

Closed

Description

@dan-petty

Problem Statement

The monitoring stack currently provides metrics (Prometheus), logs (Loki), and traces (Jaeger via OTel Collector), but lacks continuous profiling (flamegraphs, CPU/memory profiling) to diagnose performance bottlenecks and latency spikes at runtime.

Proposed Changes

  1. Add Grafana Pyroscope Helm chart (grafana/pyroscope) to the infra monitoring stack in src/devops_cli/commands/k8s/stack_lifecycle.py with chart values in k8s/monitoring/pyroscope-values.yaml.
  2. Configure Pyroscope in single-binary mode with local-path persistence, resource requests/limits, and self-profiling/scraping Alloy agent.
  3. Add Pyroscope datasource to Grafana in k8s/monitoring/grafana-values.yaml pointing to http://pyroscope.monitoring.svc.cluster.local:4040.
  4. Update k8s/monitoring/networkpolicy.yaml and k8s/otel/networkpolicy.yaml to allow ingress and egress for Pyroscope HTTP/OTLP profiling (port 4040).
  5. Update unit and integration tests and documentation in k8s/README.md.

Activity

  1. added this to the v0.2.25 milestone on Oct 2, 2026
  2. added
    type/feature
    scope/k8s
    scope/telemetry
    on Oct 2, 2026
  3. dan-petty commented on Oct 2, 2026

    @dan-petty
    OwnerAuthor

    Closed by #944, merged into release/v0.2.25.

    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 Oct 3, 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

    scope/k8sscope/telemetrytype/feature

    Type

    No type

    Projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions