diff --git a/swh/values/default.yaml b/swh/values/default.yaml index bc6d5e9f549830ef23b3cc008e1505a3e84af26c..eaaa71bc98916ab4311608ed2ff0ac1e96c5d4be 100644 --- a/swh/values/default.yaml +++ b/swh/values/default.yaml @@ -290,3 +290,25 @@ webhooks: statsd_exporter: enabled: true + +counters: + rpc: + affinity: + nodeAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + nodeSelectorTerms: + - matchExpressions: + - key: swh/rpc + operator: In + values: + - "true" + journalClient: + affinity: + nodeAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + nodeSelectorTerms: + - matchExpressions: + - key: swh/journal_client + operator: In + values: + - "true" diff --git a/swh/values/staging/default.yaml b/swh/values/staging/default.yaml index c19af1a5cbcc6b17fcf130e5f07c043f67e134ae..a5f99878bf7466b3d11d17f992f93c7cf3acd1e9 100644 --- a/swh/values/staging/default.yaml +++ b/swh/values/staging/default.yaml @@ -246,6 +246,22 @@ journalClientConfiguration: brokersConfigurationRef: kafkaBrokers group_id: swh.scheduler.journal_client +journalClientCountersConfiguration: + brokersConfigurationRef: kafkaBrokers + group_id: swh.counters.journal_client + prefix: swh.journal.objects + object_types: + - content + - directory + - origin + - origin_visit + - origin_visit_status + - release + - revision + - skipped_content + - snapshot + message.max.bytes: 524288000 + depositConfiguration: host: deposit-dynamic.internal.staging.swh.network user: ${DEPOSIT_USERNAME} diff --git a/swh/values/staging/swh-cassandra.yaml b/swh/values/staging/swh-cassandra.yaml index f08e03d578c180a8029c3e4e739154e862617717..885397e9564ba6bc250423dc079c95b996a9ec2c 100644 --- a/swh/values/staging/swh-cassandra.yaml +++ b/swh/values/staging/swh-cassandra.yaml @@ -944,3 +944,10 @@ webhooks: group_id: swh-archive-stg-webhooks object_types: - origin_visit_status + +counters: + enabled: true + journalClient: + enabled: true + countersConfigurationRef: remoteCountersConfiguration + journalConfigurationRef: journalClientCountersConfiguration