Netdata Community

Monitoring replication lag with MongoDB plugin


I want to monitor MongoDB replication lag, is this metric the equivalent one ?


I mean, if I take the value matching the secondary server like this ?

netdata_mongodb_replication_optimedate_delay_seconds_ago_average{chart="mongodb_local.optimedate_delay",family="replication and oplog",dimension="<secondary_server_ip>:27018"}

Other question, how do I dynamically find, in my queries, which ip targets the primary server ?



1 Like


First, you can find more information about our mongoDB collector in our docs:

Secondly, I think that the first question is yes. Unfortunately, I am not familiar with the prometheus syntax ( I think that’s prometheus syntax, right?)

Not sure what you mean by the last question. Perhaps @ilyam8 has more context?