Pierre-Lannoy / wp-decalog

Capture and log events, metrics and traces on your site. Make WordPress observable - finally!
https://perfops.one/
GNU General Public License v3.0
64 stars 8 forks source link

Documentation on prometheus integrations #43

Closed oscarmparedes closed 1 year ago

oscarmparedes commented 1 year ago

Hi all!,

Im currently testing the plugin, so far I saw how powerful it is by integrating with with Loki, but with prometheus integrations I wasn't as lucky. Im always getting a not found error when trying to push metrics to a prometheus endpoint, Im using the same exact endpoint for remote_write other prometheus instances. There is no much information in the logs aside of that not found error (404), so Im not sure what is wrong with the endpoint url, the domain and port, or the path. And regarding exposing metrics, I wasn't able to find any documentation on the endpoint and path the metrics are exposed.

This is an amazing tool. This is not really a bug request, I just wanted to know if there is any documentation on how to setup the prometheus integrations.

Thanks a lot in advance!

oscarmparedes commented 1 year ago

Please ignore, all that is needed to do is deploy pushgateway and get the plugin to send the metrics to that endpoint. Enabling service monitor in the pushgateway official chart will make prometheus to automatically scrape those metrics for you. https://github.com/prometheus-community/helm-charts/blob/main/charts/prometheus-pushgateway/values.yaml