mirror of
https://github.com/minio/docs.git
synced 2025-08-06 14:42:56 +03:00
metrics must show relevant yaml per tab selection (#1163)
This commit is contained in:
@@ -53,6 +53,22 @@ Use the :mc-cmd:`mc admin prometheus generate` command to generate the scrape co
|
|||||||
|
|
||||||
Replace :mc-cmd:`ALIAS <mc admin prometheus generate TARGET>` with the :mc:`alias <mc alias>` of the MinIO deployment.
|
Replace :mc-cmd:`ALIAS <mc admin prometheus generate TARGET>` with the :mc:`alias <mc alias>` of the MinIO deployment.
|
||||||
|
|
||||||
|
The command returns output similar to the following:
|
||||||
|
|
||||||
|
.. code-block:: yaml
|
||||||
|
:class: copyable
|
||||||
|
|
||||||
|
global:
|
||||||
|
scrape_interval: 15s
|
||||||
|
|
||||||
|
scrape_configs:
|
||||||
|
- job_name: minio-job
|
||||||
|
bearer_token: TOKEN
|
||||||
|
metrics_path: /minio/v2/metrics/cluster
|
||||||
|
scheme: https
|
||||||
|
static_configs:
|
||||||
|
- targets: [minio.example.net]
|
||||||
|
|
||||||
.. tab-item:: Nodes
|
.. tab-item:: Nodes
|
||||||
|
|
||||||
The following command scrapes metrics for a node on the MinIO Server.
|
The following command scrapes metrics for a node on the MinIO Server.
|
||||||
@@ -64,6 +80,20 @@ Use the :mc-cmd:`mc admin prometheus generate` command to generate the scrape co
|
|||||||
|
|
||||||
Replace :mc-cmd:`ALIAS <mc admin prometheus generate TARGET>` with the :mc:`alias <mc alias>` of the MinIO deployment.
|
Replace :mc-cmd:`ALIAS <mc admin prometheus generate TARGET>` with the :mc:`alias <mc alias>` of the MinIO deployment.
|
||||||
|
|
||||||
|
.. code-block:: yaml
|
||||||
|
:class: copyable
|
||||||
|
|
||||||
|
global:
|
||||||
|
scrape_interval: 15s
|
||||||
|
|
||||||
|
scrape_configs:
|
||||||
|
- job_name: minio-job-node
|
||||||
|
bearer_token: TOKEN
|
||||||
|
metrics_path: /minio/v2/metrics/node
|
||||||
|
scheme: https
|
||||||
|
static_configs:
|
||||||
|
- targets: [minio-1.example.net, minio-2.example.net, minio-N.example.net]
|
||||||
|
|
||||||
.. tab-item:: Buckets
|
.. tab-item:: Buckets
|
||||||
|
|
||||||
The following command scrapes metrics for buckets on the MinIO Server.
|
The following command scrapes metrics for buckets on the MinIO Server.
|
||||||
@@ -75,6 +105,19 @@ Use the :mc-cmd:`mc admin prometheus generate` command to generate the scrape co
|
|||||||
|
|
||||||
Replace :mc-cmd:`ALIAS <mc admin prometheus generate TARGET>` with the :mc:`alias <mc alias>` of the MinIO deployment.
|
Replace :mc-cmd:`ALIAS <mc admin prometheus generate TARGET>` with the :mc:`alias <mc alias>` of the MinIO deployment.
|
||||||
|
|
||||||
|
.. code-block:: yaml
|
||||||
|
:class: copyable
|
||||||
|
|
||||||
|
global:
|
||||||
|
scrape_interval: 15s
|
||||||
|
|
||||||
|
scrape_configs:
|
||||||
|
- job_name: minio-job-bucket
|
||||||
|
bearer_token: TOKEN
|
||||||
|
metrics_path: /minio/v2/metrics/bucket
|
||||||
|
scheme: https
|
||||||
|
static_configs:
|
||||||
|
- targets: [minio.example.net]
|
||||||
|
|
||||||
.. tab-item:: Resources
|
.. tab-item:: Resources
|
||||||
|
|
||||||
@@ -89,15 +132,16 @@ Use the :mc-cmd:`mc admin prometheus generate` command to generate the scrape co
|
|||||||
|
|
||||||
Replace :mc-cmd:`ALIAS <mc admin prometheus generate TARGET>` with the :mc:`alias <mc alias>` of the MinIO deployment.
|
Replace :mc-cmd:`ALIAS <mc admin prometheus generate TARGET>` with the :mc:`alias <mc alias>` of the MinIO deployment.
|
||||||
|
|
||||||
The command returns output similar to the following:
|
|
||||||
|
|
||||||
.. code-block:: yaml
|
.. code-block:: yaml
|
||||||
:class: copyable
|
:class: copyable
|
||||||
|
|
||||||
|
global:
|
||||||
|
scrape_interval: 15s
|
||||||
|
|
||||||
scrape_configs:
|
scrape_configs:
|
||||||
- job_name: minio-job
|
- job_name: minio-job-resource
|
||||||
bearer_token: TOKEN
|
bearer_token: TOKEN
|
||||||
metrics_path: /minio/v2/metrics/cluster
|
metrics_path: /minio/v2/metrics/resource
|
||||||
scheme: https
|
scheme: https
|
||||||
static_configs:
|
static_configs:
|
||||||
- targets: [minio.example.net]
|
- targets: [minio.example.net]
|
||||||
@@ -130,7 +174,6 @@ Append the desired ``scrape_configs`` job generated in the previous step to the
|
|||||||
.. tab-item:: Cluster
|
.. tab-item:: Cluster
|
||||||
|
|
||||||
Cluster metrics aggregate node-level metrics and, where appropriate, attach labels to metrics for the originating node.
|
Cluster metrics aggregate node-level metrics and, where appropriate, attach labels to metrics for the originating node.
|
||||||
If you are already collecting ``cluster`` metrics, you do not need to add an additional ``scrape_configs`` job for ``node``.
|
|
||||||
|
|
||||||
.. code-block:: yaml
|
.. code-block:: yaml
|
||||||
:class: copyable
|
:class: copyable
|
||||||
@@ -146,6 +189,26 @@ Append the desired ``scrape_configs`` job generated in the previous step to the
|
|||||||
static_configs:
|
static_configs:
|
||||||
- targets: [minio.example.net]
|
- targets: [minio.example.net]
|
||||||
|
|
||||||
|
|
||||||
|
.. tab-item:: Nodes
|
||||||
|
|
||||||
|
Node metrics are specific for node-level monitoring. You need to list all MinIO nodes for this configuration.
|
||||||
|
|
||||||
|
.. code-block:: yaml
|
||||||
|
:class: copyable
|
||||||
|
|
||||||
|
global:
|
||||||
|
scrape_interval: 15s
|
||||||
|
|
||||||
|
scrape_configs:
|
||||||
|
- job_name: minio-job-node
|
||||||
|
bearer_token: TOKEN
|
||||||
|
metrics_path: /minio/v2/metrics/node
|
||||||
|
scheme: https
|
||||||
|
static_configs:
|
||||||
|
- targets: [minio-1.example.net, minio-2.example.net, minio-N.example.net]
|
||||||
|
|
||||||
|
|
||||||
.. tab-item:: Bucket
|
.. tab-item:: Bucket
|
||||||
|
|
||||||
.. code-block:: yaml
|
.. code-block:: yaml
|
||||||
|
Reference in New Issue
Block a user