autometrics-dev / am

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

Add TOML support #67

Closed hatchan closed 1 year ago

hatchan commented 1 year ago

This allows a user to create a am.toml file and it will be read by am start. It will contain certain settings that are specific for the application. So things like endpoint and enable gateway can be configured here.

A user could create the following am.toml which follows the standards used in their application:

enable-pushgateway = true

[[endpoint]]
url = "http://localhost:3030/metrics"
job-name = "my_app"

The user then only has to do am start to have everything running.