question

Mattias W. avatar image
Mattias W. asked ·

Custom metric that fetches database statistics using a SQL-query?

Hi!

I would like to fetch statistics from a PostgreSQL-database (e.g. from pg_stat) using a custom SQL. This calls for custom metrics; but before fiddling with that: are there any repository for this? This has surely been done before, right? :)

database
10 |2000000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

Michael L. avatar image
Michael L. answered ·

Hi,

I don't know of any open source plugin that fetches data from PostgreSQL.

That being said, our services department has created several such plugins in the past, so if you want help with it you can reach out to us through your account/delivery manager.

Mike

1 comment Share
10 |2000000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

Sounds good, will do. Thanks!

0 Likes 0 · ·
Mattias W. avatar image
Mattias W. answered ·

Hi! I've now been able to successfully develop and deploy a custom plugin myself - reading blocked locks from PostgreSQL. Just FYI :)


image001.jpg (77.5 KiB)
1 comment Share
10 |2000000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

Great to hear, well done!

0 Likes 0 · ·