redaction (#1)
Add the redacted source file for demo purposes Reviewed-on: https://source.michaeldileo.org/michael_dileo/Keybard-Vagabond-Demo/pulls/1 Co-authored-by: Michael DiLeo <michael_dileo@proton.me> Co-committed-by: Michael DiLeo <michael_dileo@proton.me>
This commit was merged in pull request #1.
This commit is contained in:
37
manifests/applications/bookwyrm/monitoring.yaml
Normal file
37
manifests/applications/bookwyrm/monitoring.yaml
Normal file
@@ -0,0 +1,37 @@
|
||||
---
|
||||
apiVersion: monitoring.coreos.com/v1
|
||||
kind: ServiceMonitor
|
||||
metadata:
|
||||
name: bookwyrm-monitoring
|
||||
namespace: bookwyrm-application
|
||||
labels:
|
||||
app: bookwyrm
|
||||
component: monitoring
|
||||
spec:
|
||||
selector:
|
||||
matchLabels:
|
||||
app: bookwyrm
|
||||
component: web
|
||||
endpoints:
|
||||
- port: http
|
||||
interval: 30s
|
||||
path: /metrics
|
||||
scheme: http
|
||||
scrapeTimeout: 10s
|
||||
honorLabels: true
|
||||
relabelings:
|
||||
- sourceLabels: [__meta_kubernetes_pod_name]
|
||||
targetLabel: pod
|
||||
- sourceLabels: [__meta_kubernetes_pod_node_name]
|
||||
targetLabel: node
|
||||
- sourceLabels: [__meta_kubernetes_namespace]
|
||||
targetLabel: namespace
|
||||
- sourceLabels: [__meta_kubernetes_service_name]
|
||||
targetLabel: service
|
||||
metricRelabelings:
|
||||
- sourceLabels: [__name__]
|
||||
regex: 'go_.*'
|
||||
action: drop
|
||||
- sourceLabels: [__name__]
|
||||
regex: 'python_.*'
|
||||
action: drop
|
||||
Reference in New Issue
Block a user