graphite is a monitoring system that monitors business data. , The system architecture is as follows:
The system is divided into three major components:
carbon:
Responsible for back-end data collection, data can be collected through the following clients
There are multiple ways for client applications to publish metrics:
Use a plain text protocol tool such as netcat (nc) command
Use pickle protocol
Use Advanced Message Queuing Protocol (AMQP)
使用 lib 包比如 Dropwizard metrics library(http://metrics.dropwizard.io/3.2.2/getting-started.html)
whisper:
Structured file storage, a database package mainly used to store time series data, which is retrieved and operated by applications using create, update, and fetch operations
graphite-web:
The web interface is used to display monitoring data.
I installed the system using docker, the installation command:
sudo docker run -d -p 80:80 -p 81:81 -p 2003:2003 -p 8125:8125/udp -p 8126:8126 --restart=always --name kamon-grafana-dashboard kamon/grafana_graphite
This is a mirror image of grafana, which contains graphite.
After opening, the browser can access port 80 of the machine.
As shown in the figure, the grafana interface is still good.