Merge pull request #118812 from serathius/storage-metric

Improve apiserver storage size metric
This commit is contained in:
Kubernetes Prow Robot
2023-07-12 10:57:26 -07:00
committed by GitHub
7 changed files with 181 additions and 28 deletions

View File

@@ -3707,6 +3707,7 @@
subsystem: apiserver
help: Total size of the storage database file physically allocated in bytes.
type: Gauge
deprecatedVersion: "1.28.0"
stabilityLevel: ALPHA
labels:
- endpoint
@@ -3754,6 +3755,12 @@
stabilityLevel: ALPHA
labels:
- resource
- name: apiserver_storage_size_bytes
help: Size of the storage database file physically allocated in bytes.
type: Custom
stabilityLevel: ALPHA
labels:
- server
- name: transformation_duration_seconds
subsystem: storage
namespace: apiserver

View File

@@ -878,7 +878,7 @@ components using an HTTP scrape, and fetch the current metrics data in Prometheu
<td class="metric_description">Total size of the storage database file physically allocated in bytes.</td>
<td class="metric_labels_varying"><div class="metric_label">endpoint</div></td>
<td class="metric_labels_constant"></td>
<td class="metric_deprecated_version"></td></tr>
<td class="metric_deprecated_version">1.28.0</td></tr>
<tr class="metric"><td class="metric_name">apiserver_storage_decode_errors_total</td>
<td class="metric_stability_level" data-stability="alpha">ALPHA</td>
<td class="metric_type" data-type="counter">Counter</td>
@@ -928,6 +928,13 @@ components using an HTTP scrape, and fetch the current metrics data in Prometheu
<td class="metric_labels_varying"><div class="metric_label">resource</div></td>
<td class="metric_labels_constant"></td>
<td class="metric_deprecated_version"></td></tr>
<tr class="metric"><td class="metric_name">apiserver_storage_size_bytes</td>
<td class="metric_stability_level" data-stability="alpha">ALPHA</td>
<td class="metric_type" data-type="custom">Custom</td>
<td class="metric_description">Size of the storage database file physically allocated in bytes.</td>
<td class="metric_labels_varying"><div class="metric_label">server</div></td>
<td class="metric_labels_constant"></td>
<td class="metric_deprecated_version"></td></tr>
<tr class="metric"><td class="metric_name">apiserver_storage_transformation_duration_seconds</td>
<td class="metric_stability_level" data-stability="alpha">ALPHA</td>
<td class="metric_type" data-type="histogram">Histogram</td>