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 <[email protected]> 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 [email protected]. > 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-developers/CAP9KPhDGENGM-ur%2BQhwFDF_n40K25ht7m7GH7ThBz_PTdbJ4-w%40mail.gmail.com.

