Skip to content

Commit 9f7d1af

Browse files
committed
graduate new endpoint metrics to STABLE
* graduate kube_endpoint_ports and kube_endpoint_address to STABLE * graduate kube_endpoint_address_not_ready and kube_endpoint_address_available to DEPRECATED as the information is precomputed during metrics-scraping Signed-off-by: Mario Constanti <[email protected]>
1 parent f1d5653 commit 9f7d1af

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

docs/endpoint-metrics.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
| Metric name| Metric type | Labels/tags | Status |
44
| ---------- | ----------- | ----------- | ----------- |
55
| kube_endpoint_annotations | Gauge | `endpoint`=&lt;endpoint-name&gt; <br> `namespace`=&lt;endpoint-namespace&gt; <br> `annotation_ENDPOINT_ANNOTATION`=&lt;ENDPOINT_ANNOTATION&gt; | EXPERIMENTAL |
6-
| kube_endpoint_address_not_ready | Gauge | `endpoint`=&lt;endpoint-name&gt; <br> `namespace`=&lt;endpoint-namespace&gt; | STABLE |
7-
| kube_endpoint_address_available | Gauge | `endpoint`=&lt;endpoint-name&gt; <br> `namespace`=&lt;endpoint-namespace&gt; | STABLE |
6+
| kube_endpoint_address_not_ready | Gauge | `endpoint`=&lt;endpoint-name&gt; <br> `namespace`=&lt;endpoint-namespace&gt; | DEPRECATED |
7+
| kube_endpoint_address_available | Gauge | `endpoint`=&lt;endpoint-name&gt; <br> `namespace`=&lt;endpoint-namespace&gt; | DEPRECATED |
88
| kube_endpoint_info | Gauge | `endpoint`=&lt;endpoint-name&gt; <br> `namespace`=&lt;endpoint-namespace&gt; | STABLE |
99
| kube_endpoint_labels | Gauge | `endpoint`=&lt;endpoint-name&gt; <br> `namespace`=&lt;endpoint-namespace&gt; <br> `label_ENDPOINT_LABEL`=&lt;ENDPOINT_LABEL&gt; | STABLE |
1010
| kube_endpoint_created | Gauge | `endpoint`=&lt;endpoint-name&gt; <br> `namespace`=&lt;endpoint-namespace&gt; | STABLE |
11-
| kube_endpoint_ports | Gauge | `endpoint`=&lt;endpoint-name&gt; <br> `namespace`=&lt;endpoint-namespace&gt; <br> `port_name`=&lt;endpoint-port-name&gt; <br> `port_protocol`=&lt;endpoint-port-protocol&gt; <br> `port_number`=&lt;endpoint-port-number&gt; | EXPERIMENTAL |
12-
| kube_endpoint_address | Gauge | `endpoint`=&lt;endpoint-name&gt; <br> `namespace`=&lt;endpoint-namespace&gt; <br> `ip`=&lt;endpoint-ip&gt; <br> `ready`=&lt;true if available, false if unavailalbe&gt; | EXPERIMENTAL |
11+
| kube_endpoint_ports | Gauge | `endpoint`=&lt;endpoint-name&gt; <br> `namespace`=&lt;endpoint-namespace&gt; <br> `port_name`=&lt;endpoint-port-name&gt; <br> `port_protocol`=&lt;endpoint-port-protocol&gt; <br> `port_number`=&lt;endpoint-port-number&gt; | STABLE |
12+
| kube_endpoint_address | Gauge | `endpoint`=&lt;endpoint-name&gt; <br> `namespace`=&lt;endpoint-namespace&gt; <br> `ip`=&lt;endpoint-ip&gt; <br> `ready`=&lt;true if available, false if unavailalbe&gt; | STABLE |

internal/store/endpoint.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ func endpointMetricFamilies(allowAnnotationsList, allowLabelsList []string) []ge
116116
"kube_endpoint_address_available",
117117
"Number of addresses available in endpoint.",
118118
metric.Gauge,
119-
"",
119+
"v2.6.0",
120120
wrapEndpointFunc(func(e *v1.Endpoints) *metric.Family {
121121
var available int
122122
for _, s := range e.Subsets {
@@ -136,7 +136,7 @@ func endpointMetricFamilies(allowAnnotationsList, allowLabelsList []string) []ge
136136
"kube_endpoint_address_not_ready",
137137
"Number of addresses not ready in endpoint",
138138
metric.Gauge,
139-
"",
139+
"v2.6.0",
140140
wrapEndpointFunc(func(e *v1.Endpoints) *metric.Family {
141141
var notReady int
142142
for _, s := range e.Subsets {

internal/store/endpoint_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@ func TestEndpointStore(t *testing.T) {
3232
const metadata = `
3333
# HELP kube_endpoint_annotations Kubernetes annotations converted to Prometheus labels.
3434
# TYPE kube_endpoint_annotations gauge
35-
# HELP kube_endpoint_address_available Number of addresses available in endpoint.
35+
# HELP kube_endpoint_address_available (Deprecated since v2.6.0) Number of addresses available in endpoint.
3636
# TYPE kube_endpoint_address_available gauge
37-
# HELP kube_endpoint_address_not_ready Number of addresses not ready in endpoint
37+
# HELP kube_endpoint_address_not_ready (Deprecated since v2.6.0) Number of addresses not ready in endpoint
3838
# TYPE kube_endpoint_address_not_ready gauge
3939
# HELP kube_endpoint_created Unix creation timestamp
4040
# TYPE kube_endpoint_created gauge
@@ -160,9 +160,9 @@ func TestEndpointStoreWithLabels(t *testing.T) {
160160
// Fixed metadata on type and help text. We prepend this to every expected
161161
// output so we only have to modify a single place when doing adjustments.
162162
const metadata = `
163-
# HELP kube_endpoint_address_available Number of addresses available in endpoint.
163+
# HELP kube_endpoint_address_available (Deprecated since v2.6.0) Number of addresses available in endpoint.
164164
# TYPE kube_endpoint_address_available gauge
165-
# HELP kube_endpoint_address_not_ready Number of addresses not ready in endpoint
165+
# HELP kube_endpoint_address_not_ready (Deprecated since v2.6.0) Number of addresses not ready in endpoint
166166
# TYPE kube_endpoint_address_not_ready gauge
167167
# HELP kube_endpoint_annotations Kubernetes annotations converted to Prometheus labels.
168168
# TYPE kube_endpoint_annotations gauge

0 commit comments

Comments
 (0)