Skip to content

Commit

Permalink
Update job name to be more general
Browse files Browse the repository at this point in the history
The job name should really be the same for all metrics published by this
_thing_. We currently have publisher (for the web app) and
publisher-worker for the worker. I think publisher-metrics is probably a
good job name for these specificly metricsy things.
  • Loading branch information
richardTowers committed Aug 2, 2024
1 parent 0a76c36 commit f40059d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion script/mail_fetcher
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,6 @@ end

Rails.logger.info "Finished running MailFetcher in #{Rails.env} mode - #{Time.zone.now.utc}"
Prometheus::Client::Push.new(
job: "publisher_fact_check_emails",
job: "publisher-metrics",
gateway: ENV.fetch("PROMETHEUS_PUSHGATEWAY_URL"),
).add(registry)

0 comments on commit f40059d

Please sign in to comment.