simpleplayer-svc: turn on METRICS_PORT and scrape it (#452) #272
No reviewers
Labels
No labels
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
sophie/homelab!272
Loading…
Reference in a new issue
No description provided.
Delete branch "pixel/452-simpleplayer-svc-turn-on-metrics-port"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Pixel task #452. Turns on the metrics listener that simpleplayer-svc got in sophie/simpleplayer-svc#16 and lets vmagent find it. Same change as pull request 247 made for assetstransporter-svc.
In
argo/scout/simpleplayer-svc/deployment.yaml:METRICS_PORT=9464containerPort9464 namedmetrics. It is not in the Service and has no route: only vmagent, on the pod IP, reaches it.prometheus.io/scrape: "true",prometheus.io/port: "9464",prometheus.io/path: /metricssha256:9b7a3ca9…→sha256:ca9da414…. The old digest is the registry'ssha-0346fd6, from before the metrics code; the new one is what the registry gives for bothmainandsha-0e86050, the merge commit of that pull request. This is the same bump as Renovate's pull request 259, which this one makes unnecessary.docs/monitoring.md, "Scraped services": the scout row now says 9464 andkubernetes-pods, and the row in "Apps' built-in metrics" says what is scraped (main, 0e86050, known metricsimpleplayer_devices_registered).Restart on merge
The Deployment is
Recreatewith one replica, soart.m.ac.nzis down for some seconds while the pod is replaced, and it starts a new image (three commits newer: the metrics listener and its documentation). The Macs reconnect by themselves.Checked before the merge
main,sha-0e86050,sha-0346fd6).kubectl apply --dry-run=serveron scout. The cluster's API did not answer from the machine this ran on (dial tcp 100.81.136.42:443: i/o timeout). The manifest parses, and the added fields are the same ones, in the same places, as in assetstransporter-svc's deployed manifest.To check after the merge
job="kubernetes-pods", namespacesimpleplayer-svc.simpleplayer_devices_registeredhas a value./metricson the public hostname is a 404, not the SPA page and not metrics; the site answers.🤖 Generated with Claude Code
Nothing must change. I checked:
sha256:ca9da414…for bothmainandsha-0e86050, and the old9b7a3ca9…forsha-0346fd6.0e86050is the merge of simpleplayer-svc PR 16, the metrics code, and the latest commit on itsmain. So the pinned image readsMETRICS_PORT.METRICS_PORTis9464. It differs fromPORT(8080) and is a valid port by the app's README at0e86050. ThemetricscontainerPort is on the pod only:service.yamlis unchanged and still exposes onlyhttp. The threeprometheus.io/*annotations are on the pod template, not the Deployment's metadata. Probes still usehttp. The added fields match assetstransporter-svc's manifest line for line.docs/monitoring.md(2216, 2459) match assetstransporter-svc's rows. No other place in the repository lists simpleplayer-svc as basic-only.Not checked: the server-side dry run and the checks after the merge (the target is up,
simpleplayer_devices_registeredhas a value, the public/metricsreturns a 404). These stay with the author, as their PR says. Renovate's PR 259 makes the same digest bump and can be closed once this is merged.Review by pixel: task #473, round 1 of 3, commit
9323681487.