Enhancements in Minio Prometheus exporter (#5848)

Standardized Minio collectors based on Prometheus 
recommendations.
This commit is contained in:
Ashish Kumar Sinha
2018-05-09 08:40:55 +05:30
committed by Harshavardhana
parent bb34bd91f1
commit deb685c5b5
19 changed files with 1769 additions and 268 deletions

View File

@@ -1,6 +1,6 @@
## Minio Prometheus Metric
Minio server exposes an endpoint for Promethueus to scrape server data at `/minio/metric`.
Minio server exposes an endpoint for Promethueus to scrape server data at `/minio/prometheus/metric`.
### Prometheus probe
Prometheus is used to monitor Minio server information like http request, disk storage, network stats etc.. It uses a config file named `prometheus.yaml` to scrape data from server. The value for `metrics_path` and `targets` need to be configured in the config yaml to specify the endpoint and url as shown:
@@ -23,16 +23,14 @@ scrape_configs:
### List of Minio metric exposed
Minio exposes the following list of metric to Prometheus
```
minio_disk_storage_bytes
minio_disk_storage_free_bytes
minio_http_requests_duration_seconds_bucket
minio_http_requests_duration_seconds_count
minio_http_requests_duration_seconds_sum
minio_http_requests_total
minio_network_received_bytes
minio_network_sent_bytes
minio_offline_disks_total
minio_online_disks_total
minio_server_uptime_seconds
```
- `minio_disk_storage_bytes` : Total byte count of disk storage available to current Minio server instance
- `minio_disk_storage_free_bytes` : Total byte count of free disk storage available to current Minio server instance
- `minio_http_requests_duration_seconds_bucket` : The bucket into which observations are counted for creating Histogram
- `minio_http_requests_duration_seconds_count` : The count of current number of observations i.e. total HTTP requests (HEAD/GET/PUT/POST/DELETE).
- `minio_http_requests_duration_seconds_sum` : The current aggregate time spent servicing all HTTP requests (HEAD/GET/PUT/POST/DELETE) in seconds
- `minio_http_requests_total` : Total number of requests served by current Minio server instance
- `minio_network_received_bytes_total` : Total number of bytes received by current Minio server instance
- `minio_network_sent_bytes_total` : Total number of bytes sent by current Minio server instance
- `minio_offline_disks` : Total number of offline disks for current Minio server instance
- `minio_total_disks` : Total number of disks for current Minio server instance
- `minio_server_start_time_seconds` : Time Unix time in seconds when current Minio server instance started