vault backup: 2024-03-26 12:10:08

This commit is contained in:
2024-03-26 12:10:08 +08:00
parent 7769ab8998
commit e72751b4fa
6 changed files with 24282 additions and 4 deletions

View File

@@ -16,7 +16,7 @@
# `docker-compose.yml`
```yaml highlight:"5"
```yaml
services:
grafana:
image: grafana/grafana:latest
@@ -55,7 +55,7 @@ services:
# `datasources.yaml`
```yaml highlight:"6"
```yaml
# datasources.yaml
apiVersion: 1
datasources:
@@ -69,7 +69,7 @@ datasources:
# `prometheus.yml`
```yaml highlight:"11"
```yaml
# prometheus.yml
global:
scrape_interval: 15s # Set the scrape interval to every 15 seconds. Default is every 1 minute.
@@ -84,3 +84,14 @@ scrape_configs:
```
要注意 `- targets: ['192.168.1.24:8084']` 這一行,要更新 IP 位置。
# Grafana template
template ID: `1860`
# 參考
- [Docker Compose 部署监控系统 Prometheus + Grafana + Node Exporter + Cadvisor-腾讯云开发者社区-腾讯云](https://cloud.tencent.com/developer/article/2016801)
- [基于docker-compose快速搭建Prometheus+Grafana监控系统 - 掘金](https://juejin.cn/post/7320525843737460771)
- [Deep Dive into Using Docker Compose for Monitoring with Prometheus, Grafana, and node_exporter | by mefengl | Medium](https://medium.com/@mefengl/unknown-title-95cb5a15ce83)
- [使用docker-compose快速部署Prometheus+grafana环境_docker-compose安装grafana-CSDN博客](https://blog.csdn.net/weixin_45070882/article/details/132104496)
- [Dashboards | Grafana Labs](https://grafana.com/grafana/dashboards/?collector=nodeexporter&dataSource=prometheus)