Standardizing Monitoring Setup: Importing Pre-configured Prometheus Dashboards into Grafana
search cancel

Standardizing Monitoring Setup: Importing Pre-configured Prometheus Dashboards into Grafana

book

Article ID: 435099

calendar_today

Updated On:

Products

VMware Tanzu Data Suite

Issue/Introduction

In high-demand environments, building comprehensive Grafana dashboards from scratch is a time-consuming and manual process. To streamline the onboarding of new customers and ensure consistent monitoring across deployments, pre-configured JSON dashboard files are provided. These templates allow users to visualize critical metrics instantly without the need for custom query building.

Environment

NA

Cause

NA

Resolution

Phase 1: Configure the Prometheus Data Source

Before importing dashboards, Grafana must be connected to the Prometheus instance that is collecting your metrics.

  1. Navigate to Grafana HomeConnectionsData Sources.

  2. Click Add data source and choose Prometheus

  3. Configuration Settings:

    • Name: Set this to prometheus (Note: The pre-configured JSON files typically look for this specific UID/Name).

    • URL: Enter your Prometheus server URL and Port (e.g., http://localhost:9090).

    • Scrape Interval: Match this to your Prometheus configuration (e.g., 15s).

    • HTTP Method: Set to POST to ensure support for large queries.

  4. Click Save & Test. You should receive a confirmation message stating: "Data source is working".

Phase 2: Import the Dashboard JSON Files

Once the data source is verified, follow these steps to upload the dashboard templates.

  1. Navigate to Grafana HomeDashboards.

  2. In the top-right corner, click the New dropdown menu (located near the 'Search for dashboard' bar).

  3. Select the Import option.

  4. You can either:

    • Upload Dashboard JSON file: Click the button to select the provided file from your local machine.

    • Paste JSON: Open the .json file in a text editor, copy the contents, and paste it into the Import via panel json box.

  5. Select the prometheus data source created in Phase 1 from the dropdown menu.

  6. Click Import.


Summary: Following these steps ensures that new customers can immediately access standardized metrics with zero manual query configuration.

Attachments

Members-Mixed-Prometheus-Export-View.json get_app
Members_Prometheus-Export-View.json get_app
Cluster_Prometheus-Export-View.json get_app