autometrics-dev / am

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

Do not display the stdout/stderr from Prometheus #6

Closed hatchan closed 1 year ago

hatchan commented 1 year ago

Displaying this information is quite verbose and not super useful, since it is in a different format which makes reading it quite confusing.

We should store this data into a buffer (maybe only collecting the last x bytes) and then expose this to the user.

The main way of retrieving this information would be through the am's api. The explorer can display this information. We can even create a live view of these logs through web-sockets or server side events.

Another way of using this data would be if an error occurred, that am would dump these logs into a file. These can then be used by the user when creating a bug report.

Finally a cli argument can be added that will make the Prometheus stdout/stderr go to into am's stdout/stderr.