Hey.
It would be nice if there was something like a write_to_stdout() function, or if write_to_textfile() would somehow allow writing to stdout.
For debugging that would seem to be much more helpful. Also, distros may have their own unified means of collecting the .prom files and thus even in production it may make sense to let a program simply write the metrics to stdout.
Cheers,
Chris.
PS: Using /dev/stdout doesn't work, as it tries to write it's tmpfile there.
Hey.
It would be nice if there was something like a
write_to_stdout()function, or ifwrite_to_textfile()would somehow allow writing to stdout.For debugging that would seem to be much more helpful. Also, distros may have their own unified means of collecting the
.promfiles and thus even in production it may make sense to let a program simply write the metrics to stdout.Cheers,
Chris.
PS: Using
/dev/stdoutdoesn't work, as it tries to write it's tmpfile there.