In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article is about how to deploy Docker monitoring system in Portainer. I think it is very practical, so I share it with you. I hope you can get something after reading this article. Let's take a look at it.
Brief introduction of components cAdvisor: for data acquisition
Cadvisor Google's own tool to monitor their infrastructure, this tool can monitor not only the real-time information of the docker container, but also the real-time information of the host system where your cadvisor container is located, but because cadvisor can only monitor real-time information and cannot save it.
InfluxDB: for data storage
InfluxDB is an open source distributed database of timing, events and metrics written in the Go language without external dependencies. So we need to use influxdb to store the real-time monitored information.
Grafana: for data presentation
Grafana is a visual panel (Dashboard) with beautiful charts and layouts, full-featured measurement dashboards and graphical editors that support Graphite, zabbix, InfluxDB, Prometheus and OpenTSDB as data sources.
Deployment process
Visual deployment in Portainer.
First of all, let's build a custom network.
Then we deploy the containers one by one.
Deploy the InfluxDB container
Set up the network
Restart rules and data volumes can be configured by yourself, and there is no more to say.
After it is configured, you can deploy it.
Configure InfluxDB
You can now access the management side of influxdb through a browser (port 8083)
Create the database and user for cadvisor, which is used to configure granfa later
CREATE DATABASE "cadvisor"
Enter and enter.
Create an administrative user
CREATE USER "username" WITH PASSWORD 'password' WITH ALL PRIVILEGES
You don't have to create a user. The default user name and password is root.
Deploy the cAdvisor container
Set up the network
Then set the automatic parameters! Important!
The user name and password of the default influxdb is root/root
If not, you need to specify:
-- storage_driver_user=root--storage_driver_password=root
Then we configure the data mount point:
Pay attention to the read-only property settings!
After configuration, you can deploy it.
Deploy the Grafana container
Configure the network:
After it is configured, you can deploy it.
If all goes well, we can see the newly created table on InfluxDB:
Configure Grafana
The default user name and password are admin, which will be required to change the password after the first login.
Then we add the data source first, and then we can add monitoring metrics and charts.
The specific use and indicator setting section will be described in detail later.
The above is how to deploy the Docker monitoring system in Portainer. The editor believes that there are some knowledge points that we may see or use in our daily work. I hope you can learn more from this article. For more details, please follow the industry information channel.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.