chore: connect instances to prometheus
Description
Adds the necessary configuration so that namespaces outside of prometheus
and kube-system
are monitored.
Supporting information
- https://github.com/prometheus-operator/prometheus-operator/issues/2890
- https://tasks.opencraft.com/browse/SE-5491
Testing instructions
- Apply the changes
- For any instance change the
EDX_PLATFORM_VERSION
to something that doesn't exist likeopencraft-release/maple.10-grove
- Deploy your instance (
./grove deploy {instance_name}
) - When the instance fails to deploy there will be a
KubeJobFailed
alert.- Port forward the prometheus container:
./kubectl --namespace monitoring port-forward svc/prometheus-operated 9090
- View the alerts: http://localhost:9090/alerts
- Port forward the prometheus container:
Screenshots
Checklist
If any of the items below is not applicable, do not remove them, but put a check in it.
-
All providers include the new feature/change -
All affected providers can provision new clusters -
Unit tests are added/updated -
Documentation is added/updated -
The TOOLS_CONTAINER_IMAGE_VERSION
in ci_vars.yml is updated -
The grove-template repository is updated
Edited by Keith Grootboom