Cluster Monitoring
Codesphere provides two monitoring options for your private cloud installation: cluster-level monitoring for individual cluster oversight, and aggregated monitoring across multiple clusters for enterprise-wide visibility. Choose the option that best fits your operational needs.
Cluster-Level Monitoring (Grafana)
As part of the regular Codesphere installation, a Grafana instance with predefined dashboards is automatically deployed into the cluster. The login credentials are automatically generated. The Grafana UI can be reached via port-forwarding to localhost.
Steps to access the Grafana instance:
- Retrieve credentials:
- Username:
admin - Password:
kubectl get secret grafana -n monitoring -o jsonpath={.data.admin-password} | base64 -d
- Username:
- Access Grafana in your local browser:
- Start port-forward with
kubectl port-forward deployment/grafana 3000:3000 -n monitoring - On your local browser visit
localhost:3000 - Login with the credentials from the previous step.
- Start port-forward with
- Hint: if you only have kubectl access via e.g. a jumphost, you can use ssh port-forwarding to continue to your local machine:
ssh -L 3000:localhost:3000 user@jumphost
Aggregated Multi-Cluster Monitoring
For organizations managing multiple Codesphere clusters, aggregated monitoring provides centralized visibility across all installations. This option enables Prometheus remote write functionality to send metrics to a central monitoring system managed by Codesphere SRE.
Enabling Aggregated Monitoring
To enable aggregated monitoring, configure the following settings in your installation values file as described in the installation guide:
monitoring:
prometheus:
# optional, enable if external monitoring by Codesphere SRE is agreed
remoteWrite:
enabled: false
clusterName: my-cluster-name
Configuration Parameters
- enabled: Set to
trueto activate remote write functionality - clusterName: A unique identifier for this cluster in the aggregated monitoring system. Choose a descriptive name that clearly identifies the cluster (e.g.,
production-us-east,staging-eu-west)
Aggregated monitoring requires prior agreement with Codesphere SRE. Contact your Codesphere representative to set up the central monitoring infrastructure before enabling this feature.