CentOS7下简单搭建Prometheus+Grafana监控系统


CentOS7下简单搭建Prometheus+Grafana监控系统

文章插图
 
?Prometheus is an open-source systems monitoring and alerting toolkit originally built at SoundCloud.
1、FeaturesPrometheus's main features are:
  • a multi-dimensional data model with time series data identified by metric name and key/value pairs
  • PromQL, a flexible query language to leverage this dimensionality
  • no reliance on distributed storage; single server nodes are autonomous
  • time series collection hAppens via a pull model over HTTP
  • pushing time series is supported via an intermediary gateway
  • targets are discovered via service discovery or static configuration
  • multiple modes of graphing and dashboarding support
2、ComponentsThe Prometheus ecosystem consists of multiple components, many of which are optional:
  • the main Prometheus server which scrapes and stores time series data
  • client libraries for instrumenting application code
  • a push gateway for supporting short-lived jobs
  • special-purpose exporters for services like HAProxy, StatsD, Graphite, etc.
  • an alertmanager to handle alerts
  • various support tools
Most Prometheus components are written in Go, making them easy to build and deploy as static binaries.
3、ArchitectureThis diagram illustrates the architecture of Prometheus and some of its ecosystem components:
CentOS7下简单搭建Prometheus+Grafana监控系统

文章插图
 
【CentOS7下简单搭建Prometheus+Grafana监控系统】Prometheus scrapes metrics from instrumented jobs, either directly or via an intermediary push gateway for short-lived jobs. It stores all scraped samples locally and runs rules over this data to either aggregate and record new time series from existing data or generate alerts. Grafana or other API consumers can be used to visualize the collected data.


    推荐阅读