= Many # would flush if this points get bufferedBatch-pending = Ten # of batches that is pending in memoryBatch-timeout = "10s" # would flush at least this often even if we haven ' t hit buffer limitRead-buffer = 0 # UDP Read buffer size, 0 means OS default. UDP listener would fail if set above OS max.
#service influxdb Restart
If you look at the Influxdb log, you will find the log output as follows, indicating that the plugin is turned on correctly
[httpd] 2016/02/26 09:47:39 starting HTTP Se
/wyfs02/M00/7C/72/wKiom1bQTKnCLZaBAAA1R5v8zkU076.png "title=" Qq20160226210335.png "alt=" Wkiom1bqtknclzabaaa1r5v8zku076.png "/>Second, client-side configuration COLLECTDIt seems that Yum installs all plugins by default, except that many plugins in the configuration file are comment states, and the test environment opens several plug-in tests.#vim/etc/collectd.confLoadplugin loadLoadplugin MemoryLoadplugin
bufferedBatch-pending = Ten # of batches that is pending in memory Batch-timeout = "10s" read-buffer = 0 # UDP Read Buffer size, 0 means to use OS default Typesdb = "/usr/share/collectd/types.db"Installing the Grafana-server pie chart PluginGRAFANA-CLI Plugins install Grafana-piechart-panel Yum Install https://grafanarel.s3.amazonaws.com/builds/grafana-3.0.3-1463994644.x86_64.rpmAdd the following to a new
Build a modern monitoring system using Grafana, collectd, and InfluxDB
To create a beautiful real-time monitoring system like New Relic, we only need the three InfluxDB, collectd, and Grafana tools. The relationship between these three tools is as follows:
Collect data-> store data (InfluxDB)-> display data (Grafana ).
InfluxDB is an open-source Distributed Time Series database developed by the Go langua
Software features:
The collectD software is used to monitor and collect performance data of KVM virtual machines, including CPU, memory, disk Io, and network traffic.
Use the visage software to plot the collected data.
Installation:
System Environment: ubuntu12.04
CollectD
First, download the collectD package collectd
Software Features:Monitor the performance data collected from KVM VMS with COLLECTD software, including cpu,memory, disk IO, network traffic, etc.Draw graphics from the collected data by Visage software.Installation:System Environment: ubuntu12.04CollectdFirst, download the COLLECTD package at COLLECTD official website collec
Collectd+influxdb+grafana Building Performance monitoring PlatformPreface
InfluxDB is an open-source distributed time-series database for Go language development, which is well suited for storing metrics, events, analytics and other data; key-value times database performance is good.
COLLECTD is a system performance acquisition tool written in the C language.
Grafana is a front-end tool for
One collectdserver: IP: 192.168.91.134; one collectdclient: IP: 192.168.91.133.
First, perform a local experiment on collectdserver:
1. Install MYSQL: APT-Get install mysql-server mysql-client.
2. collectD requires a user to connect to MySQL and does not grant other permissions.
CREATE USER 'collectd'@'localhost' IDENTIFIED BY 'Fat4ohse'; -- Give appropriate permissions -- ("GRANT USAGE" is synonymous to "
Two Ubuntu virtual machines, server and client. Server IP Address: 192.168.91.130. Port 25827 to be received.Server Installation, version 4.10Apt-Get install collectD
/Etc/collectD. conf configuration (mainly including network plugin and rrdtool plugin ):Loadplugin SyslogLoglevel info
Loadplugin CPULoadplugin DFLoadplugin DiskLoadplugin InterfaceLoadplugin LoadLoadplugin memoryLoadplugin NetworkLoadplugin r
An Introduction to tracking statistics with graphite, statsd, and collectdtagged in: Ubuntu, monitoring, system toolsthis tutorial is part 1 of 4 in the series: Introduction to tracking statistics on serversintroduction
There are plenty of reasons why collecting stats about your servers, applications, and traffic is a good idea. collecting and organizing data can give you confidence in your decisions about scaling, troubleshooting, and tracking down pain-points in your events.
There are a variet
First, compile the source:Sudo apt-Get install build-essentialNext, install some necessary packages. You may need to install the necessary plug-ins later. For more information, see http://collectd.org/wiki/index.php/first_steps#creating_graphs:Sudo apt-Get install librrd2-dev libsensors-dev libsnmp-Dev.Next, install:Sudo apt-Get install collectD
Restart the service after installation:Sudo/etc/init. d/collectD
Tags: collectd grafana influxdbFirst, the introduction of common plug-insGets the connection status of the specified port established, close_wait, listen, etc.Tcpconns:Listeningports falseLocalPort "80"RemotePort "80"Get the status of NginxNginx:URL "Http://test.tt.com/NginxStatus"Ping:Host "172.18.2.125"Interval 10.0Timeout 1.0Get the traffic for the NICInterfaceInterface "Eth0"The following plugin directly cancels the commentCpuLoadMemoryProcessesIi
First, jQuery use plug-inPlug-in lookup and help-Plug-in library for the official JQuery website (http://plugins.jquery.com)A large number of plugins are available. and give out the user rating, version and bug of each plugin.-The library lists zip file downloads, demos, sample code and tutorials for each plugin650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M02/7E/76/wKiom1cAyTnSndGiAADBKW6jZSY282.png "title=" Web.png "alt=" Wkiom1caytnsndgiaa
Tags: grafana collectd influxdbWhy study Grafana, COLLECTD and InfluxDB, because I work in the use of open source monitoring software (Nagios, Cacti) drawing is based on RRD implementation, and frankly not very beautiful, and can not customize the chart, But with my development level can not do to write their own charts. 650) this.width=650; "src=" Http://img.baidu.com/hi/jx2/j_0059.gif "alt=" J_0059.gif "/
Results of the installation of COLLECTD:
Configuration:Libraries:intel mic ... No (micaccessapi not found) libaquaero5 ... no (libaquaero5.h not found) Libatasmart ... no (atasmart. H not found) Libcurl .... No (Curl-config failed) libdbi ... no (dbi/dbi.h not found) libe Smtp...... No (libesmtp not found) Libganglia ... no (gm_protocol.h not found) Libgcrypt ... No (gcrypt.h not found) Libhal ... no libhiredis ... no (hiredis.h not found) Libi2c-dev
After installing the COLLECTD tool on the host, you can obtain data such as cpu,memery,if-traffic of the virtual machine on the host by using the COLLECTD tool. Monitoring of these data can be achieved through Nagios monitoring scripts.The following is a simple monitoring virtual machine memory script:#!/bin/bash#desc:tocheckmemoryaboutvminstancestate_ok=0state_warning=1state_ Critical=2state_unknown=3colle
Resources:Grafana is the Graphite and InfluxDB Dashboard and graphics editor: Http://www.oschina.net/p/grafanaBuild modern surveillance systems with Grafana, COLLECTD and InfluxDB: https://linux.cn/article-5252-1.htmlCOLLECTD monitoring Performance combined INFLUXDB Grafana Build Metric collection system: HTTP://WWW.TUICOOL.COM/ARTICLES/ERMIVNBUsing Grafana+collectd+influxdb to build a modern surveillance s
The RRD file generated by collectD cannot be parsed directly by rrd4j. At this time, rrdtool is used to convert the RRD file into an XML file, and rrd4j converts the XML file into an RRD file that rrd4j can recognize. The figure is shown as follows.
① Rrdtool converts RRD files to XML files/Usr/bin/rrdtool dump/var/lib/collectD/RRD/localhost/load. RRD> load. xml
② Rrd4j converts an XML file to an RRD file t
This was done today, and it turned out that it was wrong to choose the Influxdb version when configuring Grafana. Scratching your heads ~ ~The configuration of the COLLECTD is simple, the basic see will know.INFLUXDB configuration is also possible, but the query syntax also needs to be learned.Grafana English interface is really a bit advanced ah, a lot of click on the button is looking for half a day. But the results of the show are pretty flashy. Re
the arithmetic mean (average) of a value in a field. The field type must be Long integer or float64.Syntax format:SELECT MEAN (Using the example> SELECT MEAN (water_level) from H2o_feetname:h2o_feet--------------time mean1970-01-01t00:00 : 00Z 4.286791371454075Indicates that the average value of the Water_level field is4.286791371454075Time is the default time, of course, you can also join the Where condition.4) MEDIAN () functionReturns the median (median) value from the sorted value in a sing
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.