Staging instance, all changes can be removed at any time

Skip to content

counters: Activate sentry

Antoine R. Dumont requested to merge counters-activate-sentry into production

It was not activated by default for some reason.

helm diff
------------- diff for environment staging namespace swh -------------

No differences


------------- diff for environment staging namespace swh-cassandra -------------

--- /tmp/swh-chart.swh.AWFIn4gg/staging-swh-cassandra.before    2024-05-15 11:48:44.518036025 +0200
+++ /tmp/swh-chart.swh.AWFIn4gg/staging-swh-cassandra.after     2024-05-15 11:48:45.082167625 +0200
@@ -18230,20 +18230,33 @@
             - name: STATSD_HOST
               value: prometheus-statsd-exporter
             - name: STATSD_PORT
               value: "9125"
             - name: STATSD_TAGS
               value: deployment:counters-journal-client
             - name: SWH_CONFIG_FILENAME
               value: /etc/swh/config.yml
             - name: LOG_LEVEL
               value: INFO
+            - name: SWH_SENTRY_ENVIRONMENT
+              value: staging
+            - name: SWH_MAIN_PACKAGE
+              value: swh.counters
+            - name: SWH_SENTRY_DSN
+              valueFrom:
+                secretKeyRef:
+                  name: common-secrets
+                  key: counters-sentry-dsn
+                  # if the setting doesn't exist, sentry issue pushes will be disabled
+                  optional: false
+            - name: SWH_SENTRY_DISABLE_LOGGING_EVENTS
+              value: "true"
           imagePullPolicy: IfNotPresent
           volumeMounts:
           - name: configuration
             mountPath: /etc/swh
       volumes:
       - name: configuration
         emptyDir: {}
       - name: configuration-template
         configMap:
           name: counters-journal-client-configuration-template
@@ -18354,20 +18367,33 @@
             - name: TIMEOUT
               value: "10"
             - name: STATSD_HOST
               value: prometheus-statsd-exporter
             - name: STATSD_PORT
               value: "9125"
             - name: STATSD_TAGS
               value: deployment:counters-rpc
             - name: LOG_LEVEL
               value: INFO
+            - name: SWH_SENTRY_ENVIRONMENT
+              value: staging
+            - name: SWH_MAIN_PACKAGE
+              value: swh.counters
+            - name: SWH_SENTRY_DSN
+              valueFrom:
+                secretKeyRef:
+                  name: common-secrets
+                  key: counters-sentry-dsn
+                  # if the setting doesn't exist, sentry issue pushes will be disabled
+                  optional: false
+            - name: SWH_SENTRY_DISABLE_LOGGING_EVENTS
+              value: "true"
           volumeMounts:
           - name: configuration
             mountPath: /etc/swh
           - name: staticdata
             mountPath: /srv/softwareheritage/counters
           - name: script-utils
             mountPath: /entrypoints
             readOnly: true
       volumes:
       - name: configuration
@@ -30243,20 +30269,33 @@
                 - name: STATSD_HOST
                   value: prometheus-statsd-exporter
                 - name: STATSD_PORT
                   value: "9125"
                 - name: STATSD_TAGS
                   value: deployment:counters-refresh-counters-cache-cronjob
                 - name: SWH_CONFIG_FILENAME
                   value: /etc/swh/config.yml
                 - name: LOG_LEVEL
                   value: INFO
+                - name: SWH_SENTRY_ENVIRONMENT
+                  value: staging
+                - name: SWH_MAIN_PACKAGE
+                  value: swh.counters
+                - name: SWH_SENTRY_DSN
+                  valueFrom:
+                    secretKeyRef:
+                      name: common-secrets
+                      key: counters-sentry-dsn
+                      # if the setting doesn't exist, sentry issue pushes will be disabled
+                      optional: false
+                - name: SWH_SENTRY_DISABLE_LOGGING_EVENTS
+                  value: "true"
               imagePullPolicy: IfNotPresent
               volumeMounts:
               - name: configuration
                 mountPath: /etc/swh
               - name: script-utils
                 mountPath: /cron/bin/
           volumes:
           - name: configuration
             emptyDir: {}
           - name: configuration-template


------------- diff for environment staging namespace swh-cassandra-next-version -------------

--- /tmp/swh-chart.swh.AWFIn4gg/staging-swh-cassandra-next-version.before       2024-05-15 11:48:44.662069620 +0200
+++ /tmp/swh-chart.swh.AWFIn4gg/staging-swh-cassandra-next-version.after        2024-05-15 11:48:45.226201254 +0200
@@ -12824,20 +12824,33 @@
             - name: STATSD_HOST
               value: prometheus-statsd-exporter
             - name: STATSD_PORT
               value: "9125"
             - name: STATSD_TAGS
               value: deployment:counters-journal-client
             - name: SWH_CONFIG_FILENAME
               value: /etc/swh/config.yml
             - name: LOG_LEVEL
               value: INFO
+            - name: SWH_SENTRY_ENVIRONMENT
+              value: staging
+            - name: SWH_MAIN_PACKAGE
+              value: swh.counters
+            - name: SWH_SENTRY_DSN
+              valueFrom:
+                secretKeyRef:
+                  name: common-secrets
+                  key: counters-sentry-dsn
+                  # if the setting doesn't exist, sentry issue pushes will be disabled
+                  optional: false
+            - name: SWH_SENTRY_DISABLE_LOGGING_EVENTS
+              value: "true"
           imagePullPolicy: IfNotPresent
           volumeMounts:
           - name: configuration
             mountPath: /etc/swh
       volumes:
       - name: configuration
         emptyDir: {}
       - name: configuration-template
         configMap:
           name: counters-journal-client-configuration-template
@@ -12948,20 +12961,33 @@
             - name: TIMEOUT
               value: "10"
             - name: STATSD_HOST
               value: prometheus-statsd-exporter
             - name: STATSD_PORT
               value: "9125"
             - name: STATSD_TAGS
               value: deployment:counters-rpc
             - name: LOG_LEVEL
               value: INFO
+            - name: SWH_SENTRY_ENVIRONMENT
+              value: staging
+            - name: SWH_MAIN_PACKAGE
+              value: swh.counters
+            - name: SWH_SENTRY_DSN
+              valueFrom:
+                secretKeyRef:
+                  name: common-secrets
+                  key: counters-sentry-dsn
+                  # if the setting doesn't exist, sentry issue pushes will be disabled
+                  optional: false
+            - name: SWH_SENTRY_DISABLE_LOGGING_EVENTS
+              value: "true"
           volumeMounts:
           - name: configuration
             mountPath: /etc/swh
           - name: staticdata
             mountPath: /srv/softwareheritage/counters
           - name: script-utils
             mountPath: /entrypoints
             readOnly: true
       volumes:
       - name: configuration
@@ -16685,20 +16711,33 @@
                 - name: STATSD_HOST
                   value: prometheus-statsd-exporter
                 - name: STATSD_PORT
                   value: "9125"
                 - name: STATSD_TAGS
                   value: deployment:counters-refresh-counters-cache-cronjob
                 - name: SWH_CONFIG_FILENAME
                   value: /etc/swh/config.yml
                 - name: LOG_LEVEL
                   value: INFO
+                - name: SWH_SENTRY_ENVIRONMENT
+                  value: staging
+                - name: SWH_MAIN_PACKAGE
+                  value: swh.counters
+                - name: SWH_SENTRY_DSN
+                  valueFrom:
+                    secretKeyRef:
+                      name: common-secrets
+                      key: counters-sentry-dsn
+                      # if the setting doesn't exist, sentry issue pushes will be disabled
+                      optional: false
+                - name: SWH_SENTRY_DISABLE_LOGGING_EVENTS
+                  value: "true"
               imagePullPolicy: IfNotPresent
               volumeMounts:
               - name: configuration
                 mountPath: /etc/swh
               - name: script-utils
                 mountPath: /cron/bin/
           volumes:
           - name: configuration
             emptyDir: {}
           - name: configuration-template


------------- diff for environment production namespace swh -------------

--- /tmp/swh-chart.swh.AWFIn4gg/production-swh.before   2024-05-15 11:48:45.542275051 +0200
+++ /tmp/swh-chart.swh.AWFIn4gg/production-swh.after    2024-05-15 11:48:45.982377808 +0200
@@ -19008,20 +19008,33 @@
             - name: STATSD_HOST
               value: prometheus-statsd-exporter
             - name: STATSD_PORT
               value: "9125"
             - name: STATSD_TAGS
               value: deployment:counters-journal-client
             - name: SWH_CONFIG_FILENAME
               value: /etc/swh/config.yml
             - name: LOG_LEVEL
               value: INFO
+            - name: SWH_SENTRY_ENVIRONMENT
+              value: production
+            - name: SWH_MAIN_PACKAGE
+              value: swh.counters
+            - name: SWH_SENTRY_DSN
+              valueFrom:
+                secretKeyRef:
+                  name: common-secrets
+                  key: counters-sentry-dsn
+                  # if the setting doesn't exist, sentry issue pushes will be disabled
+                  optional: false
+            - name: SWH_SENTRY_DISABLE_LOGGING_EVENTS
+              value: "true"
           imagePullPolicy: IfNotPresent
           volumeMounts:
           - name: configuration
             mountPath: /etc/swh
       volumes:
       - name: configuration
         emptyDir: {}
       - name: configuration-template
         configMap:
           name: counters-journal-client-configuration-template
@@ -19145,20 +19158,33 @@
             - name: TIMEOUT
               value: "10"
             - name: STATSD_HOST
               value: prometheus-statsd-exporter
             - name: STATSD_PORT
               value: "9125"
             - name: STATSD_TAGS
               value: deployment:counters-rpc
             - name: LOG_LEVEL
               value: INFO
+            - name: SWH_SENTRY_ENVIRONMENT
+              value: production
+            - name: SWH_MAIN_PACKAGE
+              value: swh.counters
+            - name: SWH_SENTRY_DSN
+              valueFrom:
+                secretKeyRef:
+                  name: common-secrets
+                  key: counters-sentry-dsn
+                  # if the setting doesn't exist, sentry issue pushes will be disabled
+                  optional: false
+            - name: SWH_SENTRY_DISABLE_LOGGING_EVENTS
+              value: "true"
           volumeMounts:
           - name: configuration
             mountPath: /etc/swh
           - name: staticdata
             mountPath: /srv/softwareheritage/counters
           - name: script-utils
             mountPath: /entrypoints
             readOnly: true
       volumes:
       - name: configuration
@@ -34303,20 +34329,33 @@
                 - name: STATSD_HOST
                   value: prometheus-statsd-exporter
                 - name: STATSD_PORT
                   value: "9125"
                 - name: STATSD_TAGS
                   value: deployment:counters-refresh-counters-cache-cronjob
                 - name: SWH_CONFIG_FILENAME
                   value: /etc/swh/config.yml
                 - name: LOG_LEVEL
                   value: INFO
+                - name: SWH_SENTRY_ENVIRONMENT
+                  value: production
+                - name: SWH_MAIN_PACKAGE
+                  value: swh.counters
+                - name: SWH_SENTRY_DSN
+                  valueFrom:
+                    secretKeyRef:
+                      name: common-secrets
+                      key: counters-sentry-dsn
+                      # if the setting doesn't exist, sentry issue pushes will be disabled
+                      optional: false
+                - name: SWH_SENTRY_DISABLE_LOGGING_EVENTS
+                  value: "true"
               imagePullPolicy: IfNotPresent
               volumeMounts:
               - name: configuration
                 mountPath: /etc/swh
               - name: script-utils
                 mountPath: /cron/bin/
           volumes:
           - name: configuration
             emptyDir: {}
           - name: configuration-template


------------- diff for environment production namespace swh-cassandra -------------

No differences

Refs. swh/infra/sysadm-environment#5320 (closed)

Merge request reports

Loading