Skip to content

Commit 4d0f682

Browse files
authored
feat(infra): enable kube_job metrics in Prometheus (#7234)
1 parent 35701ba commit 4d0f682

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

typescript/infra/src/infrastructure/monitoring/prometheus.ts

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,17 @@ async function getPrometheusConfig(
9494
write_relabel_configs: [
9595
{
9696
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)',
97+
regex: `(${[
98+
'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('|')})`,
99108
source_labels: ['__name__'],
100109
},
101110
{

0 commit comments

Comments
 (0)