Skip to content

Tags: SigNoz/signoz

Tags

v0.76.0-cloud.2

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
feat(alertmanager): integrate with ruler (#7222)

### Summary

Integrate the new implementations of the alertmanager along with changes to the ruler. This change can be broadly categoried into 3 parts:

#### Frontend
- The earlier `/api/v1/alerts` api was double encoding the response in json and sending it to the frontend. This PR fixes the json response object. 

For instance, we have gone from the response `{
    "status": "success",
    "data": "{\"status\":\"success\",\"data\":[{\"labels\":{\"alertname\":\"[platform][consumer] consumer is above 100% memory utilization\",\"bu\":\"platform\",\"......
}` to the response `{"status":"success","data":[{"labels":{"alertname":"[Metrics] Pod CP......`

- `msteams` has been changed to `msteamsv2` wherever applicable

#### Ruler
The following changes have been done in the ruler component:

- Removal of the old alertmanager and notifier
- The RuleDB methods `Create`, `Edit` and `Delete` have been made transactional
- Introduction of a new `testPrepareNotifyFunc` for sending test notifications
- Integration with the new alertmanager

#### Alertmanager
Although a huge chunk of the alertmanagers have been merged in previous PRs (the list can be found at SigNoz/platform-pod#404), this PR takes care of changes needed in order to incorporate it with the ruler

- Addition of ruleId based matching
- Support for marshalling the global configuration directly from the upstream alertmanager
- Addition of orgId to the legacy alertmanager
- Support for always adding defaults to both routes and receivers while creating them
- Migration to create the required alertmanager tables
- Migration for msteams to msteamsv2 has been added. We will start using msteamv2 config for the new alertmanager and keep using msteams for the old one.

#### Related Issues / PR's

Closes SigNoz/platform-pod#404
Closes SigNoz/platform-pod#176

v0.75.0-e1be10cd4

Verified

This commit was signed with the committer’s verified signature.
grandwizard28 Vibhu Pandey
feat(alertmanager): create config on first user creation

v0.75.0-25657732b

Verified

This commit was signed with the committer’s verified signature.
grandwizard28 Vibhu Pandey
feat(msteams): add migration for msteams

v0.75.0-47c4483f5

Verified

This commit was signed with the committer’s verified signature.
grandwizard28 Vibhu Pandey
feat(config): add Yamlv2Unmarshaller func

v0.75.0-2a4891fb8

Verified

This commit was signed with the committer’s verified signature.
grandwizard28 Vibhu Pandey
feat(msteams): add migration for msteams

v0.75.0-6965f42f1

Verified

This commit was signed with the committer’s verified signature.
grandwizard28 Vibhu Pandey
test(matcher): add test cases for matcher

v0.75.0-74edc942d

Verified

This commit was signed with the committer’s verified signature.
grandwizard28 Vibhu Pandey
feat(msteams): add migration for msteams

v0.76.0-cloud.1

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
chore: add new user preferences for welcome checklist (#7239)

v0.75.0-ed165f060

Verified

This commit was signed with the committer’s verified signature.
grandwizard28 Vibhu Pandey
fix(alertmanager): fix ReceiverNamesFromRuleID logic

v0.75.0-730832cd4

Verified

This commit was signed with the committer’s verified signature.
grandwizard28 Vibhu Pandey
fix(alertmanager): let defaults kick in for the receiver