Get the App
SLTechnology News&Howtos  ›  Servers  › 

Install prometheus on docker under ubuntu

Shulou Source: shulou.com Published: 2022-06-02 15:27:47 09月22日 Update

Prometheus is an open source monitoring and alarm system and time series database (TSDB) developed by SoundCloud. Prometheus is developed in the GE language and is an open source version of the Google BorgMon monitoring system.

In 2016, Google launched the original Cloud Foundation (Cloud Native Computing Foundation) under the Linux Foundation to include Prometheus as its second largest open source project.

Prometheus and Heapster (Heapster is a subproject of K8S and is used to obtain performance data for the cluster.) Compared with the function is more perfect and more comprehensive. Prometheus performance is also sufficient to support tens of thousands of clusters.

Characteristics of Prometheus

Multi-dimensional data model.

Flexible query language.

Independent of distributed storage, a single server node is autonomous.

The time series data are collected by pull based on HTTP.

Time series data can be pushed through an intermediate gateway.

Discover the target service object through service discovery or static configuration.

Support a variety of charts and interface displays, such as Grafana.

Check to see if there is a mirror

Sudo docker search prometheus

Write a configuration file

Vim prometheus.yml

Content

Global:

Scrape_interval: 60s

Evaluation_interval: 60s

Scrape_configs:

-job_name: prometheus

Static_configs:

-targets: ['localhost:9191']

Labels:

Instance: prometheus

-job_name: linux

Static_configs:

-targets: ['10.0.14.135purl 9191']

Labels:

Instance: localhost

Start

Sudo docker run-- name prometheus-d-p 9090VV / soft/prometheus.yml:/etc/prometheus/prometheus.yml prom/prometheus

Browser access

Tags: Data service fund foundation sequence performance system language cluster development monitoring configuration ten thousand sets two big distributed function single can pass chart multiple Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno MariaDB Apple vpn Docker Linux