matusnovak / prometheus-smartctl

HDD S.M.A.R.T exporter for Prometheus written in Python
The Unlicense
155 stars 43 forks source link

Add possibility to set port number by passing an environment variable #20

Closed yosh-se closed 2 years ago

yosh-se commented 2 years ago

LIke the description indecates, I'd like to be able to set a custom port number through an env. Fallback to the default 9902 port if the env "PORT" is missing.

ngosang commented 2 years ago

Implemented in #27