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
- Configure Prometheus to scrape Ocean metrics by adding the Ocean Metric Exporter as a scrape target.
- Define necessary jobs and targets in your Prometheus configuration file to ensure metrics are accurately collected.
- 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
-
Copy the Ocean Grafana ID 21768 to the clipboard.
-
In your Grafana dashboard screen, click New > Import.
-
Paste in the ID and click Load.
-
Select the Prometheus datasource.
-
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.