filmov
tv
Docker Monitoring With Prometheus And Grafana | etc/docker/daemon.json | Thetips4you
Показать описание
#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 @:
======================================================
--------------------------------------------------------------------------------------------------
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 @:
======================================================
Комментарии