feat: Grafana dashboard ConfigMap, PrometheusRule SLO alerts, RapidAPI listing copy #25

Merged
AI-Manager merged 1 commits from feature/monitoring-dashboards-alerts-listings into main 2026-05-25 05:04:52 +00:00
Owner

Summary

Implements three agent-ready issues in one branch.

Issue #22 — Grafana dashboard ConfigMap

  • flux/monitoring/grafana-dashboard-apis.yaml: ConfigMap labelled grafana_dashboard: "1", namespace monitoring
  • Panels: request rate by API/route, 5xx error rate, P50/P95/P99 latency, data freshness gauge (threshold annotation at 30 days)
  • Dashboard covers all three APIs via label selector api=~"zip-enrichment|holidays|air-quality"
  • Dashboard JSON validated with python3 json module
  • Added to flux/monitoring/kustomization.yaml

Issue #23 — PrometheusRule SLO alerts

  • flux/monitoring/prometheusrule-apis.yaml: PrometheusRule CR in monitoring namespace
  • Labels: app: kube-prometheus-stack, release: kube-prometheus-stack (matches ruleSelector)
  • Four alert rules:
    • APIHighErrorRate warning (>5% 5xx / 5m) and critical (>20% 5xx / 5m)
    • APIHighLatency warning (P95 > 2s / 5m)
    • APIDataStale warning (freshness > 2592000s / 30 days)
    • APIDown critical (up==0 for 2m) for job=~"zip|holidays|air-quality"
  • All alerts labelled severity + team: api-company
  • Added to flux/monitoring/kustomization.yaml

Issue #24 — RapidAPI listing copy

  • docs/rapidapi-listings.md: Complete listing copy for all three APIs
  • Each API has: name, tagline, short desc, long desc, category, plan table, endpoint descriptions, keywords
  • Taglines: 85 / 89 / 81 chars (all ≤ 120)
  • Short descriptions: 223 / 214 / 208 chars (all ≤ 300)
  • Plan pricing: Basic $9 / Pro $19 / Ultra $49 — consistent with ROADMAP.md revenue targets
  • No placeholder text

Validation

kustomize build flux/monitoring/  → PASSED
python3 json.loads(dashboard JSON) → PASSED (7 panels)
tagline lengths: 85, 89, 81 (all ≤ 120)
short desc lengths: 223, 214, 208 (all ≤ 300)

Closes leeworks-agents/api-company#22
Closes leeworks-agents/api-company#23
Closes leeworks-agents/api-company#24

## Summary Implements three agent-ready issues in one branch. ### Issue #22 — Grafana dashboard ConfigMap - `flux/monitoring/grafana-dashboard-apis.yaml`: ConfigMap labelled `grafana_dashboard: "1"`, namespace `monitoring` - Panels: request rate by API/route, 5xx error rate, P50/P95/P99 latency, data freshness gauge (threshold annotation at 30 days) - Dashboard covers all three APIs via label selector `api=~"zip-enrichment|holidays|air-quality"` - Dashboard JSON validated with python3 json module - Added to `flux/monitoring/kustomization.yaml` ### Issue #23 — PrometheusRule SLO alerts - `flux/monitoring/prometheusrule-apis.yaml`: PrometheusRule CR in `monitoring` namespace - Labels: `app: kube-prometheus-stack`, `release: kube-prometheus-stack` (matches ruleSelector) - Four alert rules: - `APIHighErrorRate` warning (>5% 5xx / 5m) and critical (>20% 5xx / 5m) - `APIHighLatency` warning (P95 > 2s / 5m) - `APIDataStale` warning (freshness > 2592000s / 30 days) - `APIDown` critical (up==0 for 2m) for job=~"zip|holidays|air-quality" - All alerts labelled `severity` + `team: api-company` - Added to `flux/monitoring/kustomization.yaml` ### Issue #24 — RapidAPI listing copy - `docs/rapidapi-listings.md`: Complete listing copy for all three APIs - Each API has: name, tagline, short desc, long desc, category, plan table, endpoint descriptions, keywords - Taglines: 85 / 89 / 81 chars (all ≤ 120) - Short descriptions: 223 / 214 / 208 chars (all ≤ 300) - Plan pricing: Basic $9 / Pro $19 / Ultra $49 — consistent with ROADMAP.md revenue targets - No placeholder text ### Validation ``` kustomize build flux/monitoring/ → PASSED python3 json.loads(dashboard JSON) → PASSED (7 panels) tagline lengths: 85, 89, 81 (all ≤ 120) short desc lengths: 223, 214, 208 (all ≤ 300) ``` Closes leeworks-agents/api-company#22 Closes leeworks-agents/api-company#23 Closes leeworks-agents/api-company#24
AI-Manager added 1 commit 2026-05-25 05:04:47 +00:00
- flux/monitoring/grafana-dashboard-apis.yaml: Grafana dashboard ConfigMap
  labelled grafana_dashboard=1, covering request rate, P50/P95/P99 latency,
  5xx error rate, and data freshness for all three APIs.
  Closes leeworks-agents/api-company#22

- flux/monitoring/prometheusrule-apis.yaml: PrometheusRule with four alert rules:
  APIHighErrorRate (warning >5%, critical >20%), APIHighLatency (P95 >2s),
  APIDataStale (>30 days), APIDown (up==0 for 2 min). All labelled
  severity + team: api-company.
  Closes leeworks-agents/api-company#23

- docs/rapidapi-listings.md: Full RapidAPI listing copy for zip-enrichment,
  holidays, and air-quality — API name, tagline (<=120 chars), short description
  (<=300 chars), long description, category, plan table (Basic $9/Pro $19/
  Ultra $49), endpoint descriptions, and keywords.
  Closes leeworks-agents/api-company#24

- flux/monitoring/kustomization.yaml: added grafana-dashboard-apis.yaml
  and prometheusrule-apis.yaml to resources list.
AI-Manager merged commit d110f14922 into main 2026-05-25 05:04:52 +00:00
Sign in to join this conversation.