/influxdb.conf
[http]
Enabled = true
Bind-address = "127.0.0.1:8086"
# Modify the configuration file and change the bind-address of http to 127.0.0.1.
# Because it is used for monitoring, it does not authenticate, but only allows local address access.
Systemctl start influxdb
#StartInfluxDB
Influx
CREATE USER "pgwatch2" WITH PASSWORD ‘xyz‘
CREATE DATABASE pgwatch2
Use pgwatch2
GRANT ALL ON pgwatch2 to "pgwatch2"
#Create a pgwatch2 user and a database of the same name, and a
Kubernetes Dashboard1.8.3 Deployment
DescriptionPlease click images to download and use the image below.
Installing Dashboard#下载yamlwget https://raw.githubusercontent.com/kubernetes/dashboard/master/src/deploy/recommended/kubernetes-dashboard.yaml#查看yaml中imageimage: k8s.gcr.io/kubernetes-dashboard-amd64:v1.8.3
Installing Heapster#下载yamlwget https://raw.gi
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
Build kubernetes cluster, there is a default dashboard, but this dashboard is relatively humble, can not be customized display. So we're going to use GRAFANA+HEAPSTER+INFLUXDB to build an integrated monitoring platform.What's the first thing? Get the source code from Https://github.com/kubernetes/heapster, in the Heapster/deploy/kube-config/influxdb folder will a
down the state of the text, processes can easily understand how many programs the system is waiting for I/O. Second, PMM architecture analysis
The PMM architecture is shown in the following figure
The PMM server is distributed as a Docker mirror, and PMM client is the normal RPM, which requires installing server-side and client-side software.
Server components
Query Analytics (QAN) is used to collect instructions and perform profiling, and its components are described as follows: Qan API: Stor
part of every cloud service. (Click to read "Why is kubernetes so popular")
Hugo: Is the most popular open source static Web engine at the moment. Hugo's amazing speed and flexibility make building a Web site fun again. According to W3techs,hugo currently has a near-dominant Jekyll 3 times times the application. (GitHub address: Https://github.com/gohugoio/hugo)
Prometheus: A combination of open source monitoring solutions and time-series databases that reinforces metrics and alert design to
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
series of functions for convenient statisticsNative http API, built-in HTTP support, read and write using HTTPPowerful Query Language similar to SQLBuilt-in Explorer comes with management tools3. APIInfluxDB supports two API modesHTTP APIProtobuf APIPersonal experience:1: Data for monitoring and health;2: Convenient expansion;3: Management, use is very cool;3:grafanaGrafana is a purely HTML/JS application that accesses influxdb without the restriction of cross-domain access. As long as you have
the new record. The other is the precision of manual lifting timestamp, up to microseconds, in theory can support 86,400,000,000 of non-repeating log each day, can greatly avoid the overlap of timestamps, the configuration is as follows:
Business log output time stamp formatted to microseconds: 2006-01-02t15:04:05.999999z07:00Logstash filter based on timestamp conversionFilter {Ruby {Code = "Event.set" (' Time ', (Time.parse (Event.get (' time)). to_f*1000000). To_i) "}}
6. Data displayGrafan
= config . Withconsolereport (TimeSpan. FromSeconds (())Then enter http://localhost:1234/metrics/in the browser, you can see the various acquisition of quasi-real-time various metrics information:The performance of the above dashboard is slightly humble. In general, we typically store these real-time collected data in a distributed sequential database influxdb, and then use the Open source Chart control Gr
real time. Metric provides a variety of data reporting interfaces. Including the Metrics.NET.FlotVisualization, as well as the output to the professional system monitoring graphite, output to open source, distributed, time series in the Influxdb, or output to Elasticsearch. It is also very simple to configure. For example, if you want to display directly on an HTTP page, simply set the appropriate endpoint when initializing:Metric.config . Withhttpendpoint ("http://localhost:1234/metrics/")
Recently in the monitoring of the container, encountered Influxdb this library, engaged for two days, a little understand some routines, make a record, memo ....The summary is as follows:Influxdb Go Language WritingBy default Influxdb creates a library that associates Autogen with the RP (Storage policy), that is, the data is retained permanentlyDifferences in monitoring and loggingRecently, monitoring is the monitoring service is the health of the body (still alive/sick? Are the indicators norm
-amd64Gcr.io/google_containers/exechealthz-amd64
# Network plugin, all nodes will be installedWeaveworks/weave-kubeWeaveworks/weave-npc
# DNS plug-in, Management node installationGcr.io/google_containers/kubedns-amd64Gcr.io/google_containers/kube-dnsmasq-amd64Gcr.io/google_containers/dnsmasq-metrics-amd64
# Web interface, Management node installationGcr.io/google_containers/kubernetes-dashboard-amd64
"'
Start the Kubelet service
Systemctl Start Kubele
explained. Question 2: Which mirrors are required to quickly deploy kubernetes using rancher?List of mirrors required for Rancher v1.6.14 deployment k8s1.8.5 http://blog.csdn.net/CSDN_duomaomao/article/details/79127856 , this article takes version 1.6.14 as an example. Special Note:1, RANCHER_CN Head of the image, tiller this image is very special, it is Kubernetes deployment Tool Helm service-side components, the original image full name is Gcr.io/kubernetes-helm/tiller:v2.6.1,rancher China Th
related elements:
Summary:
Address:/dashboard/admin/instances/[1]
Method: Post
Parameters:
Instances_filter_q:
Action: instances _ soft_reboot _ 89a8849b-a3cd-4ce0-9158-c3dd69e8508e
Note: [1] The/dashboard/in the request address should be related to the Apache server configuration. You can check the installation and configuration process of horizon later.
6. Binding URL to backend
Based on Django's f
. Based on HTML5, allows large screen display in data center or conference room.
Diamond-Python-based statistics collection daemon
Ganglia-high performance, scalable monitoring device based on RRD servers for grids and/or clusters. Compatible with graphite, using a single collection process.
Grafana-A graphite or influxdb dashboard and graphics editor
Open source, scalable drawing server
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.