3.5 KiB
3.5 KiB
Human Guide — Observability Stack
For humans monitoring FetcherPay / SquareMCP.
Daily workflow
- Open the main dashboard: https://dashboard.fetcherpay.com/d/fetcherpay-health-overview
- Scan for red panels.
- Ignore the known pre-existing issues:
fetcherpay-leads-api/fetcherpay-leads-workerImagePullBackOffnginx-ingress-microk8s-controllerrestart count slowly climbing
- Anything else red → investigate using this runbook.
Grafana basics
- Login:
admin/admin_secure_2024 - Time picker: top-right. Default is "Last 1 hour". Use "Last 6 hours" or "Last 24 hours" for trends.
- Refresh: next to the time picker. Set to 30s for live views, Off when investigating history.
- Variables: some dashboards have dropdowns at the top (namespace, pod, job).
- Panel menu: click the panel title → Edit to see the query, Inspect → Data to see raw values.
Reading the health overview dashboard
| Section | What to watch |
|---|---|
| Websites | "Websites Healthy %" should be 100. Red rows in "Website Status" mean a site is down or returning non-2xx. |
| Kubernetes Cluster | "Pods Running Ratio" should be close to 1. "Ingress Controller Restarts" slowly climbing is known; a sudden spike is bad. |
| Databases & Caches | MySQL and Redis panels should be green/healthy. Memory graphs show normal usage over time. |
| Infrastructure & Observability | Prometheus, OTel collector, Blackbox exporter should be up. "OTel Metrics Sent / sec" should be > 0. |
Investigating a problem
A website is red
- Hover over the "Website Status" row to see which URL is failing.
- Open a terminal and test it:
curl -I https://<site>. - Check the "Website Response Time" panel — timeout vs fast failure tells you if it is DNS/network vs app crash.
- If the site is a K8s service, check the backing pod:
microk8s kubectl get pods -n <namespace>.
MySQL or Redis is red
- Check the service pod is Running.
- Look at the error log panel if available.
- For MySQL, it runs in Docker on the host — check
docker ps | grep -i mysql.
A pod keeps restarting
- Note the namespace/pod from the "Top Container Restarts" panel.
- Run:
microk8s kubectl describe pod -n <ns> <pod>. - Look at the Events and Last State sections for OOMKilled, Error, or CrashLoopBackOff.
- If logs are needed, use the TLS skip flag:
microk8s kubectl logs -n <ns> <pod> --previous --insecure-skip-tls-verify-backend=true.
You get an email/Slack alert
- Read the alert summary.
- Open Grafana and find the matching metric.
- Follow the response steps in
04-alerts-and-response.md. - If it is a known issue, acknowledge and move on.
- If it is new, fix it and document it.
Adding a human-readable note to a dashboard
- Open the dashboard → Settings (gear icon) → General.
- Add a description or tags.
- Save with a meaningful message.
Keyboard shortcuts
d + s— dashboard settingse— edit panel (when focused)v— toggle view modet— change time ranger— refresh
Who to notify
| Issue | Notify |
|---|---|
| Site-wide outage | #alerts Slack + garfield@squaremcp.com |
| Hermes API down | Engineering + product |
| MySQL/Redis down | Engineering immediately |
| SSL cert < 7 days | Engineering |
| Slow website response | Engineering + infrastructure |
| Known issues unchanged | No action needed unless worsening |