Skip to content
GreenKube

Historical Analysis

GreenKube stores all collected metrics over time, enabling powerful historical analysis for trend detection, compliance reporting, and capacity planning.

Every collection cycle captures a complete snapshot of your cluster:

  • Per-pod resource usage
  • Per-node power estimation
  • Carbon intensity at collection time
  • Cost data from OpenCost

These snapshots are stored in your chosen backend (PostgreSQL, SQLite, or Elasticsearch) and are available for querying at any time.

Query any time period through the API, CLI, or dashboard:

Terminal window
# Last 24 hours
greenkube report --period=24h
# Last 7 days
greenkube report --period=7d
# Custom range
greenkube report --from=2024-01-01 --to=2024-01-31
# Last quarter
greenkube report --period=90d

Metrics can be grouped at different granularities:

GroupingUse Case
HourlyDetailed analysis, peak detection
DailyWeekly trends, daily reports
WeeklyMonth-over-month comparison
MonthlyQuarterly/annual CSRD reports
YearlyLong-term trend analysis
Terminal window
# Daily carbon emissions for January
greenkube report --from=2024-01-01 --to=2024-01-31 --group-by=daily

Standard CSV output compatible with Excel, Google Sheets, and BI tools:

Terminal window
greenkube report --format=csv --output=report.csv

Structured JSON for programmatic consumption:

Terminal window
greenkube report --format=json --output=report.json

Full access via REST API for integration with dashboards and pipelines:

Terminal window
GET /api/v1/timeseries?from=2024-01-01&to=2024-01-31&group_by=daily

Generate monthly and quarterly emission reports with:

  • Total kgCO₂e per namespace/workload
  • Comparison with previous period
  • Breakdown by Scope (2 and 3)

Analyze historical trends to:

  • Predict future resource needs
  • Identify growth patterns
  • Plan infrastructure scaling

Break down cloud spending by:

  • Team / namespace
  • Application / service
  • Time period
  • Provider / region

Measure the impact of optimization actions:

  • Before/after comparison
  • Savings tracking over time
  • ROI calculation on green initiatives

The dashboard includes interactive time-series charts with:

  • Drag-to-zoom on time ranges
  • Overlay comparison (this week vs. last week)
  • Stacked area/bar views for namespace breakdown
  • Real-time updates as new data arrives