Skip to content

Conversation

@NikolayS
Copy link
Contributor

No description provided.

@NikolayS NikolayS changed the title Claude/add e2e grafana tests qcd v0 Claude/add e2e Grafana tests Dec 22, 2025
Add end-to-end tests to verify the Grafana monitoring stack correctly
extracts and displays basic PostgreSQL metrics:

- tests/grafana/test_grafana_metrics.py: Python test that verifies:
  - Database size metric (pgwatch_db_size_size_b)
  - Transaction commit/rollback metrics
  - Tuple read/write metrics
  - Grafana datasources and dashboards are loaded
  - Dashboard queries execute correctly via Grafana proxy

- tests/grafana/run_test.sh: Bash runner for local testing with
  optional CI mode that starts the monitoring stack

- .gitlab-ci.yml: New grafana:e2e:dind job that runs on main and
  feature/* branches using Docker-in-Docker
Add verify_dashboard_panels_data() that:
- Executes actual dashboard panel queries through Grafana API
- Validates data is returned (not empty)
- Checks values meet minimum thresholds (e.g., DB size > 1MB)
- Verifies transaction commits, tuples returned/inserted are non-zero

This ensures dashboards would actually visualize real data,
not just that metrics exist in Prometheus.
@NikolayS NikolayS force-pushed the claude/add-e2e-grafana-tests-qcdV0 branch from 91423e0 to d70cfdf Compare December 22, 2025 18:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants