Skip to content

feat(infra): export prometheus metrics to s3 - #310

Merged
xDarksome merged 22 commits into
mainfrom
feat/infra-prometheus-to-s3-parquet
Jan 15, 2026
Merged

feat(infra): export prometheus metrics to s3#310
xDarksome merged 22 commits into
mainfrom
feat/infra-prometheus-to-s3-parquet

Conversation

@xDarksome

@xDarksome xDarksome commented Jan 7, 2026

Copy link
Copy Markdown
Member

Description

Export Prometheus metrics to s3 using prom2parquet.
For now applied only to staging.

How Has This Been Tested?

Manually.

Due Diligence

  • Breaking change
  • Requires a documentation update
  • Requires a e2e/integration test update

Copilot AI review requested due to automatic review settings January 7, 2026 14:28

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds functionality to export Prometheus metrics to S3 using the prom2parquet tool. The changes refactor the service module to support multiple containers per ECS task, enabling the deployment of sidecar containers alongside primary services.

Key Changes

  • Refactored the service module to support a list of containers instead of a single container configuration, enabling multi-container ECS task definitions
  • Added prom2parquet as an optional sidecar container to the Prometheus service for S3 export functionality
  • Updated all existing service configurations (db, node, prometheus, grafana) to use the new containers list structure

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 4 comments.

File Description
infra/testnet/main.tf Adds s3_export flag and prom2parquet_image configuration to enable S3 metrics export for the testnet environment
infra/modules/service/main.tf Refactors variable schema and task definition to support multiple containers per service, updates port handling and container definition logic
infra/modules/node-operator/main.tf Adds S3 export configuration variables, updates all service modules (db, node, prometheus, grafana) to use new containers structure, adds prom2parquet sidecar to prometheus when S3 export is enabled

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread infra/modules/service/main.tf Outdated
Comment thread infra/modules/service/main.tf
Comment thread infra/modules/node-operator/main.tf
Comment thread infra/modules/node-operator/main.tf Outdated
@xDarksome
xDarksome marked this pull request as draft January 7, 2026 14:38
@xDarksome

Copy link
Copy Markdown
Member Author

@claude review

@claude

claude Bot commented Jan 9, 2026

Copy link
Copy Markdown

Claude encountered an error —— View job


I'll analyze this and get back to you.

@xDarksome
xDarksome marked this pull request as ready for review January 15, 2026 09:54
@xDarksome
xDarksome requested a review from heilhead January 15, 2026 10:01
@xDarksome
xDarksome requested a review from mario-reown January 15, 2026 10:01
@xDarksome
xDarksome merged commit 9ff66d0 into main Jan 15, 2026
13 checks passed
@xDarksome
xDarksome deleted the feat/infra-prometheus-to-s3-parquet branch January 15, 2026 10:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants