Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/baerwang/prometheus
monitor k3s and pods
https://github.com/baerwang/prometheus
alerts grafana grafana-dashboard k3s k3s-cluster monitor pods postgresql postgresql-exporter prometheus
Last synced: 28 days ago
JSON representation
monitor k3s and pods
- Host: GitHub
- URL: https://github.com/baerwang/prometheus
- Owner: baerwang
- Created: 2024-07-12T15:11:17.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2024-07-13T01:05:27.000Z (4 months ago)
- Last Synced: 2024-09-28T15:23:27.373Z (about 1 month ago)
- Topics: alerts, grafana, grafana-dashboard, k3s, k3s-cluster, monitor, pods, postgresql, postgresql-exporter, prometheus
- Homepage:
- Size: 15.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 监控k3s集群和Pods
# Prometheus 模版和配置文件
[alert 通知指标规则汇总](https://samber.github.io/awesome-prometheus-alerts/)
## alert 通知企业微信
## 使用psql-exporter
[docs](https://github.com/prometheus-community/postgres_exporter)
[download](https://github.com/prometheus-community/postgres_exporter/releases)
### 为了PG的安全这里使用的是本地("local" is for Unix),需要加上host代表
#### 这里用临时环境变量运行,不把超级管理密码记录到history
```shell
export DATA_SOURCE_NAME="postgresql://postgres:password@:48885/postgres?sslmode=disable&host=/var/run/postgresql"
```#### 运行
```shell
./postgres_exporter --web.listen-address :1111
```