You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It appears that mysqld-exporter does not collect any non-floating point values from SHOW GLOBAL STATUS;
Use SQL query search GLOBAL STATUS
mysql> SHOW GLOBAL STATUS \G;
[...]
*************************** 389. row ***************************
Variable_name: Ssl_finished_connects
Value: 0
*************************** 390. row ***************************
Variable_name: Ssl_server_not_after
Value: May 24 11:46:23 2020 GMT
*************************** 391. row ***************************
Variable_name: Ssl_server_not_before
Value: Feb 24 11:46:23 2020 GMT
*************************** 392. row ***************************
Variable_name: Ssl_session_cache_hits
Value: 0
Via PromQL I can find mysql_global_status_ssl_finished_connects and mysql_global_status_ssl_session_cache_hits metrics
Via PromQL I cannot find mysql_global_status_ssl_server_not_after or mysql_global_status_ssl_server_not_before metrics
My assumption is that these metrics are skipped due to the SQL command output format being timestamps and not a floating point value.
It would be great to have the SSL expiration metrics available in Prometheus, as then I can create "SSL Expiring Soon" alerts for the certificates loaded by MariaDB.
Thanks :)
Host operating system:
Linux redacted.example.net 5.0.0-36-generic #39~18.04.1-Ubuntu SMP Tue Nov 12 11:09:50 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
mysqld_exporter version:
mysqld_exporter, version 0.12.1 (branch: HEAD, revision: 48667bf7c3b438b5e93b259f3d17b70a7c9aff96)
build user: root@0b3e56a7bc0a
build date: 20190729-12:35:58
go version: go1.12.7
MySQL server version
Percona XtraDB (i.e. MariaDB)
mysql> SELECT VERSION();
+------------------+
| VERSION() |
+------------------+
| 5.7.28-31-57-log |
+------------------+
1 row in set (0.00 sec)
The text was updated successfully, but these errors were encountered:
I have minimal Go experience, but #338 looks like a good example of the changes required when adding new metrics that aren't initially floating point values.
Issue
It appears that mysqld-exporter does not collect any non-floating point values from
SHOW GLOBAL STATUS;
mysql_global_status_ssl_finished_connects
andmysql_global_status_ssl_session_cache_hits
metricsmysql_global_status_ssl_server_not_after
ormysql_global_status_ssl_server_not_before
metricsMy assumption is that these metrics are skipped due to the SQL command output format being timestamps and not a floating point value.
It would be great to have the SSL expiration metrics available in Prometheus, as then I can create "SSL Expiring Soon" alerts for the certificates loaded by MariaDB.
Thanks :)
Host operating system:
mysqld_exporter version:
MySQL server version
Percona XtraDB (i.e. MariaDB)
The text was updated successfully, but these errors were encountered: