rafal-szypulka / itm_exporter

ITM Exporter for Prometheus
MIT License
13 stars 2 forks source link

Change relative path to absolute #5

Closed vinhali closed 3 years ago

vinhali commented 4 years ago

Hello, why when I change the line

https://github.com/rafal-szypulka/itm_exporter/blob/74c9b849d5d819558f137c3bec872f059649f46c/main.go#L331

to

yamlFile, err := ioutil.ReadFile("/etc/itm_exporter/config.yaml")

Is the exporter unable to display all the parameters that exist in the .YAML file?

rafal-szypulka commented 3 years ago

Support for custom config file name and location added in version 0.6: https://github.com/rafal-szypulka/itm_exporter/releases/tag/v0.6 Use -c /path/to/configfile.yaml

vinhali commented 3 years ago

Very good, thanks a lot!