kitestacks-homelab/apps/forgejo/uptime-kuma/kitestacks-cron.yaml

172 lines
3.8 KiB
YAML

apiVersion: v1
kind: ConfigMap
metadata:
name: kitestacks-monitors
namespace: monitoring
data:
monitors.json: |
[
{
"name": "Open Web UI",
"type": "http",
"method": "GET",
"url": "https://www.kitestacks.com",
"interval": 60,
"retries": 3
},
{
"name": "Auth",
"type": "http",
"method": "GET",
"url": "https://auth.kitestacks.com",
"interval": 60,
"retries": 3
},
{
"name": "Kavita",
"type": "http",
"method": "GET",
"url": "http://kavita.kitestacks.com:5000",
"interval": 60,
"retries": 3
},
{
"name": "Tasks",
"type": "http",
"method": "GET",
"url": "http://tasks.kitestacks.com:8080",
"interval": 60,
"retries": 3
},
{
"name": "AI",
"type": "http",
"method": "GET",
"url": "http://ai.kitestacks.com:3100",
"interval": 60,
"retries": 3
},
{
"name": "Forgejo",
"type": "http",
"method": "GET",
"url": "http://gitforge.kitestacks.com:3006",
"interval": 60,
"retries": 3
},
{
"name": "Linkding",
"type": "http",
"method": "GET",
"url": "http://links.kitestacks.com:9005",
"interval": 60,
"retries": 3
},
{
"name": "Grafana",
"type": "http",
"method": "GET",
"url": "http://grafana.kitestacks.com:3150",
"interval": 60,
"retries": 3
},
{
"name": "OpenProject",
"type": "http",
"method": "GET",
"url": "http://openproject.kitestacks.com:8080",
"interval": 60,
"retries": 3
},
{
"name": "Prometheus",
"type": "tcp",
"host": "prometheus.kitestacks.com",
"port": 9090,
"interval": 60,
"retries": 3
},
{
"name": "Node Exporter",
"type": "tcp",
"host": "node-exporter.kitestacks.com",
"port": 9100,
"interval": 60,
"retries": 3
},
{
"name": "Pixel 4",
"type": "ping",
"host": "192.168.1.201",
"interval": 60,
"retries": 3
},
{
"name": "Lenovo T14",
"type": "ping",
"host": "192.168.1.205",
"interval": 60,
"retries": 3
},
{
"name": "Lenovo T14s",
"type": "ping",
"host": "192.168.1.206",
"interval": 60,
"retries": 3
},
{
"name": "Gaming Desktop",
"type": "ping",
"host": "192.168.1.207",
"interval": 60,
"retries": 3
},
{
"name": "Tesla Model Y",
"type": "ping",
"host": "192.168.1.208",
"interval": 60,
"retries": 3
},
{
"name": "Mom's HP Laptop",
"type": "ping",
"host": "192.168.1.209",
"interval": 60,
"retries": 3
},
{
"name": "Uptime Kuma",
"type": "http",
"method": "GET",
"url": "https://status.kitestacks.com",
"interval": 60,
"retries": 3
}
]
---
apiVersion: batch/v1
kind: CronJob
metadata:
name: kitestacks-monitors-check
namespace: monitoring
spec:
schedule: "*/5 * * * *"
jobTemplate:
spec:
template:
spec:
containers:
- name: monitor-check
image: python:3.12-slim
command: ["python3", "/scripts/kitestacks_check.py"]
volumeMounts:
- name: monitors
mountPath: /scripts
restartPolicy: OnFailure
volumes:
- name: monitors
configMap:
name: kitestacks-monitors