Configuring Docker and Podman to run Grafana
Before you begin
- Open the following ports for the different monitoring services:
- Grafana:
3001
- Prometheus:
9091
- Pushgateway:
9092
- Node-exporter:
9100
- Cadvisor:
8088
- Grafana:
- 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: You can uselocalhost
instead of the Docker address if you are on a local server. - Pushgateway:
About this task
Before you can create your first dashboard, you must add your data source.
Note: Only users with the organization Admin role can add
data sources.
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.
Procedure
-
Update the
docker-compose.yml
file. In community > environment, add the evironment variable below.MONITORING_ENABLED=true
-
Run the command to start monitoring services.
docker-compose -f docker-compose.yml -f docker-compose-monitoring.yml up -d
-
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 uselocalhost:3001
if you are on your local machine. - Enter admin for both username and password, and then select Sign In. If successful, you will be prompted to change the password.
- Select OK and enter the new password.
-
From the side menu, select Settings
.
- Select Data sources.
- Select Add data source.
- Select Prometheus as the data source.
-
Open the Prometheus data source and edit the settings. Under the
HTTP section, enter the following URL.
http://host.docker.internal:9091
- Select Save and test. A message is displayed to confirm if the data source is working.
- Upload the Docker_Sametime_Dashboard.json file. For more information, contact HCL Customer Support.
- Select Prometheus (default) as data source and then select Import.
- Save the dashboard.