Sign inSign up

joepll/minio-exporter

By joepll

•Updated over 8 years ago

Prometheus exporter for Minio server

Image
0

100K+

joepll/minio-exporter repository overview

⁠MINIO EXPORTER

https://github.com/joe-pll/minio-exporter⁠

A Prometheus exporter for Minio cloud storage server

Build and launch the exporter as following.

make
./minio_exporter [flags]

⁠Flags

./minio_exporter --help
FlagDescriptionDefault
versionPrint version number and leave
web.listen-addressThe address to listen on to expose metrics.:9290
web.telemetry-pathThe listening path for metrics./metrics
minio.serverThe URL of the minio server. Use HTTPS if Minio accepts secure connections only.http://localhost:9000⁠
minio.access-keyThe value of the Minio access key. It is required in order to connect to the server""
minio.access-secretThe calue of the Minio access secret. It is required in order to connect to the server""
minio.bucket-statsCollect statistics about the buckets and files in buckets. It requires more computation, use it carefully in case of large buckets.false
./minio_exporter -minio.server another-host:9000 -minio.access-key "login_name" -minio.access-secret "login_password"

⁠Run with Docker

You can execute the exporter using the Docker image.

docker pull joepll/minio-exporter
docker run -p 9290:9290 joepll/minio-exporter -minio.server "minio.host:9000" -minio.access-key "login_name" -minio.access-secret "login_secret"

The same result can be achieved with Enviroment variables.

  • LISTEN_ADDRESS: is the exporter address, as the option web.listen-address
  • METRIC_PATH: the telemetry path. It corresponds to web.telemetry-path
  • MINIO_URL: the URL of the Minio server, as minio.server
  • MINIO_ACCESS_KEY: the Minio access key (minio.access-key)
  • MINIO_ACCESS_SECRET: the Minio access secret (minio.access-secret)
docker run \
       -p 9290:9290 \
       -e "MINIO_URL=http://host.local:9000" \
       -e "MINIO_ACCESS_KEY=loginname" \
       -e "MINIO_ACCESS_SECRET=password" \
       joepll/minio-exporter

⁠Exported metrics

MetricDescriptionDefault
minio_collector_successWhether or not the collector succeededtrue
minio_collector_duration_secondsDuration in second spent in collecting metricstrue
minio_uptimeServer uptime in secondstrue
minio_conn_total_input_bytesThe number of total bytes received in input from the servertrue
minio_conn_total_output_bytesThe number of total bytes transmitted by the servertrue
minio_storage_total_disk_spaceThe number of bytes of the total storage available in Miniotrue
minio_storage_free_disk_spaceThe remaining disk space in bytestrue
minio_storage_online_disksCount containing the available number of diskstrue
minio_offline_disksThe number of disks not reachable by the serverstrue
minio_read_quorumMinio read quorumtrue
minio_write_quorumMinio write quorumtrue
minio_storage_typeThe type of storaged used by Minio. It can be 1 = FS or 2 = Erasuretrue
minio_buckets_object_numberThe number of objects for each bucket. The bucket name is expressed in a labelfalse
minio_objects_total_sizeThe total size of all the objects per bucket.false
minio_max_object_sizeThe biggest element in size into the bucketfalse
minio_incomplete_uploads_numberThe number of incomplete updloadsfalse
minio_incomplete_uploads_total_sizeTotal size in bytes of all the objects incomplete upload per bucketfalse

Tag summary

Content type

Image

Digest

Size

4.7 MB

Last updated

over 8 years ago

docker pull joepll/minio-exporter