canonical / canonical/mongodb-operator

COS / Alerts MongodbReplicationLag and MongodbReplicationHeadroom with errors

Open
#528 1 comment 0 reactions 0 assignees View on GitHub
bug
Dominant language
HCL
Stars
14
Forks
15
Avg merge
9h 44m
Merged PRs (30d)
17

Description

## Steps to reproduce
Follow COS integration tutorial from Charmhub
Use channel 6/edge for Mongodb

## Expected behavior
Not to see alerts with errors

## Actual behavior
MongodbReplicationLag and MongodbReplicationHeadroom alerts with errors

![image](https://github.com/user-attachments/assets/3c9edbac-cf13-4b8e-ad92-4264536e1c32)
![image](https://github.com/user-attachments/assets/9d9870e1-9d83-40f3-a6f7-2429fc20d06d)

## Versions
```bash
# (base) blue@blue:~$ juju status
Model Controller Cloud/Region Version SLA Timestamp
mongodb lxd localhost/localhost 3.5.4 unsupported 22:24:34Z

SAAS Status Store URL
alertmanager-karma-dashboard active lxd admin/cos.alertmanager-karma-dashboard
grafana-dashboards active lxd admin/cos.grafana-dashboards
loki-logging active lxd admin/cos.loki-logging
prometheus-receive-remote-write active lxd admin/cos.prometheus-receive-remote-write

App Version Status Scale Charm Channel Rev Exposed Message
grafana-agent active 3 grafana-agent latest/stable 223 no
mongodb active 3 mongodb 6/edge 206 no

Unit Workload Agent Machine Public address Ports Message
mongodb/0 active idle 0 10.58.159.207 27017/tcp
grafana-agent/1 active idle 10.58.159.207
mongodb/1 active idle 1 10.58.159.88 27017/tcp
grafana-agent/2 active idle 10.58.159.88
mongodb/2* active idle 2 10.58.159.249 27017/tcp Primary
grafana-agent/0* active idle 10.58.159.249

Machine State Address Inst id Base AZ Message
0 started 10.58.159.207 juju-0c41a2-0 ubuntu@22.04 Running
1 started 10.58.159.88 juju-0c41a2-1 ubuntu@22.04 Running
2 started 10.58.159.249 juju-0c41a2-2 ubuntu@22.04 Running
```

Contributor guide

Open the contributing guide

Research direction

Reproduce the issue by following the COS integration tutorial from Charmhub with MongoDB on channel 6/edge and the three-unit setup shown in the report. Inspect the MongodbReplicationLag and MongodbReplicationHeadroom alert errors and compare them with the expected alert behavior. Done means the alerts no longer report errors.

Written by the indexing model from the issue text.

Assessment

Tech stack
mongodb
Domain
databases
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.