Documentation ¶
Index ¶
- Constants
- func GenerateRuleFileContent(groups []monitoringv1.RuleGroup) string
- func GetLabels(opts Options) map[string]string
- func GetRequiredLabels() map[string]string
- func NewRulerService(opts Options) *corev1.Service
- func NewRulerStatefulSet(opts Options) *appsv1.StatefulSet
- type Endpoint
- type Options
Constants ¶
View Source
const ( // Name is the name of the Thanos Ruler component. Name = "thanos-ruler" // ComponentName is the name of the Thanos Ruler component. ComponentName = "rule-evaluation-engine" GRPCPort = 10901 GRPCPortName = "grpc" HTTPPort = 9090 HTTPPortName = "http" )
Variables ¶
This section is empty.
Functions ¶
func GenerateRuleFileContent ¶
func GenerateRuleFileContent(groups []monitoringv1.RuleGroup) string
Convert PrometheusRule groups to YAML format
func GetRequiredLabels ¶
GetRequiredLabels returns a map of labels that can be used to look up thanos ruler resources. These labels are guaranteed to be present on all resources created by this package.
func NewRulerService ¶
func NewRulerStatefulSet ¶
func NewRulerStatefulSet(opts Options) *appsv1.StatefulSet
Types ¶
type Endpoint ¶
Endpoint represents a single QueryAPI DNS formatted address. TODO(saswatamcode): Add validation.
type Options ¶
type Options struct { manifests.Options Endpoints []Endpoint RuleFiles []corev1.ConfigMapKeySelector ObjStoreSecret corev1.SecretKeySelector Retention manifests.Duration AlertmanagerURL string ExternalLabels map[string]string AlertLabelDrop []string StorageSize resource.Quantity EvaluationInterval manifests.Duration }
Options for Thanos Ruler
func (Options) GetGeneratedResourceName ¶
func (Options) GetSelectorLabels ¶
Click to show internal directories.
Click to hide internal directories.