Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Install prometheus on docker under ubuntu

2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

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

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report