Learn MongoDB Health Checks/Monitoring with Prometheus & Grafana #prometheus #grafana #mongodb

preview_player
Показать описание
This tutorial helps you to setup MongoDB monitoring with the help of Prometheus & Grafana.
Below are the commands that has been used in this tutorial:

mkdir mongodb-exporter
cd mongodb-exporter

sudo useradd -rs /bin/false prometheus
sudo mv mongodb_exporter /usr/local/bin/

mongo --port 27017
use admin
{
user: "mongodb_exporter",
pwd: "password",
roles: [
{ role: "clusterMonitor", db: "admin" },
{ role: "read", db: "local" }
]
}
)

exit

cd /lib/systemd/system/

[Unit]
Description=MongoDB Exporter
User=prometheus

[Service]
Type=simple
Restart=always

[Install]

sudo systemctl daemon-reload

Edit Prometheus Conf File

- job_name: 'prometheus'
static_configs:
- targets: ['IP_ADRESS:9090', 'IP_ADRESS:9216']

Restart Prometheus Server
Рекомендации по теме
Комментарии
Автор

Very well explained. Thanks for the video.

ankitbhatti
Автор

Hi, I'm very grateful to you, a content very very useful. Thx. 👍

oswaldogvzla
Автор

How to create metrics of our own database data stored in mongodb other than the system information ?

mohammedsaqlainmushtaq
Автор

Sir Can you please setup complete dashboard with related to monitor on daily based

mdsiddiqaamiri
Автор

How to create user under the mongo system that you not shown ? Tell me plz

shindeaditya
Автор

Hi! Beautyful work!!!! I just have one question... I follow all the steps, but in prometheus I only get "mongoup" metric... no the full set of mongodb metrics. What could I been doing wrong??

rappalini
Автор

Cloud you please help me, it will works for Mongodb Atlas "mongodb_exporter" will work are not please do some videos, i think Mongodb Altas this cloud cluster how we can configure Grafana or Prometheus

chanakyareddyk
Автор

sir i am getting this error: server returned error on SASL authentication step help

nikhilverma
Автор

I followed and successful successfully done, How to setup alerts like cpu usage, memory usage, disk space, slow queries

rajusangam
Автор

No data is showing after setting up prometheus and grafana successfully. Charts are empty.

mquanit
Автор

can't we get data directly from mongoDB without using prometheus?

yarraramu
join shbcf.ru