Docker install prometheus Test

简介

prometheus(普罗米修斯):天生为采集存储监控数据而生的时序数据库。prometheus通过各种Exporter采集到监控数据,然后存储进prometheus中,以供查询展示
grafana:一个监控仪表系统。grafana的数据来源可以有很多(如:Prometheus、Graphite、OpenTSDB、InfluxDB、MySQL/PostgreSQL、Microsoft SQL Serve等等),其中用得最多的数据源是prometheus
注:prometheus也有自己的UI,不过功能没有grafana强大

原理

notion image

镜像安装

启动prom/node-exporter

建立目录

启动Prometheus

编辑Prometheus配置文件prometheus.yml,路径修改为/Users/个人用户名称/devlop/prometheusTest/prometheus/prometheus.yml
写入内容
启动

启动Grafana

启动Grafana前,先设置grafana-storage文件夹的权限
启动
默认账号密码:admin

Grafana 配置 Prometheus

notion image

访问地址

Java Micrometer

SpringBoot接入

Prometheus导入

Grafana配置面板

搜索导入Micrometer
Grafana Web——>右上角+号——>Import dashboard——>输入Micrometer的ID为4701,直接导入
减少统计时间,比如切换为 5 分钟重新看
notion image
notion image

Node Exporter 主机监控

ID 8919
notion image
Loading...
文章列表
王小扬博客
云原生
Git
Elasticsearch
Apollo
产品
Think
生活技巧
软件开发
计算机网络
CI
DB
设计
缓存
Docker
Node
操作系统
Java
大前端
Nestjs
其他
PHP
AI