Configuring Docker and Podman to run Grafana

Before you begin

  • Ensure that the following ports for the different monitoring services are open.
    • Grafana: 3001
    • Prometheus: 9091
    • Pushgateway: 9092
    • Node-exporter: 9100
    • Cadvisor: 8088
  • When applicable, ensure that these services are up and active for panels to be working.
    • Pushgateway: http://host.docker.internal:9092
    • Proxy metrics: http://host.docker.internal:8081/actuator/prometheus 
    • Cadvisor: http://host.docker.internal:8088/containers
    Note: If using a local server, replace host.docker.internal with localhost.

About this task

You must have Grafana administrator privileges to configure the Sametime Grafana dashboard.

Procedure

  1. Edit the docker-compose.yml file. Locate the community statement under environment and add the following environment variable after it.
    MONITORING_ENABLED=true
  2. Run the command to start monitoring services.
    docker-compose -f docker-compose.yml -f docker-compose-monitoring.yml up -d

    The Docker and Podman commands are similar. The only difference is that docker precedes the command when issued in a Docker environment and podman precedes the name in a Podman environment. Example commands used in the Sametime documentation are shown using Docker. For Podman, change docker to podman.

  3. When using a remote setup, navigate to the Grafana sign-in page in your browser.
    http://host.docker.internal:3001
    Note: 3001 is the default port for Grafana. Alternatively, you can use localhost:3001 if you are on your local machine.
  4. Enter admin for both username and password, and then select Sign In. If successful, you will be prompted to change the password.
  5. Select OK and enter the new password.
  6. From the side menu, select Settings .
  7. Select Data sources.
  8. Select Add data source.
  9. Select Prometheus as the data source.
  10. Open the Prometheus data source and edit the settings. Under the HTTP section, enter the following URL.
    http://host.docker.internal:9091
  11. Select Save and test. A message is displayed to confirm if the data source is working.
  12. Upload the Docker_Sametime_Dashboard.json file. For more information, contact HCL Customer Support.
  13. Select Prometheus (default) as data source and then select Import.
  14. Save the dashboard.