Files

3.5 KiB

Human Guide — Observability Stack

For humans monitoring FetcherPay / SquareMCP.


Daily workflow

  1. Open the main dashboard: https://dashboard.fetcherpay.com/d/fetcherpay-health-overview
  2. Scan for red panels.
  3. Ignore the known pre-existing issues:
    • fetcherpay-leads-api / fetcherpay-leads-worker ImagePullBackOff
    • nginx-ingress-microk8s-controller restart count slowly climbing
  4. 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

  1. Hover over the "Website Status" row to see which URL is failing.
  2. Open a terminal and test it: curl -I https://<site>.
  3. Check the "Website Response Time" panel — timeout vs fast failure tells you if it is DNS/network vs app crash.
  4. If the site is a K8s service, check the backing pod: microk8s kubectl get pods -n <namespace>.

MySQL or Redis is red

  1. Check the service pod is Running.
  2. Look at the error log panel if available.
  3. For MySQL, it runs in Docker on the host — check docker ps | grep -i mysql.

A pod keeps restarting

  1. Note the namespace/pod from the "Top Container Restarts" panel.
  2. Run: microk8s kubectl describe pod -n <ns> <pod>.
  3. Look at the Events and Last State sections for OOMKilled, Error, or CrashLoopBackOff.
  4. 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

  1. Read the alert summary.
  2. Open Grafana and find the matching metric.
  3. Follow the response steps in 04-alerts-and-response.md.
  4. If it is a known issue, acknowledge and move on.
  5. If it is new, fix it and document it.

Adding a human-readable note to a dashboard

  1. Open the dashboard → Settings (gear icon) → General.
  2. Add a description or tags.
  3. Save with a meaningful message.

Keyboard shortcuts

  • d + s — dashboard settings
  • e — edit panel (when focused)
  • v — toggle view mode
  • t — change time range
  • r — 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