Operations
Monitoring
You can connect to the granfana dashboard that shows metrics of the infrastructure.
We expect you to the have kubectl
and aws
or gcloud
installed on your system.
Requirements
Install kubectl; https://kubernetes.io/docs/tasks/tools/#kubectl
Install (AWS only); https://docs.aws.amazon.com/cli/latest/userguide/getting-started-install.html#getting-started-install-instructions
Install (GCP only); https://cloud.google.com/sdk/docs/install-sdk
After installation make sure that you have authorized the cli to connect the cloud platform.
For GCP
; see https://cloud.google.com/sdk/docs/install-sdk#initializing_the,
For AWS
; see https://docs.aws.amazon.com/cli/latest/userguide/cli-chap-configure.html
With cli properly configured, run the following command to add access to the kubectl context
.
For GCP
, run;
gcloud container clusters get-credentials cluster --region "<REGION_HERE>" --project "<PROJECT_ID>"
WARNING: If you are seeing "CRITICAL: ACTION REQUIRED: gke-gcloud-auth-plugin, which is needed for continued use of kubectl, was not found or is not executable. Install gke-gcloud-auth-plugin for use with kubectl by following https://cloud.google.com/blog/products/containers-kubernetes/kubectl-auth-changes-in-gke", run
gcloud components install gke-gcloud-auth-plugin
and run the gcloud command above again.
For AWS
, run;
aws eks update-kubeconfig --region "<REGION_HERE>" --name aw-services
Finally, run;
grafana_pod=$(kubectl get pods -n observability -l "app.kubernetes.io/name=grafana" -o jsonpath="{.items[0].metadata.name}")
grafana_port=$(kubectl get pod "$grafana_pod" -n observability -o jsonpath='{.spec.containers[?(@.name=="grafana")].ports[?(@.name=="grafana")].containerPort}')
kubectl port-forward "pods/$grafana_pod" "3000:$grafana_port" -n observability
Navigate to http://localhost:3000
on the browser to see the dashboard.