Install Prometheus plugin + Prometheus on your server

AI-generated summary

pfaffman introduces a new Prometheus exporter plugin for Discourse that enables exporting metrics for visualization via Prometheus. While the plugin provides data, it requires Prometheus to be installed and configured — which pfaffman offers to do for $100, including installing Prometheus in Docker and configuring it to read from Discourse. Users can then access metrics at http://your.server.com:9090/, though HTTPS sites may require workarounds like CNAMEs or IP access. sam suggests increasing the price and adding Grafana, password protection, and firewalling, along with using a specific dashboard (Grafana #3539). pfaffman agrees with the suggestion and notes they’ll need to research the implementation details.

The new Discourse Prometheus makes Discourse spit out data that Prometheus can consume and then make cool graphs. Check out the description linked above, if you haven’t already.

That data doesn’t help much if you don’t have Prometheus installed. You can head over to https://prometheus.io/ to download, install, and configure the Prometheus, or, for $100 I will:

  • install the Prometheus plugin on your Discourse instance
  • Install Prometheus in a Docker container on your server
  • Configure Prometheus to read data from your Discourse

When that is done, you can point your browser to http://your.server.com:9090/ and start figuring out how to make the most of the data. If your site uses https, your browser will insist on using https for port 9090, so you’ll need to create a cname for your server or access it by the IP number.

3 Likes

I would recommend upping the price and also installing Grafana + Password + firewalling off prometheus with this dashboard:

4 Likes

I would recommend that too!

I’ll have to RTFM for a while to see just what all that means.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.