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 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 <andre...@gmail.com> wrote:
>
>> 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 
>> server.
>> I'm just looking for a helpful code example of how to do this. Ideally in 
>> Golang.
>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Prometheus Developers" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to prometheus-devel...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/prometheus-developers/a5ae6e93-0061-43d3-ad1b-1fd704d7a706n%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/prometheus-developers/a5ae6e93-0061-43d3-ad1b-1fd704d7a706n%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Prometheus Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to prometheus-developers+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-developers/e54b582e-cf8e-4f0c-a5ad-d5bee09f44een%40googlegroups.com.

Reply via email to