Skip to main content

Set up and Configure Grafana for Ocean

Cloud service provider relevance: AWS Kubernetes, AKS, GKE

Before you begin, make sure you have all the following prerequisites:

  • Prometheus server and Grafana server: employed in the cluster.
  • Ocean controller: Manages scaling the Kubernetes data plane.
  • Ocean network client: Handles network cost analysis in an Ocean-managed cluster.
  • Ocean metrics exporter: Exposes Ocean-specific metrics to Prometheus.
  • kube-state-metrics service: (installed with Prometheus) A listening service that generates metrics about the state of Kubernetes objects by leveraging the Kubernetes API.

Configure Prometheus

  1. Configure Prometheus to scrape Ocean metrics by adding the Ocean Metric Exporter as a scrape target.
  2. Define necessary jobs and targets in your Prometheus configuration file to ensure metrics are accurately collected.
  3. Add Prometheus as a data source in Grafana (under New Connection) and connect with your cluster.

Import the Ocean Scaling and Cost Optimization Dashboard to Grafana

  1. Copy the Ocean Grafana ID 21768 to the clipboard.

  2. In your Grafana dashboard screen, click New > Import.

    grafana-import-dashboard
  3. Paste in the ID and click Load.

    grafana-import-part2-dashboard
  4. Select the Prometheus datasource.

  5. Click Import.

The following set of Ocean dashboards is available in Grafana:

  • Current Status (displayed by default).
  • Cost and Usage.
  • Network Metrics.
  • Scaling Overview.
  • Right Sizing.