declarative relay deployment on hetzner relay-eval.waow.tech
atproto relay
14
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix: aggregate pod metrics in dashboards with sum()/max()

prevents duplicate legend entries from old+new pods after restarts

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

zzstoatzz f0156ba2 5191eadb

+5 -5
+2 -2
deploy/relay-dashboard.json
··· 195 195 }, 196 196 "targets": [ 197 197 { 198 - "expr": "container_memory_working_set_bytes{namespace=\"relay\",pod=~\"relay-[a-z0-9].*\",container=\"main\"}", 198 + "expr": "sum(container_memory_working_set_bytes{namespace=\"relay\",pod=~\"relay-[a-z0-9].*\",container=\"main\"})", 199 199 "legendFormat": "working set", 200 200 "refId": "A" 201 201 }, 202 202 { 203 - "expr": "kube_pod_container_resource_limits{namespace=\"relay\",pod=~\"relay-[a-z0-9].*\",container=\"main\",resource=\"memory\"}", 203 + "expr": "max(kube_pod_container_resource_limits{namespace=\"relay\",pod=~\"relay-[a-z0-9].*\",container=\"main\",resource=\"memory\"})", 204 204 "legendFormat": "limit", 205 205 "refId": "B" 206 206 }
+3 -3
deploy/zlay-dashboard.json
··· 142 142 }, 143 143 "targets": [ 144 144 { 145 - "expr": "container_memory_working_set_bytes{namespace=\"zlay\",pod=~\"zlay.*\",container=\"main\"}", 145 + "expr": "sum(container_memory_working_set_bytes{namespace=\"zlay\",pod=~\"zlay.*\",container=\"main\"})", 146 146 "legendFormat": "working set", 147 147 "refId": "A" 148 148 }, 149 149 { 150 - "expr": "kube_pod_container_resource_limits{namespace=\"zlay\",pod=~\"zlay.*\",container=\"main\",resource=\"memory\"}", 150 + "expr": "max(kube_pod_container_resource_limits{namespace=\"zlay\",pod=~\"zlay.*\",container=\"main\",resource=\"memory\"})", 151 151 "legendFormat": "limit", 152 152 "refId": "B" 153 153 } ··· 171 171 }, 172 172 "targets": [ 173 173 { 174 - "expr": "container_threads{namespace=\"zlay\",pod=~\"zlay-[a-z0-9].*\",container=\"main\"}", 174 + "expr": "sum(container_threads{namespace=\"zlay\",pod=~\"zlay-[a-z0-9].*\",container=\"main\"})", 175 175 "legendFormat": "threads", 176 176 "refId": "A" 177 177 }