Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The following is an example of how you could setup Prometheus and Grafana using Docker to collect and monitor Fedora metrics. It is a quick and easy setup, and not intended to demonstrate a production ready install. This setup assumes that you already have Docker and Docker Compose installed on your system.

Note
For the purposes of this documentation, it is assumed Fedora is running using Jetty on port 8080 on the same machine that you intend to run Prometheus and Grafana on. If this is not the case, you will need to adjust some of the following configuration accordingly. For example, if you're running Fedora using Tomcat you may need to add a context to the the metrics_path so that it's something like /fcrepo/prometheus instead of /prometheus.

Linux Setup

Create a Prometheus config file, named prometheus.yml, that looks similar to the following:

...

Now that you have the datasource added, you can create a dashboard to display metrics from Fedora. Here is an example dashboard that you can import with some preconfigured pre-configured graphs. You will need to actively use Fedora before any graphs will appear.