autometrics-dev / am

Autometrics Companion CLI app
Apache License 2.0
16 stars 2 forks source link

Change working directory of prometheus and pushgateway #68

Closed hatchan closed 1 year ago

hatchan commented 1 year ago

Currently the Prometheus and Pushgateway process inherit the working directory of the am binary. Prometheus will create some files there for its storage. It would be better if we move that into $PWD/.autometrics/{prometheus,pushgateway} (not sure if it needs to be scoped to version as well). That way we can also create command to clean it up.

Another things related to this would be a --ephemeral flag which will delete the data after am shutsdown.