Re: [prometheus-developers] Creating a time series from data in a log file

2021-03-09 Thread Andrew Fielden
The former i.e. logs produced as a snapshot, into a timestamped file, when the process receives SIGINT. On Tuesday, 9 March 2021 at 11:10:25 UTC Stuart Clark wrote: > On 2021-03-09 09:28, Andrew Fielden wrote: > > Thanks for the suggestion, mtail looks useful. However the log files > > are only

Re: [prometheus-developers] Creating a time series from data in a log file

2021-03-09 Thread Stuart Clark
On 2021-03-09 09:28, Andrew Fielden wrote: Thanks for the suggestion, mtail looks useful. However the log files are only produced when the system being monitored is sent a SIGINT signal. I wonder if mtail can handle that? Is it that the logs are only produced when you send SIGINT for a

Re: [prometheus-developers] Creating a time series from data in a log file

2021-03-09 Thread Andrew Fielden
Thanks for the suggestion, mtail looks useful. However the log files are only produced when the system being monitored is sent a SIGINT signal. I wonder if mtail can handle that? On Tuesday, 9 March 2021 at 08:47:29 UTC d...@dgl.cx wrote: > Rather than writing your own Go code, you might be

Re: [prometheus-developers] Creating a time series from data in a log file

2021-03-09 Thread David Leadbeater
Rather than writing your own Go code, you might be interested in https://github.com/google/mtail which is a tool designed for that exact purpose. David On Tue, 9 Mar 2021 at 08:44, Andrew Fielden wrote: > Apologies if this is a dumb question, I'm a newcomer to Prometheus. I have > a collection

[prometheus-developers] Creating a time series from data in a log file

2021-03-09 Thread Andrew Fielden
Apologies if this is a dumb question, I'm a newcomer to Prometheus. I have a collection of log files which contain performance stats for a set of rules. I want to parse these files, and create a time series of each individual stat, on a per rule basis, and make these available to the Prometheus