Skip to content

fix(monitoring): grafana provisioning deletes the read-only jaeger datasource that the grafana 12 install left behind #2036

Closed

Description

@dan-petty

Friction

After #1624 moved Grafana to 13.2.4, the old Jaeger datasource is still listed. prune: true does not remove it, because Grafana created it before prune existed, so its row is not prunable. The API refuses to delete it: DELETE /api/datasources/uid/jaeger returns {"message":"Cannot delete read-only data source"} (the owner ran it on 2026-10-24), because Grafana marks a provisioned datasource read-only.

Evidence

Grafana's datasource provisioning documents deleteDatasources for this case: Grafana deletes each listed datasource when it starts, and ignores a name that does not exist. tests/test_k8s_tempo.py bans the text "jaeger" anywhere in k8s/, which also blocks this documented removal.

Proposed remedy

  • Add deleteDatasources: [{name: Jaeger, orgId: 1}] to the provisioning file in k8s/monitoring/grafana-values.yaml.
  • Keep the test's property (no Jaeger receiver, workload or datasource in k8s/), and leave only the deletion list out of its text check, as it already leaves the collector values out when they define no Jaeger receiver.
  • A test requires the deletion entry.

regression of #1624

Activity

  1. added
    source/agent
    type/bug
    on Oct 24, 2026
  2. dan-petty commented on Oct 24, 2026

    @dan-petty
    OwnerAuthor

    Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones on the board.

    • Type: type/bug. The candidate fixes a problem with grafana datasource provisioning and deletion.
    • Priority: P2-Medium. This is a medium priority bug that affects monitoring setup.
    • Value: Medium. The fix ensures proper cleanup of grafana datasources for monitoring.
    • Effort: Low. The fix involves adding a single configuration entry and updating a test.
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

    source/agenttype/bug

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions