This commit is contained in:
nyyu 2023-09-23 07:31:56 +02:00
parent 9b44129047
commit d9facf225f
3 changed files with 6 additions and 6 deletions

View File

@ -107,13 +107,13 @@ groups:
description: "Disk latency is growing (read operations > 100ms)\n VALUE = {{ $value }}\n LABELS = {{ $labels }}"
- alert: HostUnusualDiskWriteLatency
expr: rate(node_disk_write_time_seconds_total[1m]) / rate(node_disk_writes_completed_total[1m]) > 0.1 and rate(node_disk_writes_completed_total[1m]) > 0
expr: rate(node_disk_write_time_seconds_total[1m]) / rate(node_disk_writes_completed_total[1m]) > 0.25 and rate(node_disk_writes_completed_total[1m]) > 0
for: 2m
labels:
severity: warning
annotations:
summary: Host unusual disk write latency (instance {{ $labels.instance }})
description: "Disk latency is growing (write operations > 100ms)\n VALUE = {{ $value }}\n LABELS = {{ $labels }}"
description: "Disk latency is growing (write operations > 250ms)\n VALUE = {{ $value }}\n LABELS = {{ $labels }}"
- alert: HostHighCpuLoad
expr: 100 - (avg by(instance) (rate(node_cpu_seconds_total{mode="idle"}[2m])) * 100) > 80

View File

@ -8,7 +8,7 @@ networks:
services:
grafana:
image: grafana/grafana:9.5.7
image: grafana/grafana:10.1.2
container_name: grafana
restart: unless-stopped
volumes:
@ -28,7 +28,7 @@ services:
- "traefik.http.routers.grafana.rule=Host(`grafana.${HOST_SUFFIX}`)"
- "traefik.http.routers.grafana.entrypoints=web"
prometheus:
image: prom/prometheus:v2.46.0
image: prom/prometheus:v2.47.0
container_name: prometheus
restart: unless-stopped
volumes:
@ -54,7 +54,7 @@ services:
- "traefik.http.routers.prometheus.rule=Host(`prometheus.${HOST_SUFFIX}`)"
- "traefik.http.routers.prometheus.entrypoints=web"
alertmanager:
image: prom/alertmanager:v0.25.0
image: prom/alertmanager:v0.26.0
container_name: alertmanager
restart: unless-stopped
volumes:

View File

@ -3,7 +3,7 @@ images=$(grep 'image:' docker-compose.yml | grep -v '#' | sed 's/^ *//' | cut -d
for image in $images
do
if [[ $image != gcr* ]]; then
ver=$(curl -s https://registry.hub.docker.com/v2/repositories/${image}/tags | jq -r '[.results[] | select(.name | contains("ubuntu") | not) | select(.name | contains("main") | not ) | select(.name | contains("master") | not ) | select(.name | contains("latest") | not) | select(.name | contains("rc") | not) | select(.name | contains("."))] | sort_by(.name) | reverse | first | .name')
ver=$(curl -s https://registry.hub.docker.com/v2/repositories/${image}/tags | jq -r '[.results[] | select(.name | contains("ubuntu") | not) | select(.name | contains("main") | not ) | select(.name | contains("master") | not ) | select(.name | contains("latest") | not) | select(.name | contains("rc") | not) | select(.name | contains("."))] | first | .name')
echo "$image:$ver"
sed -i "s#image: $image:.*#image: $image:$ver#" docker-compose.yml
fi