Initial LisgloSIPS V2 implementation

This commit is contained in:
hectorzhao
2026-06-22 10:56:38 +08:00
commit 5fa1bd35e9
303 changed files with 35644 additions and 0 deletions
@@ -0,0 +1,2 @@
ARGS=--web.listen-address=127.0.0.1:9100 --collector.systemd --collector.processes
@@ -0,0 +1,2 @@
ARGS=--config.file=/etc/prometheus/prometheus.yml --storage.tsdb.path=/data/prometheus --storage.tsdb.retention.time=15d --storage.tsdb.retention.size=10GB --web.listen-address=127.0.0.1:9090 --web.enable-lifecycle
@@ -0,0 +1,40 @@
global:
scrape_interval: 15s
evaluation_interval: 15s
external_labels:
environment: development
platform: lisglosips
rule_files:
- /etc/prometheus/rules/*.yml
scrape_configs:
- job_name: prometheus
static_configs:
- targets: ["127.0.0.1:9090"]
- job_name: node
static_configs:
- targets: ["100.90.90.90:9100"]
labels:
server: server-a
- targets: ["127.0.0.1:9100"]
labels:
server: server-b
- job_name: mysql
static_configs:
- targets: ["127.0.0.1:9104"]
- job_name: postgresql_homer
static_configs:
- targets: ["127.0.0.1:9187"]
- job_name: redis
static_configs:
- targets: ["127.0.0.1:9121"]
- job_name: heplify_server
static_configs:
- targets: ["127.0.0.1:9096"]
@@ -0,0 +1,19 @@
groups:
- name: lisglosips-base
rules:
- alert: LisgloSIPSTargetDown
expr: up == 0
for: 2m
labels:
severity: warning
annotations:
summary: "Prometheus target {{ $labels.instance }} is down"
- alert: LisgloSIPSDiskLow
expr: 100 * node_filesystem_avail_bytes{fstype!~"tmpfs|overlay"} / node_filesystem_size_bytes{fstype!~"tmpfs|overlay"} < 15
for: 10m
labels:
severity: warning
annotations:
summary: "Disk free space below 15% on {{ $labels.instance }}"