当前位置:网站首页>JMeter -- prometheus+grafana server performance visualization
JMeter -- prometheus+grafana server performance visualization
2022-07-24 18:11:00 【zyanwei2018】
List of articles
1. Prometheus brief introduction
- Prometheus Is an open source system monitoring and alarm system , use go Language development , There are various exporter To collect server performance data
2. Prometheus Deploy
- Add configuration file
- Refer to :https://github.com/prometheus/prometheus/blob/main/documentation/examples/prometheus.yml
vim prometheus.yml
# my global config
global:
scrape_interval: 15s # Set the scrape interval to every 15 seconds. Default is every 1 minute.
evaluation_interval: 15s # Evaluate rules every 15 seconds. The default is every 1 minute.
# scrape_timeout is set to the global default (10s).
# Alertmanager configuration
alerting:
alertmanagers:
- static_configs:
- targets:
# - alertmanager:9093
# Load rules once and periodically evaluate them according to the global 'evaluation_interval'.
rule_files:
# - "first_rules.yml"
# - "second_rules.yml"
# A scrape configuration containing exactly one endpoint to scrape:
# Here it's Prometheus itself.
scrape_configs:
# The job name is added as a label `job=<job_name>` to any timeseries scraped from this config.
- job_name: "prometheus"
# metrics_path defaults to '/metrics'
# scheme defaults to 'http'.
static_configs:
- targets: ["localhost:9090"]
- establish prometheus Containers
docker run -d --name prometheus \
--network grafana -p 9090:9090 \
-v ${
PWD}/prometheus.yml:/etc/prometheus/prometheus.yml \
prom/prometheus:v2.16.0 --config.file=/etc/prometheus/prometheus.yml
- View monitoring status
- visit http://ip:9090/, choice Status–>Targets, You can view the list of monitored services
3. node_exporter Installation configuration
- node_exporter install
docker run -d --name node_exporter \
-p 9100:9100 prom/node-exporter:v1.2.0
- Verify whether the tool service is started
- visit http://ip:9100, verification
- prometheus Configure adding monitored nodes
vim prometheus.yml
scrape_configs:
- job_name: "prometheus"
static_configs:
- targets: ["localhost:9090"]
# add
- job_name: "demo01"
static_configs:
- targets: ["ip:9100"] # It can't be localhost
4. grafana visualization
- Create a container ( A little )
- grafana Configure data sources
>+ visit grafana,http://ip:3000, Default password :admin/admin
>+ Configuration database :Add data source-->Prometheus-->
> + Url: http://prometheus:9090( Same container Name and Port)
> + Scrape interval:15s
- grafana Import Dashboard
>+ Import Dashboard
> + Grafana.com Dashboard: 11174
> + Name: Node Exporter for Prometheus
> + Prometheus:Prometheus
边栏推荐
- How does win11 enhance the microphone? Win11 enhanced microphone settings
- [network security] analysis vulnerability of website Middleware
- 手写博客平台~第二天
- [leetcode] 30. Concatenate substrings of all words
- C language to achieve a static version of the address book
- 6126. 设计食物评分系统
- 仅需一个依赖给Swagger换上新皮肤,既简单又炫酷!
- new也可以创建对象,为什么需要工厂模式?
- New can also create objects. Why do you need factory mode?
- Use of jumpserver
猜你喜欢

05mysql lock analysis

0630~职业素养课
去不图床容量兑换

Opencv picture rotation

SSM framework learning

PXE efficient batch network installation

安装JumpServer

Laravel笔记-用户登录时密码进行RSA加密(提高系统安全性)

Interview assault 66: what is the difference between request forwarding and request redirection?
![[leetcode] 30. Concatenate substrings of all words](/img/21/3965532a31553cfe6edf64ca5de3f4.png)
[leetcode] 30. Concatenate substrings of all words
随机推荐
pycharm配置opencv库
How to read "STL source code analysis"?
Go language file operation
0613 ~ self study
0627~放假知识总结
T245982 "kdoi-01" drunken flower Yin
new也可以创建对象,为什么需要工厂模式?
The collapse of margin
0615~用自定义注解实现RBAC权限管理
Learn redisson from scratch ------- topics (subscription and distribution)
pinia 入门及使用
移动端实现0.5px的实用方案
After separation, the impression notes are still difficult to live, but there are many coquettish operations
1688/ Alibaba searches new product data by keyword API instructions
安装JumpServer
继承与派生
700. Search DFS method in binary search tree
0627~ holiday knowledge summary
Cookies and session "suggestions collection"
Definition and storage of adjacency table and adjacency storage of directed graph and undirected graph