Telegraf is a Influxdata data collection kit that is used to resemble Collectd, STATSD, Logstash and other software. The input and output of the data are implemented by plugin. Today we try to write a plugin that collects Supervisord
1. Prepare Golang (preferably 1.9+) environment,
2. Prepare some DEP compilation environments https://golang.github.io/dep/docs/installation.html
3. Prepare to Http_proxy (you know)
4. Go get Github.com/
database metadata
Wal stores pre-written log files2. Source code compilation and installationGo get github.com/influxdata/influxdb
cd $GOPATH/src/github.com/influxdata/
go get ...
Go install./... For details, refer to here: https://anomaly.io/compile-influxdb/Second, start 1, start by service modeService Influxdb Start2. Start by non-service modeInfluxd If you need to specify a configuration fi
call the Send method if it is reached. Of course there are timing solutions, and if you have not reached Metricbatchsize, you will send the data after a certain amount of time. Specific implementation code in AGENT.GO
Ticker: = time. Newticker (a.config.agent.flushinterval.duration) Semaphore: = Make (Chan struct{}, 1) for {select {CA Se
After the program receives the stop signal, the program first flush the remaining data into output and then exits the process. This guarantees a certain amo
Next, I wrote a blog about influxdb and how to install it. This blog introduces how to install telegraf in Linux and its features...
Official website address: influxdata
Official documentation: telegraf documentation
Environment: centos7.4 64-bit
Influxdb version: 1.0.2
1. Introduction to telegraf
1. Basic Introduction
Telegraf is a go agent that collects statistics on systems and services and writes them to the influxdb database. The memory usage is
InfluxDB server startup process
Operating System: CentOS7.3.1611 _ x64
Go language version: 1.8.3 linux/amd64
InfluxDB version: 1.1.0
Source code path: github.com/influxdata/influxdb/#/influxd
Program entry (main. go ):
Func main (){Rand. Seed (time. Now (). UnixNano ())
M: = NewMain ()If err: = m. Run (OS. Args [1:]...); err! = Nil {Fmt. Fprintln (OS. Stderr, err)OS. Exit (1)}}
In the main function, call the Main. Run function.The command line parame
the Registry consul to do service discovery, to implement dynamic add services, using mail, Nail and webhook for abnormal alarms.GPE component is only one of the implementation, Grafana with Influxdata provide Telegraf can also collect a lot of metrics, to achieve a richer large screen monitoring and warning.GrafanaGrafana is an out-of-the-box visualization tool with a full-featured metric panel and graphic editor with flexible and rich graphical opt
beginning Grafana.ini smtp/emailing related parameter configuration. Click Send Test, the prompt will send a copy of the alert demo to the designated mailbox: SummarizeTo be reasonable, this set of things is still quite powerful. Especially for small and medium-sized companies, a variety of mature open-source group between the integration of a perfect set of monitoring system, time costs, labor costs, technical costs can be minimized.Reference documentsDuring the installation process, the ver
Use python to operate InfluxDB and python to operate influxdb
Environment: CentOS6.5 _ x64InfluxDB version: 1.1.0Python: 2.6Preparations
Start the server
Run the following command:
service influxdb start
Example:
[root@localhost ~]# service influxdb startStarting influxdb...influxdb process was started [ OK ][root@localhost ~]#
Install influxdb-python
Github address: https://github.com/influxdata/influxdb-python
Install pip:
yum install python
This article explains how to use python to operate the InfluxDB method environment: CentOS6.5 _ x64
InfluxDB version: 1.1.0
Python: 2.6
Preparations
Start the server
Run the following command:
service influxdb start
Example:
[root@localhost ~]# service influxdb startStarting influxdb...influxdb process was started [ OK ][root@localhost ~]#
Install influxdb-python
Github address: https://github.com/influxdata/influxdb-python
Install pip:
yum
://blog.csdn.net/neven7/article/details/50740018Spring MVCLink Visualization:Watchman (Weibo APM)InfluxDB:Sequential DB https://github.com/influxdata/influxdbGrafana:Visualization tool Https://github.com/grafana/grafana3. Implementation 3-1. Request PoolUse Gor to record line requests, serialize to JSON String according to line request, persist to Redis; performance test scripts get to the online request data based on key, and perform a pressure test.
recovery notification, alarm pause, different time threshold, support maintenance period, support alarm merging. * Historical Data Efficient query: The second level returns the historical data for hundreds of indicators a year. *dashboard humanization: Multi-dimensional data display, user-defined dashboard and other functions. * Architecture design is highly available: the whole system without core single point, Isianvi, easy to deploy.
2
Banshee
Http://github.com/eleme/bans
Telegraf Telegraf is used to collect information written to INFLUXDB (or other data sources), so you need to configure the relevant information, here are examples of CPU and memory configuration, related documents Https://github.com/influxdata/telegraf 1). Data source configuration (outputs.influxdb node): [[outputs.influxdb]] URLs= ["http://192.168.18.118:8086"] #infulxdb地址 Database="Telegraf"#数据库 Precision="s"Timeout="5s"username="Admin"#帐号 Passw
Because of the project needs, it simply appears that the next time series database:The time series database is for the large amount of data writing, mainly used to record time series data, so as to monitor the record of the scene; write more read less scenes;What is time series data. Timing data is a series of data based on time. These data points are connected to a line in the coordinates of time, which can be made into multi-latitude report, revealing its trend, regularity and anomaly. Looking
Tags: lib language free style amp href sel out comEnvironment: centos6.5_x64 Influxdb version: 1.1.0 The C language Development library is not available on the INFLUXDB website, but GitHub offers: Https://github.com/influxdata/influxdb-c However, this version is early, and so far does not support 0.9 and later versions. Here is my own development of the INFLUXDB Client Development library, the direct use of the HTTP API implementation, the function
Environment: centos6.5_x64Influxdb version: 1.1.0Python version: 2.6Preparatory work
Start the server
Execute the following command: service influxdb startExamples are as follows:[Email protected] ~~]#
Installing Influxdb-python
GitHub Address: Https://github.com/influxdata/influxdb-pythonInstall PIP:yum install python-pipInstall Influxdb-python:Basic operationsUse the Influxdbclient class to manipulate the database with t
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.