mirror of
https://github.com/minio/docs.git
synced 2025-08-08 01:43:18 +03:00
rearrange more metrics v2 content
This commit is contained in:
@@ -59,7 +59,7 @@ MinIO Pre-requisites
|
|||||||
- :ref:`Prometheus <minio-metrics-collect-using-prometheus>` or a Prometheus-compatible setup for monitoring and metrics
|
- :ref:`Prometheus <minio-metrics-collect-using-prometheus>` or a Prometheus-compatible setup for monitoring and metrics
|
||||||
|
|
||||||
* - :octicon:`circle`
|
* - :octicon:`circle`
|
||||||
- :ref:`Grafana configured <minio-grafana>` for dashboards
|
- (optional) `Grafana <https://grafana.com/>`__ for custom dashboards
|
||||||
|
|
||||||
* - :octicon:`circle`
|
* - :octicon:`circle`
|
||||||
- (optional) :mc:`mc` installed on the local host system
|
- (optional) :mc:`mc` installed on the local host system
|
||||||
|
@@ -68,4 +68,3 @@ See :ref:`minio-healthcheck-api` for more information.
|
|||||||
/operations/monitoring/metrics-and-alerts
|
/operations/monitoring/metrics-and-alerts
|
||||||
/operations/monitoring/minio-logging
|
/operations/monitoring/minio-logging
|
||||||
/operations/monitoring/healthcheck-probe
|
/operations/monitoring/healthcheck-probe
|
||||||
/operations/monitoring/grafana
|
|
||||||
|
@@ -195,9 +195,3 @@ In the Prometheus configuration, specify the path to the alert file in the ``rul
|
|||||||
- minio-alerting.yml
|
- minio-alerting.yml
|
||||||
|
|
||||||
Once triggered, Prometheus sends the alert to the configured AlertManager service.
|
Once triggered, Prometheus sends the alert to the configured AlertManager service.
|
||||||
|
|
||||||
Dashboards
|
|
||||||
----------
|
|
||||||
|
|
||||||
For v2 metrics, MinIO provides Grafana Dashboards to display metrics collected by Prometheus.
|
|
||||||
For more information, see :ref:`minio-grafana`
|
|
||||||
|
@@ -1,3 +1,4 @@
|
|||||||
|
:orphan:
|
||||||
.. _minio-grafana:
|
.. _minio-grafana:
|
||||||
|
|
||||||
===================================
|
===================================
|
||||||
|
@@ -364,6 +364,12 @@ In the Prometheus configuration, specify the path to the alert file in the ``rul
|
|||||||
|
|
||||||
Once triggered, Prometheus sends the alert to the configured AlertManager service.
|
Once triggered, Prometheus sends the alert to the configured AlertManager service.
|
||||||
|
|
||||||
|
Dashboards
|
||||||
|
----------
|
||||||
|
|
||||||
|
For v2 metrics, MinIO provides Grafana Dashboards to display the metrics collected by Prometheus.
|
||||||
|
For more information, see :ref:`minio-grafana`
|
||||||
|
|
||||||
|
|
||||||
Available metrics
|
Available metrics
|
||||||
-----------------
|
-----------------
|
||||||
|
@@ -70,8 +70,8 @@ Parameters
|
|||||||
.. mc-cmd:: --api-version v3
|
.. mc-cmd:: --api-version v3
|
||||||
:optional:
|
:optional:
|
||||||
|
|
||||||
Generate a scrape configuration for metrics version 3.
|
Generate a scrape configuration for :ref:`metrics version 3 <minio-metrics-and-alerts>`.
|
||||||
Omit to generate a metrics version 2 configuration.
|
Omit to generate a :ref:`metrics version 2 <minio-metrics-v2>` configuration.
|
||||||
|
|
||||||
.. mc-cmd:: --bucket
|
.. mc-cmd:: --bucket
|
||||||
:optional:
|
:optional:
|
||||||
@@ -140,7 +140,7 @@ Use :mc-cmd:`mc admin prometheus generate --api-version v3` to generate a scrape
|
|||||||
.. code-block:: shell
|
.. code-block:: shell
|
||||||
:class: copyable
|
:class: copyable
|
||||||
|
|
||||||
mc admin prometheus generate ALIAS --api-version v3
|
mc admin prometheus generate ALIAS --api-version v3
|
||||||
|
|
||||||
- Replace ``ALIAS`` with the :mc-cmd:`alias <mc alias>` of the MinIO deployment.
|
- Replace ``ALIAS`` with the :mc-cmd:`alias <mc alias>` of the MinIO deployment.
|
||||||
|
|
||||||
@@ -157,6 +157,33 @@ The output resembles the following:
|
|||||||
- targets: ['localhost:9000']
|
- targets: ['localhost:9000']
|
||||||
|
|
||||||
|
|
||||||
|
Generate a v3 cluster metrics config
|
||||||
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
|
Use :mc-cmd:`mc admin prometheus generate --api-version v3` to generate a scrape configuration that collects v3 cluster metrics for a MinIO deployment:
|
||||||
|
|
||||||
|
.. code-block:: shell
|
||||||
|
:class: copyable
|
||||||
|
|
||||||
|
mc admin prometheus generate ALIAS cluster --api-version v3
|
||||||
|
|
||||||
|
- Replace ``ALIAS`` with the :mc-cmd:`alias <mc alias>` of the MinIO deployment.
|
||||||
|
|
||||||
|
The output resembles the following:
|
||||||
|
|
||||||
|
.. code-block:: shell
|
||||||
|
|
||||||
|
scrape_configs:
|
||||||
|
- job_name: minio-job-cluster
|
||||||
|
bearer_token: [auth token]
|
||||||
|
metrics_path: /minio/metrics/v3/cluster
|
||||||
|
scheme: http
|
||||||
|
static_configs:
|
||||||
|
- targets: ['localhost:9000']
|
||||||
|
|
||||||
|
To generate a configuration for a :mc-cmd:`different metric type <mc admin prometheus generate type>`, replace ``cluster`` with the desired type.
|
||||||
|
|
||||||
|
|
||||||
Generate a v3 bucket replication metrics config
|
Generate a v3 bucket replication metrics config
|
||||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
@@ -181,6 +208,8 @@ The output resembles the following:
|
|||||||
static_configs:
|
static_configs:
|
||||||
- targets: [`localhost:9000`]
|
- targets: [`localhost:9000`]
|
||||||
|
|
||||||
|
To generate a configuration for API metrics for a bucket, replace ``replication`` with ``api``.
|
||||||
|
|
||||||
|
|
||||||
Generate a default metrics v2 config
|
Generate a default metrics v2 config
|
||||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
@@ -190,7 +219,7 @@ By default, :mc-cmd:`mc admin prometheus generate` generates a scrape configurat
|
|||||||
.. code-block:: shell
|
.. code-block:: shell
|
||||||
:class: copyable
|
:class: copyable
|
||||||
|
|
||||||
mc admin prometheus generate ALIAS
|
mc admin prometheus generate ALIAS
|
||||||
|
|
||||||
- Replace ``ALIAS`` with the :mc-cmd:`alias <mc alias>` of the MinIO deployment.
|
- Replace ``ALIAS`` with the :mc-cmd:`alias <mc alias>` of the MinIO deployment.
|
||||||
|
|
||||||
@@ -212,4 +241,4 @@ The following generates a scrape configuration for v2 bucket metrics:
|
|||||||
.. code-block:: shell
|
.. code-block:: shell
|
||||||
:class: copyable
|
:class: copyable
|
||||||
|
|
||||||
mc admin prometheus generate ALIAS bucket
|
mc admin prometheus generate ALIAS bucket
|
||||||
|
Reference in New Issue
Block a user