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
+12
View File
@@ -0,0 +1,12 @@
apiVersion: 1
providers:
- name: LisgloSIPS
orgId: 1
folder: LisgloSIPS
type: file
disableDeletion: true
editable: false
options:
path: /etc/grafana/provisioning/dashboards/lisglosips
@@ -0,0 +1,32 @@
apiVersion: 1
deleteDatasources:
- name: Prometheus
orgId: 1
- name: HOMER PostgreSQL
orgId: 1
datasources:
- name: Prometheus
uid: lisglosips-prometheus
type: prometheus
access: proxy
url: http://127.0.0.1:9090
isDefault: true
editable: false
- name: HOMER PostgreSQL
uid: lisglosips-homer-postgres
type: postgres
access: proxy
url: 127.0.0.1:5432
user: homer_user
database: homer_data
editable: false
jsonData:
sslmode: disable
postgresVersion: 1600
timescaledb: false
secureJsonData:
password: $HOMER_DB_PASSWORD
@@ -0,0 +1,13 @@
GRAFANA_USER=grafana
GRAFANA_GROUP=grafana
GRAFANA_HOME=/usr/share/grafana
LOG_DIR=/var/log/grafana
DATA_DIR=/data/grafana
MAX_OPEN_FILES=10000
CONF_DIR=/etc/grafana
CONF_FILE=/etc/grafana/grafana.ini
RESTART_ON_UPGRADE=true
PLUGINS_DIR=/data/grafana/plugins
PROVISIONING_CFG_DIR=/etc/grafana/provisioning
PID_FILE_DIR=/run/grafana
@@ -0,0 +1,35 @@
{
"annotations": {"list": []},
"editable": false,
"panels": [
{
"type": "stat",
"title": "Targets Up",
"datasource": {"type": "prometheus", "uid": "lisglosips-prometheus"},
"targets": [{"expr": "sum(up)", "refId": "A"}],
"gridPos": {"h": 8, "w": 8, "x": 0, "y": 0}
},
{
"type": "timeseries",
"title": "A/B CPU Usage",
"datasource": {"type": "prometheus", "uid": "lisglosips-prometheus"},
"targets": [{"expr": "100 - avg by (server) (rate(node_cpu_seconds_total{mode=\"idle\"}[5m])) * 100", "legendFormat": "{{server}}", "refId": "A"}],
"gridPos": {"h": 8, "w": 16, "x": 8, "y": 0}
},
{
"type": "timeseries",
"title": "A/B Memory Usage",
"datasource": {"type": "prometheus", "uid": "lisglosips-prometheus"},
"targets": [{"expr": "100 * (1 - node_memory_MemAvailable_bytes / node_memory_MemTotal_bytes)", "legendFormat": "{{server}}", "refId": "A"}],
"gridPos": {"h": 8, "w": 24, "x": 0, "y": 8}
}
],
"schemaVersion": 41,
"tags": ["lisglosips", "infrastructure"],
"templating": {"list": []},
"time": {"from": "now-1h", "to": "now"},
"title": "LisgloSIPS Infrastructure Overview",
"uid": "lisglosips-infra-overview",
"version": 1
}