canonical / canonical/cos-lib

Add facilities to add extra alert labels to alert rules

Open
#151 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
1
Forks
8
Avg merge
2d 19h
Merged PRs (30d)
1

Description

Both `prometheus_remote_write` and `loki_push_api` have the same copy-pasted mechanism to inject extra labels into alert rules.

We should extract that logic in cos-lib.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by comparing the copy-pasted extra-label injection mechanisms in prometheus_remote_write and loki_push_api. Extract their shared logic into cos-lib and confirm both alert-rule paths use the shared facility without changing the resulting labels.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
observability-sre
Issue type
Refactor
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.