cfgobservatorium

package
v0.0.0-...-dc13b92 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 16, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenSLO

func GenSLO(genPyrra, genRules *mimic.Generator)

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 GenerateRBACFile(gen *mimic.Generator)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL