Prometheus is equal parts database, logging server, and monitoring/alerting. It's a very useful tool for many use cases, for example as a backend for Grafana.
global:scrape_interval:15srule_files:-"/alertmanager/alert.rules"scrape_configs:-job_name:"minio-cluster"## This can be omitted if MinIO has env variable:# MINIO_PROMETHEUS_AUTH_TYPE="public"# bearer_token: TOKENmetrics_path:/minio/v2/metrics/clusterscheme:httpsstatic_configs:-targets:["minio:9001"]-job_name:"minio-nodes"## This can be omitted if MinIO has env variable:# MINIO_PROMETHEUS_AUTH_TYPE="public"# bearer_token: TOKENmetrics_path:/minio/v2/metrics/nodescheme:httpsstatic_configs:-targets:["minio:9001"]-job_name:"minio-bucket"## This can be omitted if MinIO has env variable:# MINIO_PROMETHEUS_AUTH_TYPE="public"# bearer_token: TOKENmetrics_path:/minio/v2/metrics/bucketscheme:httpsstatic_configs:-targets:["minio:9001"]-job_name:"minio-resource"## This can be omitted if MinIO has env variable:# MINIO_PROMETHEUS_AUTH_TYPE="public"# bearer_token: TOKENmetrics_path:/minio/v2/metrics/resourcescheme:httpsstatic_configs:-targets:["minio:9001"]
Notes
The data/prometheus/ directory (and the files within, alert.rules and prometheus.yml) do not exist by default, you must create them before starting the container.