From 482c484e6b62cc36b3b529ac2f741beb5e4aec13 Mon Sep 17 00:00:00 2001
From: Sheogorath <sheogorath@shivering-isles.com>
Date: Fri, 27 Oct 2023 17:48:33 +0200
Subject: [PATCH] fix(mastodon): set scrape interval explicitly to null

This patch drops the custom scrape interval and replaces it with the
default from the cluster's Prometheus instance. This helps to keep
metrics better in check and resolves the issues with trying to calculate
rates over 1m in the dashboard.
---
 apps/base/mastodon/sidekiq-monitor.yaml | 1 +
 1 file changed, 1 insertion(+)

diff --git a/apps/base/mastodon/sidekiq-monitor.yaml b/apps/base/mastodon/sidekiq-monitor.yaml
index ea251d4b0..f04cce672 100644
--- a/apps/base/mastodon/sidekiq-monitor.yaml
+++ b/apps/base/mastodon/sidekiq-monitor.yaml
@@ -35,6 +35,7 @@ spec:
       REDIS_HOST: mastodon-redis-master
     serviceMonitor:
       enabled: true
+      interval: null
     # Used to match the Upstream UID/GID
     securityContext:
       runAsNonRoot: true
-- 
GitLab