Generate namespace information managed by Sylva

Summary

We want to only be able to alert on failures in sylva managed workspaces (related to Sylva core components), in order to do this we need namespace metadata information. Expected workflow is to have a dedicated project for each client and all client namespaces are attached to that project.

Sylva core components are deployed in namespaces part of default/system projects or no project at all. Namespace which are not present in one of these projects is consider non-sylva core namespace and can be excluded from alerting.

Following metrics are needed:

  • rancher_project_info containing information about each projects on rancher level ( in particular we need project_id and project name to link to namespace metric)
  • kube_namespace_labels - containing information about namespace ( in particular label_field_cattle_io_project_id, the same id as the one form rancher project info)

Based on those metrics we can identify which namespaces are sylva core related. ( project_name = System/Default or none )

cc: @alinhg

Assignee Loading
Time tracking Loading