joe-pll / minio-exporter

A Prometheus exporter for Minio cloud storage server
Apache License 2.0
23 stars 15 forks source link

Minio Service Uptime & Minio Server Uptime aren't different #8

Open abhinav-chittora opened 6 years ago

abhinav-chittora commented 6 years ago

Currently, minio_server_uptime metrics show minio_uptime data. However, there are chances, that service uptime (minio_uptime) can be different than server uptime (minio_server_uptime).

https://github.com/joe-pll/minio-exporter/blob/master/minio_exporter.go#L168 issue seems at this line.

Environment: OS Version: Centos 7 MInio Version: 2018-01-18T20:33:21Z

joe-pll commented 6 years ago

The values are coming from two different data structures of Minio. The minio_uptime comes from ServiceStatus.Uptime, while the minio_server_uptime comes from the ServerInfo structure. I tested on my own and stopped one of the servers. The server uptime is different from the ServiceStatus uptime. If you have one service only these values are the same.

abhinav-chittora commented 6 years ago

I am using minio on single system and minio_exporter returns the value for service uptime & server uptime. Is there any way to debug outputs?

joe-pll commented 6 years ago

Yes, it is normal to return both values. In the Minio API these values are exposed differently. But in case of a single server are the same. What do you mean with "debug outputs"?

abhinav-chittora commented 6 years ago

The problem is both parameters return the same values however, system uptime and Service uptime are different.

Debug output = verbose mode.