mysqld_exporter icon indicating copy to clipboard operation
mysqld_exporter copied to clipboard

How can i get hostname in mysqld_exporter like 'show global VARIABLES like 'hostname''

Open TKK123 opened this issue 4 years ago • 1 comments

Host operating system: output of uname -a

mysqld_exporter version: output of mysqld_exporter --version

MySQL server version

mysqld_exporter command line flags

What did you do that produced an error?

What did you expect to see?

What did you see instead?

TKK123 avatar Aug 05 '21 03:08 TKK123

mysqld_exporter only exports metrics that are numeric: https://github.com/prometheus/mysqld_exporter/blob/4e8e2b98de1c2bcfed7bf0a5c08b3a885b1cbf46/collector/global_variables.go#L164

mkopinsky avatar Nov 01 '21 16:11 mkopinsky