minio-exporter icon indicating copy to clipboard operation
minio-exporter copied to clipboard

Minio Service Uptime & Minio Server Uptime aren't different

Open abhinav-chittora opened this issue 7 years ago • 4 comments

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

abhinav-chittora avatar Jan 22 '18 10:01 abhinav-chittora

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.

joe-pll avatar Feb 01 '18 22:02 joe-pll

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?

abhinav-chittora avatar Feb 02 '18 07:02 abhinav-chittora

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"?

joe-pll avatar Feb 05 '18 08:02 joe-pll

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

Debug output = verbose mode.

abhinav-chittora avatar Feb 06 '18 06:02 abhinav-chittora