Preface
Prior to using RABBITMQ to deploy a simple MQTT server, no user isolation, but also deployed the Influxdb sequential database, but can not directly through the configuration of the MQTT server data to the Time-series database, so I decided to write my own script implementation. Ready to
Open shell UsePip Install influxdb install inluxdb required modulesPip Install Paho-mqtt install RABBMQ required
ObjectiveThis article may not detail every step of the implementation process, but to a certain extent can lead the small partners to a more open vision, in tandem with each link, showing you a different effect.Business Scale
8 Platforms
100+ Platform Server
More than one cluster grouping
Micro-Service 600+
User n+
Facing problemsWith the development of distributed micro-service container technology, traditional monitoring system faces many problems:
How co
development in the last two years
In the timing database Top 10 rankings, the semi-open source Influxdb as a new generation of timing database benchmark, comprehensive score ahead, so in the need to store time series data in the application scenario, Influxdb is undoubtedly the first choice.
Time series database comprehensive score ranking
Special call Cloud Platform monitoring system is also based on
there's a metric there's a-means". Once you can repeatedly observe the balance of performance, performance problems are the best solution, but writing is the most difficult problem.
In general, everyone in the company to Judge Metrics, there are monitoring tools. For our small team, or a team that embraces the community, this is basically a matter of not worth the candle. Because you have a lot of effort to write one, it is not as good as the community, it is very troublesome. So, we have embed
First, PMM Introduction
Second, PMM architecture analysis
Iii. Install and run PMM Server
Iv. installation and Operation PMM Client
Five, add MySQL monitoring
Vi. view monitoring and management platform
Seven, add MongoDB monitoring
Eight, instrument panel setup
Nine, frequently asked questions. First, PMM introduction
Percona Monitoring and Management (PMM) is an open source platform for managing and monitoring MySQL and MongoDB performance, with Third-party software PMM drawing to display DB m
Recovery of the specified data from a fully-prepared data, there are many ways to remove the data database name and table name from a fully-prepared data file, and so on, you can also restore the specified data by a fully-specified library name, this method is simple and fast, this method restores the unwanted library, but does not recover the data.The process is as follows:1. Check the status of the database before it has been backed upMariaDB [(None)]> show databases;+--------------------+| Da
productive go language web framework. The Revel Framework supports hot compilation, and when editing, saving, and refreshing the source code, Revel automatically compiles codes and templates, and all-stack features support routing, parameter parsing, caching, testing, internationalization, and more.
GitHub Managed Address: Https://github.com/revel/revel
8. InfluxDB
An open source distributed time series, event, and metrics database written by Go
likes to use the go language, primarily the ability to go with a strong standard library, a full development environment, and a cross-platform build.
GitHub Managed Address: Https://github.com/docker/docker
Lime
Revel is a highly productive go language web framework. The Revel Framework supports hot compilation, and when editing, saving, and refreshing the source code, Revel automatically compiles codes and templates, and all-stack features support routing, parameter parsing, caching, testing,
Third-party Library API interfaceInfluxdb provides the encapsulation of HTTP API interfaces in various languages. Here are some details:https://docs.influxdata.com/influxdb/v0.10/clients/api/+At the same time, officials have provided TELEGRAF plug-ins to collect data, in addition to the more commonly used third-party data collection tools such as COLLECTD.I don't recommend using a variety of tools from the start, which will dilute the understanding of
~]# kubectl describe-n kube-system secret/kubernetes-dashboard-admin-token-ddskx Oard-admin-token-ddskx namespace:kube-system Labels:
Write down this string of token, wait for the login to use, this token default is permanent. 4.3 Find the dashboard service port
[root@k8s ~]# kubectl get svc-n kube-system
NAME TYPE cluster-ip PORT (S) age
Heapster Clusterip 10.103.146.118
You can see that it has an external port of 31472.Open the browser,
company, the entire structure of the Prometheus to do the upper package, using a lot of components. Slightly more complex.
InfluxDB Open source version does not support clustering. For large metrics, the write pressure is large, and then the Influxdb-relay scheme is not really highly available. Of course you're hungry. Open source Influxdb-proxy, interested c
likes to use the go language, primarily the ability to go with a strong standard library, a full development environment, and a cross-platform build.
GitHub Managed Address: Https://github.com/docker/docker
Lime
Revel is a highly productive go language web framework. The Revel Framework supports hot compilation, and when editing, saving, and refreshing the source code, Revel automatically compiles codes and templates, and all-stack features support routing, parameter parsing, caching, testing,
, MongoDB, influxdb, and real-time databases (similar to PI) are supported.2. added the r preparation parameters ComNullInterval and NetNullInterval. In polling mode, the interruption interval is when the serial port and network I/O channel are empty.:Http://pan.baidu.com/s/1c1ZZLOO
Update description address: http://www.bmpj.net/thread-36-1-1.html
Contents
15. Use of the data persistence interface... 2
15.1 overview... 2
15.2 define the IDataPersis
Windows one-click Deployment Java ProjectBecause of the company's needs, to do a one-click deployment in the Windows environment to start the Java project, but also to support the dynamic modification of the configuration file from the installation interface IP address. Install and configure the Jdk,tomcat,mysql,influxdb,nginx to the system just as you would install the software, and initialize the data. It took me a week to record my pit log.Preparat
1. First to the outside network to download the image to pour into the various nodes2. Download the Yaml file and create the appMKDIR-P ~/k8s/heapster cd ~/k8s/heapster wget https://raw.githubusercontent.com/kubernetes/heapster/master/deploy/kube-config/influxdb/ Grafana.yaml wget https:// Raw.githubusercontent.com/kubernetes/heapster/master/ Deploy/kube-config/rbac/heapster-rbac.yaml wget https:// Raw.githubusercontent.com/kubernetes/hea
constant, so that data migration is not necessary.MonitoringCeph's own calamari is good, but not practical enough, and its deployment, packaging is not perfect, there are some bugs on CentOS, we can only continue to use the original tools.
Collect: Use diamond to add new Colloctor to collect more detailed data.
Save: Use graphite, set the acquisition accuracy and save precision.
Show: Use Grafana, pick out more than 10 tools, found o
TABLE ', table_name, ' engine=innodb; ') From Information_schema.tablesWHERE table_schema= ' Ambari ' and engine= ' MyISAM ';12. Start the serverAmbari-server start13. Start all agents (my machine starts automatically)Ambari-agent start14. If hive is installed, executeSetting up a MySQL library for hive presenceJdbc:mysql://wp/hive?createdatabaseifnotexist=truecharacterencoding=utf-8Ambari-server Setup--jdbc-db=mysql--jdbc-driver=/usr/share/java/mysql-connector-java-5.1.37.jar15. Update Ambari-
using Prometheus+blackbox_exporter to monitor HTTP, ICMP network performanceNot many words, the network still need to monitor up. Reproduced in the last blog post I posted the next Prometheus Monitoring chart, here in detail the following usage.The steps to install Prometheus, Grafana are skipped, not the focus here, if needed, can be turned over my previous blog notes.Cd/usr/local/prometheusVim prometheus.yml Add the following (the 51cto editor will
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.