iits-consulting / otc-prometheus-exporter

GNU General Public License v3.0
8 stars 1 forks source link

Fetch names of resources only when explicitly wished #9

Closed zeljkobekcic closed 1 year ago

zeljkobekcic commented 1 year ago

We don't want that the program fetches the names of the services always. It would be better if the user has the option to choose. By default this mapping should be off.

Introduce a way to configure this behaviour. This can be done with an environment variable. For example FETCH_RESOURCE_ID_TO_RESOURCE_NAME or so. If this value is set and not empty, then we will attempt to map the resource id to the resources given name.

Develop this feature in a new feature branch feature-optional-map-resource-id-to-name