Influxdb+cadvisor+grafana Configuring Docker Monitoring

Source: Internet
Author: User
Tags grafana docker run influxdb cadvisor

Tag:nal   val    Read    art   recover   write  roo   inf   ems   ica   

First, configure Influxdbdocker run-d-P 8083:8083-p 8086:8086--expose 8090--expose 8099--name influxsrv tutum/influxdb Default user name: root, Default password: root# CREATE database ' cadvisor '; # Create user ' cadvisor ' with PASSWORD ' cadvisor ' # User authorized grant all privileges on ' cadvisor ' to ' cadvisor ' # grant Read and write access Grant W RITE on ' cadvisor ' to ' Cadvisor ' Grant READ in ' cadvisor ' to ' Cadvisor ' II, Cadvisor data collection, boot on Monitoring node # docker run--VOLUME=/:/ROOTF S:ro--VOLUME=/VAR/RUN:/VAR/RUN:RW--volume=/sys:/sys:ro--volume=/var/lib/docker/:/var/lib/docker:ro--volume=/ Dev/disk/:/dev/disk:ro--publish=9090:8080--detach=true--name=cadvisor google/cadvisor:latest-storage_driver= Influxdb-storage_driver_host=192.168.1.100:8086-storage_driver_db=cadvisor-storage_driver_user=cadvisor- Storage_driver_password=cadvisorstorage_driver=influxdb Specify the storage driver, so that Cadvisor store the data in the database, more storage plug-ins, please refer to here-storage_driver_ host=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 of all containersI0130 03 : 47:14.131098 1 manager.go:334] Recovery completedF0130 03:47:14.174599 1 cadvisor.go:156] Failed to start container manag Er:inotify_add_watch/sys/fs/cgroup/cpuacct,cpu:no such file or directory workaround: # mount-o remount,rw/sys/fs/cgroup/# Ln -sf/sys/fs/cgroup/cpu,cpuacct/sys/fs/cgroup/cpuacct,cpu Second, Prometheus configuration Docker run-d-P 9090:9090-v/nfs/ PROMETHEUS-DATA/PROMETHEUS.YML:/ETC/PROMETHEUS/PROMETHEUS.YML prom/prometheus configuration file: Global:scrape_interval:15s # by Default, scrape targets every seconds. # Attach These labels to any time series or alerts when communicating with # External systems (Federation, Remote Storage, Alertmanager). External_labels:monitor: ' codelab-monitor ' # A scrape configuration containing exactly one endpoint to scrape:# here it's Prometheus itself.scrape_configs: # The job name is added as a label ' job=<job_name> ' to any timeseries Scraped from the this config. -job_name: ' Prometheus ' # Override the global default and scrape targets from this job every 5 seconds. Scrape_interval:5s Static_configs:-Targets: [' 192.168.1.100:9090 '] three, Grafana show Docker run-d-P 3000:3000 grafana/ Grafanahttp://10.6.8.41:3000/login User name Password Admin admin

Influxdb+cadvisor+grafana configuring Docker monitoring

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.