Skip to content

Commit fe01eb8

Browse files
committed
add ttl label
Signed-off-by: Markus Blaschke <[email protected]>
1 parent 4676e37 commit fe01eb8

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

kube_janitor/manager.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,7 @@ func (j *Janitor) Run() error {
175175
"kind": resource.GetKind(),
176176
"namespace": resource.GetNamespace(),
177177
"name": resource.GetName(),
178+
"ttl": ttl,
178179
},
179180
*parsedDate,
180181
)

kube_janitor/metrics.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ func (j *Janitor) setupMetrics() {
2121
"kind",
2222
"namespace",
2323
"name",
24+
"ttl",
2425
},
2526
)
2627
prometheus.MustRegister(j.prometheus.ttl)

0 commit comments

Comments
 (0)