We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 35701ba commit 4d0f682Copy full SHA for 4d0f682
typescript/infra/src/infrastructure/monitoring/prometheus.ts
@@ -94,8 +94,17 @@ async function getPrometheusConfig(
94
write_relabel_configs: [
95
{
96
action: 'keep',
97
- regex:
98
- '(container.*|optics.*|Optics.*|prometheus.*|ethereum.*|hyperlane.*|kube_pod_status_phase|kube_pod_container_status_restarts_total|kube_pod_container_resource_requests)',
+ regex: `(${[
+ 'container.*',
99
+ 'prometheus.*',
100
+ 'ethereum.*',
101
+ 'hyperlane.*',
102
+ 'kube_pod_status_phase',
103
+ 'kube_pod_container_status_restarts_total',
104
+ 'kube_pod_container_resource_requests',
105
+ 'kube_job_status_failed',
106
+ 'kube_job_created',
107
+ ].join('|')})`,
108
source_labels: ['__name__'],
109
},
110
0 commit comments