Integrar la alerta de Replication lag de Atlas en el API de Prometheus
Se solicita incluir métricas en el API de prometheus para poder implementar la alarma de Replication lag
6
votes
Cecilia
shared this idea
-
Gregory commented
Replication of Oplog Window in hours.
```
(mongodb_oplog_latestOptime{instance="cluster1-shard-00-00.v9uas.mongodb.net:27018"} - mongodb_oplog_earliestOptime)/3660
```
Replication Lag.
```
scalar(sum(mongodb_members_optimeDate{rs_nm="###", rs_state="1"} AND (mongodb_members_state{rs_nm="###", rs_state="1"} == 1)) by (member_idx))
-
(sum(mongodb_members_optimeDate{rs_nm="###", rs_state="1"} AND (mongodb_members_state{rs_nm="###", rs_state="1"} == 2)) by (member_idx))
```