config

package
v0.0.0-...-009436c Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2021 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ClusterNameKey                  = "cluster-name"
	HubInfoSecretName               = "hub-info-secret"
	HubInfoSecretKey                = "hub-info.yaml" // #nosec
	ObservatoriumAPIRemoteWritePath = "/api/metrics/v1/default/api/v1/receive"
	AnnotationSkipCreation          = "skip-creation-if-exist"

	CollectorImage         = "COLLECTOR_IMAGE"
	InstallPrometheus      = "INSTALL_PROM"
	PullSecret             = "PULL_SECRET"
	ImageConfigMap         = "images-list"
	AllowlistConfigMapName = "observability-metrics-allowlist"
)
View Source
const (
	MetricsCollectorImgName = "metrics-collector"
	MetricsCollectorKey     = "metrics_collector"

	PrometheusImgName = "prometheus"
	PrometheusKey     = "prometheus"

	KubeStateMetricsImgName = "kube-state-metrics"
	KubeStateMetricsKey     = "kube_state_metrics"

	NodeExporterImgName = "node-exporter"
	NodeExporterKey     = "node_exporter"

	KubeRbacProxyImgName = "kube-rbac-proxy"
	KubeRbacProxyKey     = "kube_rbac_proxy"

	ConfigmapReloaderImgName = "origin-configmap-reloader"
	ConfigmapReloaderKey     = "prometheus-config-reloader"
)

Variables

Functions

This section is empty.

Types

type HubInfo

type HubInfo struct {
	ClusterName              string `yaml:"cluster-name"`
	ObservatoriumAPIEndpoint string `yaml:"observatorium-api-endpoint"`
	AlertmanagerEndpoint     string `yaml:"alertmanager-endpoint"`
	AlertmanagerRouterCA     string `yaml:"alertmanager-router-ca"`
}

HubInfo is the struct that contains the common information about the hub cluster, for example the name of managed cluster on the hub, the URL of observatorium api gateway, the URL of hub alertmanager and the CA for the hub router

Jump to

Keyboard shortcuts

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