Alibabacloud.com offers a wide variety of articles about docker prometheus grafana dashboard, easily find your docker prometheus grafana dashboard information here online.
# because the directory/data user group and the user is the Jtserver,docker execution command is the root user,/data/lib/prometheus to the other group permissions to perform
sudo mkdir/data/lib/prometheus
sudo chown 767/data/lib/prometheus
docker run-d \
p 9090:9090 \
-
.x86_64.rpm# installation [root @ prometheus src] # yum localinstall grafana-4.6.2-1.x86_64.rpm2. Configuration File
The configuration file is located in/etc/grafana. ini, so keep the default configuration here.3. Set startup
[root@prometheus src]# systemctl enable grafana-s
Objective
Grafana is a rich indicator of open source Control Panel. It is very useful when visualizing large-scale measurements of data. Based on different metrics data, it provides a powerful, elegant way to create, share, and browse data.
It provides a rich variety of flexible graphics options. In addition, for data source, it supports many different storage backend. Each data source has a query editor tailored to the characteristics and functiona
Docker run Prometheus and Grafana
(Jin Qing's column 2018.4)
The running example of Prometheus's official website is direct execution.You can use Docker to run Prometheus and Grafana using the https://www.katacoda.com/tutorial.To
the data.1.2 InfluxDB
InfluxDB is an open source distributed timing, event, and metrics database written in the go language without the need for external dependencies. Similar databases are elasticsearch, graphite and so on.
Influxdb Main Features
Support time-dependent related functions (such as maximum, minimum, sum, etc.) based on time series;
Measurable: You can calculate large amounts of data in real time;
Event-based: It supports arbitrary event data;
corresponding data table and data source information are configured in the "Metrics" tab;Edit_configureExample: Configuring Memory usage informationEdit Memory UsageIn the Metric tab, configure the data table from the source: SELECT mean("value") FROM "memory_usage" WHERE $timeFilter GROUP BY time(10s) fill(0) , configure the data source panel datasource as: cadvisor ;Configure the relevant display units in the Axes tab.Config axies5). After configuring the relevant options, click the Save butt
sudo docker run --volume=/:/rootfs:ro --volume=/var/run:/var/run:rw --volume=/sys:/sys:ro --volume=/var/lib/docker/:/var/lib/docker:ro --publish=8080:8080 --detach=true --link influxsrv:influxsrv --name=cadvisor google/cadvisor:latest -storage_driver_db=influxdb -storage_driver_host=influxsrv:8086
After the installation is successful, enter http: // localhost: 8080/in the browser. After successful access,
operations and configuration options, you can view the Cadvisor project documentation on GitHub. influxdb: It is a distributed time series database. Cadvisor only displays real-time information, but does not store monitoring data. Therefore, we need to provide a sequential database for storing the monitoring information provided by the Cadvisor component to display time series data in addition to real-time information. Grafana: The
Ubuntu under Cadvisor+influxdb+grafana+supervisord Monitor host and Docker containers (running on the host)Applies to the class Ubuntu system. AMD64.1. INFLUXDB: (Consider converting Influxdb to Prometheus later)Https://influxdb.com/docs/v0.8/introduction/installation.html#ubuntu-debian(You can only choose the way the Deb is installed.) There's no way to compile
Monitor_cadvisor service is running by executing the following command:Docker Service PS Monitor_influxThe result is as shown in the red box:登录worker2结点,执行事下指令创建数据库:docker exec `docker ps | grep -i influx | awk ‘{print $1}‘` influx-execute ‘CREATE DATABASE cadvisor‘Set GrafanaBecause Grafana is deployed on the Worker1 node, access http://192.168.30.40:3000 in th
=influxdb:8086 influxdb Database Address-storage_driver_db=cadvisor database name if you want to specify a user name, you can use the-storage_driver_user parameter. The default is root if you want to specify a password you can use the-storage_driver_password parameter, the defaultRoot error: W0130 03:47:13.734200 1 manager.go:313] Could not configure a source for OOM detection, disabling Oom events:op En/dev/kmsg:no such file or directoryI0130 03:47:13.740891 1 manager.go:329] Starting recovery
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.