Skip to content

Commit 3458e72

Browse files
authored
Undeprecate v2 metrics (#1375)
Metrics version 2 is not dead. Continue to feature v3, but restore the v2 info as an alternate version. Out of scope: Updating the Prometheus and InfluxDB procedures. For now, note they are v2 and deal with it in a separate PR. Staged http://192.241.195.202:9000/staging/metrics-v2-not-deprecated/linux/operations/monitoring/metrics-and-alerts.html http://192.241.195.202:9000/staging/metrics-v2-not-deprecated/linux/reference/minio-mc-admin/mc-admin-prometheus.html
1 parent cfaedc8 commit 3458e72

File tree

8 files changed

+366
-158
lines changed

8 files changed

+366
-158
lines changed

source/operations/monitoring/collect-minio-metrics-using-prometheus.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ The procedure on this page documents the following:
2121
- Configuring a Prometheus service to scrape and display metrics from a MinIO deployment
2222
- Configuring an Alert Rule on a MinIO Metric to trigger an AlertManager action
2323

24+
These instructions use :ref:`version 2 metrics. <minio-metrics-v2>`
25+
For more about metrics API versions, see :ref:`Metrics and alerts. <minio-metrics-and-alerts>`
26+
2427
.. admonition:: Prerequisites
2528
:class: note
2629

@@ -32,6 +35,7 @@ The procedure on this page documents the following:
3235

3336
- An :mc:`mc` installation on your local host configured to :ref:`access <alias>` the MinIO deployment
3437

38+
3539
Configure Prometheus to Collect and Alert using MinIO Metrics
3640
-------------------------------------------------------------
3741

source/operations/monitoring/grafana.rst

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ Monitor a MinIO Server with Grafana
1111
:depth: 2
1212

1313
`Grafana <https://grafana.com/>`__ allows you to query, visualize, alert on and understand your metrics no matter where they are stored.
14-
Create, explore, and share dashboards with your team and foster a data driven culture.
1514

1615
Prerequisites
1716
-------------
@@ -20,6 +19,15 @@ Prerequisites
2019
- An existing MinIO deployment with network access to the Prometheus deployment
2120
- `Grafana installed <https://grafana.com/grafana/download>`__
2221

22+
.. admonition:: Grafana dashboards use metrics version 2
23+
:class: note
24+
25+
The MinIO Grafana dashboards use :ref:`metrics version 2 <minio-metrics-v2>`.
26+
For more about metrics API versions, see :ref:`Metrics and alerts. <minio-metrics-and-alerts>`
27+
28+
Version 3 metrics require creating your own dashboard.
29+
For more information about dashboards, see `the Grafana documentation. <https://grafana.com/docs/grafana/latest/dashboards/>`__
30+
2331
MinIO Grafana Dashboard
2432
-----------------------
2533

source/operations/monitoring/healthcheck-probe.rst

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,9 @@ A response code of ``200 OK`` indicates the MinIO server is
3333
online and functional. Any other HTTP codes indicate an issue with reaching
3434
the server, such as a transient network issue or potential downtime.
3535

36-
The healthcheck probe alone cannot determine if a MinIO server is offline - only
37-
that the current host machine cannot reach the server. Consider configuring
38-
a Prometheus :ref:`alert <minio-metrics-and-alerts>` using the
39-
``minio_cluster_nodes_offline_total`` metric to detect whether one or
40-
more MinIO nodes are offline.
36+
The healthcheck probe alone cannot determine if a MinIO server is offline.
37+
Instead, the probe determines whether the current host machine can reach the server.
38+
Consider configuring a Prometheus :ref:`alert <minio-metrics-and-alerts>` using ``minio_cluster_health_nodes_offline_count`` for :ref:`metrics v3 <minio-available-v3-cluster-metrics>` or ``minio_cluster_nodes_offline_total`` for :ref:`metrics v2 <minio-available-cluster-metrics>` to detect whether one or more MinIO nodes are offline.
4139

4240
.. _minio-cluster-write-quorum:
4341

source/operations/monitoring/metrics-and-alerts.rst

Lines changed: 21 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
.. _minio-metrics-and-alerts:
44

55
==================
6-
Metrics and Alerts
6+
Metrics and alerts
77
==================
88

99
.. default-domain:: minio
@@ -12,15 +12,24 @@ Metrics and Alerts
1212
:local:
1313
:depth: 2
1414

15-
.. admonition:: Metrics Version 2 Deprecated
15+
16+
MinIO publishes metrics using the :prometheus-docs:`Prometheus Data Model <concepts/data_model/>`.
17+
You can use any scraping tool to pull metrics data from MinIO for further analysis and alerting.
18+
19+
Starting with MinIO Server :minio-release:`RELEASE.2024-07-15T19-02-30Z` and MinIO Client :mc-release:`RELEASE.2024-07-11T18-01-28Z`, metrics version 3 provides additional endpoints.
20+
MinIO recommends version 3 for new deployments.
21+
22+
.. admonition:: Metrics version 2
1623
:class: note
1724

18-
Starting with MinIO Server :minio-release:`RELEASE.2024-07-15T19-02-30Z` and MinIO Client :mc-release:`RELEASE.2024-07-11T18-01-28Z`, metrics version 3 replaces the deprecated :ref:`metrics version 2 <minio-metrics-v2>`.
25+
Existing deployments can continue to use version 2 :ref:`metrics <minio-metrics-v2>` and :ref:`Grafana dashboards <minio-grafana>`.
1926

20-
MinIO publishes cluster and node metrics using the :prometheus-docs:`Prometheus Data Model <concepts/data_model/>`.
21-
You can use any scraping tool to pull metrics data from MinIO for further analysis and alerting.
2227

23-
For metrics version 3, all metrics are available under the base ``/minio/metrics/v3`` endpoint by appending an additional path for each category.
28+
Version 3 Endpoints
29+
-------------------
30+
31+
For metrics version 3, all metrics are available under the base ``/minio/metrics/v3`` endpoint.
32+
You can scrape the base endpoint to collect all metrics in a single operation, or append an optional path to return a specific category.
2433

2534
For example, the following endpoint returns audit metrics:
2635

@@ -98,7 +107,7 @@ MinIO provides the following scraping endpoints, relative to the base URL:
98107

99108
``/system/process``
100109

101-
For a complete list of metrics for each endpoint, see :ref:`Available Metrics <minio-metrics-and-alerts-available-metrics>`.
110+
For a complete list of metrics for each endpoint, see :ref:`Available version 3 etrics <minio-metrics-and-alerts-available-metrics>`.
102111

103112
.. cond:: k8s
104113

@@ -114,19 +123,12 @@ For a complete list of metrics for each endpoint, see :ref:`Available Metrics <m
114123
- Set :envvar:`MINIO_PROMETHEUS_URL` to the URL of the Prometheus service
115124
- Set :envvar:`MINIO_PROMETHEUS_JOB_ID` to the unique job ID assigned to the collected metrics
116125

117-
MinIO Grafana Dashboard
118-
-----------------------
119-
120-
MinIO also publishes two :ref:`Grafana Dashboards <minio-grafana>` for visualizing collected metrics.
121-
For more complete documentation on configuring a Prometheus-compatible data source for Grafana, see the :prometheus-docs:`Prometheus documentation on Grafana Support <visualization/grafana/>`.
122-
123126
.. _minio-metrics-and-alerts-available-metrics:
124127

125-
Available Metrics
126-
-----------------
128+
Available version 3 metrics
129+
---------------------------
127130

128-
MinIO publishes a number of metrics at the cluster, node, or bucket levels.
129-
Each metric includes a label for the MinIO server which generated that metric.
131+
MinIO publishes a number of metrics for clusters, API requests, buckets, and other aspects of the MinIO service:
130132

131133
- :ref:`API Metrics <minio-available-v3-api-metrics>`
132134
- :ref:`Audit Metrics <minio-available-v3-audit-metrics>`
@@ -139,6 +141,7 @@ Each metric includes a label for the MinIO server which generated that metric.
139141
- :ref:`Scanner Metrics <minio-available-v3-scanner-metrics>`
140142
- :ref:`System Metrics <minio-available-v3-system-metrics>`
141143

144+
Many metrics include labels identifying the resource which generated that metric and other relevant details.
142145

143146
.. _minio-available-v3-api-metrics:
144147

@@ -197,3 +200,4 @@ Each metric includes a label for the MinIO server which generated that metric.
197200

198201
/operations/monitoring/collect-minio-metrics-using-prometheus
199202
/operations/monitoring/monitor-and-alert-using-influxdb
203+
/operations/monitoring/metrics-v2

source/operations/monitoring/metrics-v2-deprecated.rst renamed to source/operations/monitoring/metrics-v2.rst

Lines changed: 37 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
:orphan:
21
.. _minio-metrics-v2:
32

43
=================
5-
Metrics Version 2
4+
Metrics version 2
65
=================
76

87
.. default-domain:: minio
@@ -11,12 +10,44 @@ Metrics Version 2
1110
:local:
1211
:depth: 3
1312

14-
.. admonition:: Metrics Version 2 Deprecated
15-
:class: note
1613

17-
Starting with MinIO Server :minio-release:`RELEASE.2024-07-15T19-02-30Z` and MinIO Client :mc-release:`RELEASE.2024-07-11T18-01-28Z`, :ref:`metrics version 3 <minio-metrics-and-alerts>` replaces the deprecated metrics version 2.
14+
MinIO publishes cluster and node metrics using the :prometheus-docs:`Prometheus Data Model <concepts/data_model/>`.
15+
You can use any scraping tool to pull metrics data from MinIO for further analysis and alerting.
1816

19-
The following sections describe the deprecated endpoints and metrics.
17+
Version 3 Endpoints
18+
-------------------
19+
20+
Metrics version 2 provides metrics organized into three categories:
21+
22+
- :ref:`Cluster Metrics <minio-available-cluster-metrics>`
23+
- :ref:`Bucket Metrics <minio-available-bucket-metrics>`
24+
- :ref:`Resource Metrics <minio-available-resource-metrics>`
25+
26+
Each v2 endpoint returns all metrics for its category.
27+
For example, scraping the following endpoint returns all cluster metrics:
28+
29+
.. code-block:: shell
30+
:class: copyable
31+
32+
http://HOSTNAME:PORT/minio/v2/metrics/cluster
33+
34+
The base endpoint alone, ``/minio/v2/metrics/``, returns cluster metrics.
35+
36+
For more flexible scraping and a wider range of metrics, use :ref:`metrics version 3. <minio-metrics-and-alerts>`
37+
Existing deployments can continue to use version 2 :ref:`metrics <minio-metrics-v2>` and :ref:`Grafana dashboards <minio-grafana>`.
38+
39+
40+
MinIO Grafana dashboard
41+
-----------------------
42+
43+
MinIO publishes two :ref:`Grafana Dashboards <minio-grafana>` for visualizing v2 metrics.
44+
For more complete documentation on configuring a Prometheus-compatible data source for Grafana, see the :prometheus-docs:`Prometheus documentation on Grafana Support <visualization/grafana/>`.
45+
46+
47+
Available version 2 metrics
48+
---------------------------
49+
50+
The following sections describe the version 2 endpoints and metrics.
2051

2152
.. tab-set::
2253

source/operations/monitoring/monitor-and-alert-using-influxdb.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ The procedure on this page documents the following:
2727
- An existing MinIO deployment with network access to the InfluxDB deployment
2828
- An :mc:`mc` installation on your local host configured to :ref:`access <alias>` the MinIO deployment
2929

30+
These instructions use :ref:`version 2 metrics. <minio-metrics-v2>`
31+
For more about metrics API versions, see :ref:`Metrics and alerts. <minio-metrics-and-alerts>`
32+
3033
.. cond:: k8s
3134

3235
This procedure assumes all necessary network control components, such as Ingress or Load Balancers, to facilitate access between the MinIO Tenant and the InfluxDB service.

0 commit comments

Comments
 (0)