swh/counters: Add a service monitor to scrape the counters metrics
Depends on swh/devel/swh-counters!40 (merged)
Related to swh/infra/sysadm-environment#5319 (closed)
helm dif
[swh] Comparing changes between branches production and counters-metrics (per environment)...
Your branch is up to date with 'origin/production'.
[swh] Generate config in production branch for environment staging, namespace swh...
[swh] Generate config in production branch for environment staging, namespace swh-cassandra...
[swh] Generate config in production branch for environment staging, namespace swh-cassandra-next-version...
[swh] Generate config in counters-metrics branch for environment staging...
[swh] Generate config in counters-metrics branch for environment staging...
[swh] Generate config in counters-metrics branch for environment staging...
Your branch is up to date with 'origin/production'.
[swh] Generate config in production branch for environment production, namespace swh...
[swh] Generate config in production branch for environment production, namespace swh-cassandra...
[swh] Generate config in production branch for environment production, namespace swh-cassandra-next-version...
[swh] Generate config in counters-metrics branch for environment production...
[swh] Generate config in counters-metrics branch for environment production...
[swh] Generate config in counters-metrics branch for environment production...
------------- diff for environment staging namespace swh -------------
_ __ __
_| |_ _ / _|/ _| between /tmp/swh-chart.swh.mFLFFngj/staging-swh.before, 111 documents
/ _' | | | | |_| |_ and /tmp/swh-chart.swh.mFLFFngj/staging-swh.after, 111 documents
| (_| | |_| | _| _|
\__,_|\__, |_| |_| returned no differences
|___/
------------- diff for environment staging namespace swh-cassandra -------------
_ __ __
_| |_ _ / _|/ _| between /tmp/swh-chart.swh.mFLFFngj/staging-swh-cassandra.before, 378 documents
/ _' | | | | |_| |_ and /tmp/swh-chart.swh.mFLFFngj/staging-swh-cassandra.after, 379 documents
| (_| | |_| | _| _|
\__,_|\__, |_| |_| returned one difference
|___/
(file level)
---
# Source: swh/templates/counters/servicemonitor.yaml
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
name: counters-rpc
namespace: swh-cassandra
labels:
app: counters-rpc-sm
spec:
endpoints:
- path: /metrics
port: metrics
interval: 60s
selector:
matchLabels:
app: counters-rpc
namespaceSelector:
matchNames:
- swh-cassandra
------------- diff for environment staging namespace swh-cassandra-next-version -------------
_ __ __
_| |_ _ / _|/ _| between /tmp/swh-chart.swh.mFLFFngj/staging-swh-cassandra-next-version.before, 146 documents
/ _' | | | | |_| |_ and /tmp/swh-chart.swh.mFLFFngj/staging-swh-cassandra-next-version.after, 147 documents
| (_| | |_| | _| _|
\__,_|\__, |_| |_| returned one difference
|___/
(file level)
---
# Source: swh/templates/counters/servicemonitor.yaml
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
name: counters-rpc
namespace: swh-cassandra-next-version
labels:
app: counters-rpc-sm
spec:
endpoints:
- path: /metrics
port: metrics
interval: 60s
selector:
matchLabels:
app: counters-rpc
namespaceSelector:
matchNames:
- swh-cassandra-next-version
------------- diff for environment production namespace swh -------------
_ __ __
_| |_ _ / _|/ _| between /tmp/swh-chart.swh.mFLFFngj/production-swh.before, 410 documents
/ _' | | | | |_| |_ and /tmp/swh-chart.swh.mFLFFngj/production-swh.after, 410 documents
| (_| | |_| | _| _|
\__,_|\__, |_| |_| returned no differences
|___/
------------- diff for environment production namespace swh-cassandra -------------
_ __ __
_| |_ _ / _|/ _| between /tmp/swh-chart.swh.mFLFFngj/production-swh-cassandra.before, 96 documents
/ _' | | | | |_| |_ and /tmp/swh-chart.swh.mFLFFngj/production-swh-cassandra.after, 96 documents
| (_| | |_| | _| _|
\__,_|\__, |_| |_| returned no differences
|___/