prometheus / prometheus/common

Silence model in common is out of sync with Alertmanager

Open
#98 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

help wanted
Dominant language
Go
Stars
295
Forks
367
Avg merge
2d 10h
Merged PRs (30d)
18

Description

The struct definition for a Silence in common/model is out of sync with the definition in alertmanager/types, for example common/model defines the ID field as a uin64 whereas it is now a string in alertmanager/types

Perhaps as Silences are only used in Alertmanager and not Prometheus the definition should be removed from common/model?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Compare the Silence definitions in common/model and alertmanager/types, beginning with the differing ID field and checking the other fields for drift. Decide whether common/model should be synchronized or removed, then confirm the chosen change leaves the two projects' Silence representation consistent.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
backend-api-design
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.