Documentation ¶
Index ¶
- func GenSLO(genPyrra, genRules *mimic.Generator)
- func GenerateRBAC() *observatoriumRBAC
- func GenerateRBACFile(gen *mimic.Generator)
- func ObservatoriumSLOs(envName rhobsInstanceEnv, signal signal) []pyrrav1alpha1.ServiceLevelObjective
- func RhelemeterSLOs(envName rhobsInstanceEnv) []pyrrav1alpha1.ServiceLevelObjective
- func TelemeterReceiveSLOs(envName rhobsInstanceEnv, instanceName string) []pyrrav1alpha1.ServiceLevelObjective
- func TelemeterSLOs(envName rhobsInstanceEnv) []pyrrav1alpha1.ServiceLevelObjective
- func TelemeterUploadSLOs(envName rhobsInstanceEnv) []pyrrav1alpha1.ServiceLevelObjective
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenSLO ¶
GenSLO is the function responsible for tying together Pyrra Objectives and converting them into SLO+Rule files.
func GenerateRBAC ¶
func GenerateRBAC() *observatoriumRBAC
GenerateRBAC generates rbac.json that is meant to be consumed by observatorium.libsonnet and put into config map consumed by observatorium-api.
RBAC defines roles and role binding for each tenant and matching subject names that will be validated against 'user' field in the incoming JWT token that contains service account.
TODO(bwplotka): Generate tenants.yaml (without secrets) using the same tenant definitions.
func GenerateRBACFile ¶
func ObservatoriumSLOs ¶
func ObservatoriumSLOs(envName rhobsInstanceEnv, signal signal) []pyrrav1alpha1.ServiceLevelObjective
ObservatoriumSLOs returns the observatorium/observatorium specific SLOs we maintain.
This set of SLOs are driven by the RHOBS Service Level Objectives document https://docs.google.com/document/d/1wJjcpgg-r8rlnOtRiqWGv0zwr1MB6WwkQED1XDWXVQs/edit
func RhelemeterSLOs ¶
func RhelemeterSLOs(envName rhobsInstanceEnv) []pyrrav1alpha1.ServiceLevelObjective
RhelemeterSLOs returns the openshift/telemeter specific SLOs we maintain for the Rhelemeter instance.
func TelemeterReceiveSLOs ¶
func TelemeterReceiveSLOs(envName rhobsInstanceEnv, instanceName string) []pyrrav1alpha1.ServiceLevelObjective
TelemeterReceiveSLOs returns the openshift/telemeter specific SLOs we maintain for the remote write path. This path runs on diferent instances, so we need to be able to customize the instance name.
func TelemeterSLOs ¶
func TelemeterSLOs(envName rhobsInstanceEnv) []pyrrav1alpha1.ServiceLevelObjective
TelemeterSLOs returns the openshift/telemeter specific SLOs we maintain.
This set of SLOs are driven by the RHOBS Service Level Objectives document https://docs.google.com/document/d/1wJjcpgg-r8rlnOtRiqWGv0zwr1MB6WwkQED1XDWXVQs/edit
func TelemeterUploadSLOs ¶
func TelemeterUploadSLOs(envName rhobsInstanceEnv) []pyrrav1alpha1.ServiceLevelObjective
TelemeterReceiveSLOs returns the openshift/telemeter specific SLOs we maintain for the upload path. These are only available for the Telemeter instance, so there's no customization on instance name.
Types ¶
This section is empty.