Docker Monitoring With Prometheus And Grafana | etc/docker/daemon.json | Thetips4you

preview_player
Показать описание
#Prometheus, #DockerMonitoring, #Grafana Hello Friends, Welcome back to my channel. We are back with another interesting tutorial on Docker, Prometheus and Grafana. We are going to see how we can monitor docker using Prometheus and Grafana oin this video. We will configure docker machine to send metrics to Prometheus and then we will make use of the metrics in prometheus to connect to datasource in Grafana to create dashboards.

--------------------------------------------------------------------------------------------------
How to setup docker:
-----------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------
Setup docker swarm:
---------------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------------
Docker documentation reference:

{
"metrics-addr" : "0.0.0.0:9323",
"experimental" : true
}
------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------
Prometheus setup as container:

docker run -d -u root --name prometheus -p 9090:9090 -v prometheus_config:/etc/prometheus/ prom/prometheus

- job name : 'docker'

static_configs:
-targets: ['ipaddress:9323']
----------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------
Grafana setup as container:

docker run -d -u root--name grafana -p 3000:3000 -v grafana_config:/etc/grafana -v grafana_data:/var/lib/grafana -v grafana_logs:/var/log/grafana grafana/grafana
----------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------
Firewall exceptions:

sudo firewall-cmd --permanent --zone=public --add-port=9323/tcp
sudo firewall-cmd --permanent --zone=public --add-port=9090/tcp
sudo firewall-cmd --permanent --zone=public --add-port=3000/tcp

sudo firewall-cmd --reload
--------------------------------------------------------------------------------------------------
=================================================
Follow me @:
======================================================
Рекомендации по теме
Комментарии
Автор

Hi, please can you make a video on how to expose metrics to secure port https instead of http?

SairamM-yivx
Автор

Hello, does it includes queries for cpu and mem usage of containers??

bablisahu
Автор

firewalld will kill ssh so make sure you are ready and add make exceptions for ssh

arihantjain
Автор

How can we setup node exporters on fargate containers .

sushmithashetty
Автор

How to monitor tcp port availability ?

sereose
Автор

it seems sound & video are not sync

amirhosseineidy
Автор

type this command.


docker run -d --name=grafana -p 3000:3000 -v grafana_config:/etc/grafana -v grafana_data:/var/lib/grafana -v grafana_logs:/var/log/grafana grafana/grafana

fahadnaif