Skip to content

mgr/dashboard: Creating and editing Prometheus AlertManager silences is buggy#46206

Merged
epuertat merged 1 commit intoceph:masterfrom
votdev:issue_55578_prom_am_silence
May 13, 2022
Merged

mgr/dashboard: Creating and editing Prometheus AlertManager silences is buggy#46206
epuertat merged 1 commit intoceph:masterfrom
votdev:issue_55578_prom_am_silence

Conversation

@votdev
Copy link
Copy Markdown
Member

@votdev votdev commented May 9, 2022

When creating a new monitoring silence the form is pre-filled with the wrong alert data. It is always used the alert data from the very first object in the list of the API response but not the specified alert identified by the 'fingerprint' property.

The same problem applies to editing silences. The selected silence is not edited, it's always the first one in the list returned API response but not that with the specified 'id' property.

The main problem of the origin implementation is that the Prometheus Alertmanager API endpoints /api/v1/[alerts/silences] do not support querying. To fix that, filtering is done in the frontend.

Fixes: https://tracker.ceph.com/issues/55578

Signed-off-by: Volker Theile vtheile@suse.com

Contribution Guidelines

Checklist

  • Tracker (select at least one)
    • References tracker ticket
    • Very recent bug; references commit where it was introduced
    • New feature (ticket optional)
    • Doc update (no ticket needed)
    • Code cleanup (no ticket needed)
  • Component impact
    • Affects Dashboard, opened tracker ticket
    • Affects Orchestrator, opened tracker ticket
    • No impact that needs to be tracked
  • Documentation (select at least one)
    • Updates relevant documentation
    • No doc update is appropriate
  • Tests (select at least one)
Show available Jenkins commands
  • jenkins retest this please
  • jenkins test classic perf
  • jenkins test crimson perf
  • jenkins test signed
  • jenkins test make check
  • jenkins test make check arm64
  • jenkins test submodules
  • jenkins test dashboard
  • jenkins test dashboard cephadm
  • jenkins test api
  • jenkins test docs
  • jenkins render docs
  • jenkins test ceph-volume all
  • jenkins test ceph-volume tox
  • jenkins test windows

@votdev votdev requested a review from a team as a code owner May 9, 2022 15:18
@votdev votdev requested review from aaSharma14 and pereman2 and removed request for a team May 9, 2022 15:18
@github-actions github-actions bot added the pybind label May 9, 2022
@votdev votdev requested a review from s0nea May 9, 2022 15:20
@votdev votdev force-pushed the issue_55578_prom_am_silence branch 2 times, most recently from 81abff8 to 8850c1a Compare May 9, 2022 15:25
@votdev votdev requested review from a team as code owners May 9, 2022 15:25
…is buggy

When creating a new monitoring silence the form is pre-filled with the wrong alert data. It is always used the alert data from the very first object in the list of the API response but not the specified alert identified by the 'fingerprint' property.

The same problem applies to editing silences. The selected silence is not edited, it's always the first one in the list returned API response but not that with the specified 'id' property.

The main problem of the origin implementation is that the Prometheus Alertmanager API endpoints /api/v1/[alerts/silences] do not support querying. To fix that, filtering is done in the frontend.

Fixes: https://tracker.ceph.com/issues/55578

Signed-off-by: Volker Theile <vtheile@suse.com>
@votdev votdev force-pushed the issue_55578_prom_am_silence branch from 8850c1a to 658486b Compare May 9, 2022 15:25
@votdev
Copy link
Copy Markdown
Member Author

votdev commented May 10, 2022

jenkins test dashboard

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

4 participants