Configuring Kubernetes to run Grafana

Before you begin

  • Install Prometheus. For more information, refer to Installing Prometheus.
  • Install Grafana in your Kubernetes cluster. For the installation details, refer to Deploying Grafana on Kubernetes. To check if the service was created correctly, run kubectl get svc -n monitoring. A list of all the services is displayed. Ensure that the Grafana type is ClusterIP and the port is 3000. Below is an example.
    Name Type Cluster-IP External-IP Port Age
    grafana ClusterIP 10.97.236.243 <none> 3000/TCP 7m2s

About this task

Before you can create your first dashboard, you need to add your data source.
Note: Only users with the organization Admin role can add data sources.
To run Grafana and import your dashboard, follow these steps:

Procedure

  1. Enable port forwarding for the Grafana service.
    kubectl port-forward service/grafana 3000:3000 -n monitoring
  2. When using a remote setup, navigate to the Grafana sign-in page in your browser.
    <Cluster-IP>:3000
    Note: 3000 is the default port for Grafana. Alternatively, you can use localhost:3000 if you are on a local machine.
  3. Enter admin for both username and password, and then select Sign In. If successful, you will be prompted to change the password.
  4. Select OK and enter the new password.
  5. From the left panel, hover over + Create and select Import.
  6. Upload the K8_Sametime_Dashboard.json file. For more information, contact HCL Customer Support.
    Note: K8_Sametime_Dashboard.json is included in the Sametime Premium install archive. The .json is visible only after unzipping the folder.
  7. Select Prometheus (default) as data source and then select Import.
  8. Save the dashboard.