Skip to content

Export reporting API totals to Prometheus (hourly job)#6153

Draft
MartinVanIJcken wants to merge 1 commit intonextfrom
track-reporting-totals-in-prometheus
Draft

Export reporting API totals to Prometheus (hourly job)#6153
MartinVanIJcken wants to merge 1 commit intonextfrom
track-reporting-totals-in-prometheus

Conversation

@MartinVanIJcken
Copy link
Copy Markdown
Contributor

Same pattern as existing Prometheus exports: Puma uses EXPORT_PUMA_METRICS and PrometheusExporter::Instrumentation::Puma (config/puma.rb); Sidekiq uses EXPORT_SIDEKIQ_METRICS and PrometheusExporter::Instrumentation for process, queues and stats (config/initializers/sidekiq.rb). Both push to the same exporter via PrometheusExporter::Client.default.

This job adds reporting API totals as gauges, controlled by EXPORT_REPORTING_METRICS, using the same client to register and observe. Intended for the ops service where the exporter runs alongside Sidekiq. Schedule in config/sidekiq.yml hourly; spec covers guards and observations.

Screenshots

Pre-release tasks

  • ...

Post-release tasks

  • ...

@MartinVanIJcken MartinVanIJcken force-pushed the track-reporting-totals-in-prometheus branch from a282dff to f04696a Compare March 3, 2026 09:56
Same pattern as existing Prometheus exports: Puma uses EXPORT_PUMA_METRICS and
PrometheusExporter::Instrumentation::Puma (config/puma.rb); Sidekiq uses
EXPORT_SIDEKIQ_METRICS and PrometheusExporter::Instrumentation for process,
queues and stats (config/initializers/sidekiq.rb). Both push to the same
exporter (bin/prometheus_exporter on port 9394) via PrometheusExporter::Client.default.

This job adds reporting API totals as gauges, gated by EXPORT_REPORTING_METRICS,
using the same client to register and observe. Intended for the ops service
where the exporter runs alongside Sidekiq. Schedule in config/sidekiq.yml
hourly; spec covers guards and observations.
@MartinVanIJcken MartinVanIJcken force-pushed the track-reporting-totals-in-prometheus branch from f04696a to 680a300 Compare March 3, 2026 10:04
@thomasleese
Copy link
Copy Markdown
Contributor

Following further discussions, we think it makes more sense to use the CloudWatch API directly to export application-level metrics like these. See #6498 for an example of this.

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.

2 participants