Skip to content

Commit c1f2503

Browse files
committed
rename metric to kube_janitor_resource_expiry_timestamp_seconds
Signed-off-by: Markus Blaschke <[email protected]>
1 parent fe01eb8 commit c1f2503

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,6 @@ Supported relative timestamps ([`time.Duration`](https://pkg.go.dev/time) and [`
6161

6262
## Metrics
6363

64-
| Metric | Description |
65-
|-----------------------------------|--------------------------------------------------------------------|
66-
| `kube_janitor_resource_ttl` | Expiry date (unix timestamp) for every resource which was detected |
64+
| Metric | Description |
65+
|--------------------------------------------------|--------------------------------------------------------------------|
66+
| `kube_janitor_resource_expiry_timestamp_seconds` | Expiry date (unix timestamp) for every resource which was detected |

kube_janitor/metrics.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ type (
1313
func (j *Janitor) setupMetrics() {
1414
j.prometheus.ttl = prometheus.NewGaugeVec(
1515
prometheus.GaugeOpts{
16-
Name: "kube_janitor_resource_ttl",
17-
Help: "TTL date for a resource",
16+
Name: "kube_janitor_resource_expiry_timestamp_seconds",
17+
Help: "Expiry unix timestamp for Kubernetes resources",
1818
},
1919
[]string{
2020
"version",

0 commit comments

Comments
 (0)