This is a good use case for mtail.

https://github.com/google/mtail

Here's an example of what we collect from postgres logs:
https://gitlab.com/gitlab-cookbooks/gitlab-mtail/-/blob/master/files/default/mtail/postgres.mtail

On Mon, Apr 13, 2020 at 5:35 PM Rushikesh socha <[email protected]>
wrote:

> Hi,
>
> I wanted to setup alert for any errors encountered for the postgres
> database. Is there any way prometheus can read postgres log file and send
> alert for any errors ?
>
> --
> You received this message because you are subscribed to the Google Groups
> "Prometheus Users" 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-users/f1ea419b-2302-4d98-8950-3d10f1c781c9%40googlegroups.com
> <https://groups.google.com/d/msgid/prometheus-users/f1ea419b-2302-4d98-8950-3d10f1c781c9%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Prometheus Users" 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-users/CABbyFmrGDWOKDvd8q4FPiScx3q%3Di5NLj%2Bm4iUN37SjX4Pka0MQ%40mail.gmail.com.

Reply via email to