Documentation ¶
Index ¶
- func GetChartInfo() *chart.Chart
- func GetImageTags() map[string]string
- type AdditionalPrometheusRules
- type AdditionalScrapeConfig
- type BasicAuth
- type DefaultRules
- type DisabledTool
- type DisabledToolServicePerReplica
- type Global
- type Group
- type Image
- type Ingress
- type IngressPerReplica
- type KubernetesSdConfig
- type NamespaceSelector
- type PodDisruptionBudget
- type PodMetadata
- type PodSecurityPolicy
- type PrometheusSpec
- type PrometheusValues
- type Query
- type Rbac
- type RelabelConfig
- type RemoteWrite
- type Request
- type Resources
- type Rule
- type Rules
- type SecretKeySelector
- type SecurityContext
- type Selector
- type Service
- type ServiceAccount
- type ServiceMonitor
- type ServicePerReplica
- type StorageSpec
- type TLSConfig
- type Values
- type ValuesRelabelConfig
- type VolumeClaimTemplate
- type VolumeClaimTemplateSpec
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetChartInfo ¶
func GetImageTags ¶
Types ¶
type AdditionalPrometheusRules ¶
type AdditionalPrometheusRules struct { Name string `yaml:"name,omitempty"` Groups []*Group `yaml:"groups,omitempty"` AdditionalLabels map[string]string `yaml:"additionalLabels,omitempty"` }
func GetDefaultRules ¶
func GetDefaultRules(labels map[string]string) (*AdditionalPrometheusRules, error)
type AdditionalScrapeConfig ¶
type AdditionalScrapeConfig struct { JobName string `yaml:"job_name,omitempty"` KubernetesSdConfigs []*KubernetesSdConfig `yaml:"kubernetes_sd_configs,omitempty"` Scheme string `yaml:"scheme,omitempty"` TLSConfig *TLSConfig `yaml:"tls_config,omitempty"` RelabelConfigs []*RelabelConfig `yaml:"relabel_configs,omitempty"` MetricRelabelConfigs []*RelabelConfig `yaml:"metric_relabel_configs,omitempty"` BearerTokenFile string `yaml:"bearer_token_file,omitempty"` }
type BasicAuth ¶
type BasicAuth struct { Username *SecretKeySelector `yaml:"username,omitempty"` Password *SecretKeySelector `yaml:"password,omitempty"` }
type DefaultRules ¶
type DisabledTool ¶
type DisabledTool struct {
Enabled bool `yaml:"enabled"`
}
type DisabledToolServicePerReplica ¶ added in v0.33.0
type DisabledToolServicePerReplica struct { Enabled bool ServicePerReplica *DisabledTool `yaml:"servicePerReplica"` IngressPerReplica *DisabledTool `yaml:"ingressPerReplica"` }
type Global ¶
type Global struct { Rbac *Rbac `yaml:"rbac,omitempty"` ImagePullSecrets []interface{} `yaml:"imagePullSecrets,omitempty"` }
type Ingress ¶
type Ingress struct { Enabled bool `yaml:"enabled,omitempty"` Annotations map[string]string `yaml:"annotations,omitempty"` Labels map[string]string `yaml:"labels,omitempty"` Hosts []interface{} `yaml:"hosts,omitempty"` Paths []interface{} `yaml:"paths,omitempty"` TLS []interface{} `yaml:"tls,omitempty"` }
type IngressPerReplica ¶
type IngressPerReplica struct { Enabled bool `yaml:"enabled,omitempty"` Annotations map[string]string `yaml:"annotations,omitempty"` Labels map[string]string `yaml:"labels,omitempty"` HostPrefix string `yaml:"hostPrefix,omitempty"` HostDomain string `yaml:"hostDomain,omitempty"` Paths []interface{} `yaml:"paths,omitempty"` TLSSecretName string `yaml:"tlsSecretName,omitempty"` }
type KubernetesSdConfig ¶
type KubernetesSdConfig struct {
Role string `yaml:"role,omitempty"`
}
type NamespaceSelector ¶
type PodDisruptionBudget ¶
type PodMetadata ¶
type PodSecurityPolicy ¶
type PodSecurityPolicy struct {
AllowedCapabilities []interface{} `yaml:"allowedCapabilities,omitempty"`
}
type PrometheusSpec ¶
type PrometheusSpec struct { ScrapeInterval string `yaml:"scrapeInterval,omitempty"` EvaluationInterval string `yaml:"evaluationInterval,omitempty"` ListenLocal bool `yaml:"listenLocal,omitempty"` EnableAdminAPI bool `yaml:"enableAdminAPI,omitempty"` Image *Image `yaml:"image,omitempty"` Tolerations k8s.Tolerations `yaml:"tolerations,omitempty"` AlertingEndpoints []interface{} `yaml:"alertingEndpoints,omitempty"` ExternalLabels map[string]string `yaml:"externalLabels,omitempty"` ReplicaExternalLabelName string `yaml:"replicaExternalLabelName,omitempty"` ReplicaExternalLabelNameClear bool `yaml:"replicaExternalLabelNameClear,omitempty"` PrometheusExternalLabelName string `yaml:"prometheusExternalLabelName,omitempty"` PrometheusExternalLabelNameClear bool `yaml:"prometheusExternalLabelNameClear,omitempty"` ExternalURL string `yaml:"externalUrl,omitempty"` NodeSelector map[string]string `yaml:"nodeSelector,omitempty"` Secrets []interface{} `yaml:"secrets,omitempty"` ConfigMaps []interface{} `yaml:"configMaps,omitempty"` Query *Query `yaml:"query,omitempty"` RuleNamespaceSelector *NamespaceSelector `yaml:"ruleNamespaceSelector,omitempty"` RuleSelectorNilUsesHelmValues bool `yaml:"ruleSelectorNilUsesHelmValues,omitempty"` RuleSelector *Selector `yaml:"ruleSelector,omitempty"` ServiceMonitorSelectorNilUsesHelmValues bool `yaml:"serviceMonitorSelectorNilUsesHelmValues,omitempty"` ServiceMonitorSelector *Selector `yaml:"serviceMonitorSelector,omitempty"` ServiceMonitorNamespaceSelector *NamespaceSelector `yaml:"serviceMonitorNamespaceSelector,omitempty"` PodMonitorSelectorNilUsesHelmValues bool `yaml:"podMonitorSelectorNilUsesHelmValues,omitempty"` PodMonitorSelector *Selector `yaml:"podMonitorSelector,omitempty"` PodMonitorNamespaceSelector *NamespaceSelector `yaml:"podMonitorNamespaceSelector,omitempty"` Retention string `yaml:"retention,omitempty"` RetentionSize string `yaml:"retentionSize,omitempty"` WalCompression bool `yaml:"walCompression,omitempty"` Paused bool `yaml:"paused,omitempty"` Replicas int `yaml:"replicas,omitempty"` LogLevel string `yaml:"logLevel,omitempty"` LogFormat string `yaml:"logFormat,omitempty"` RoutePrefix string `yaml:"routePrefix,omitempty"` PodMetadata *PodMetadata `yaml:"podMetadata,omitempty"` PodAntiAffinity string `yaml:"podAntiAffinity,omitempty"` PodAntiAffinityTopologyKey string `yaml:"podAntiAffinityTopologyKey,omitempty"` Affinity struct{} `yaml:"affinity,omitempty"` RemoteRead []interface{} `yaml:"remoteRead,omitempty"` RemoteWrite []*RemoteWrite `yaml:"remoteWrite,omitempty"` RemoteWriteDashboards bool `yaml:"remoteWriteDashboards,omitempty"` Resources *k8s.Resources `yaml:"resources,omitempty"` StorageSpec *StorageSpec `yaml:"storageSpec,omitempty"` AdditionalScrapeConfigs []*AdditionalScrapeConfig `yaml:"additionalScrapeConfigs,omitempty"` AdditionalAlertManagerConfigs []interface{} `yaml:"additionalAlertManagerConfigs,omitempty"` AdditionalAlertRelabelConfigs []interface{} `yaml:"additionalAlertRelabelConfigs,omitempty"` SecurityContext *SecurityContext `yaml:"securityContext,omitempty"` PriorityClassName string `yaml:"priorityClassName,omitempty"` Thanos struct{} `yaml:"thanos,omitempty"` Containers []interface{} `yaml:"containers,omitempty"` AdditionalScrapeConfigsExternal bool `yaml:"additionalScrapeConfigsExternal,omitempty"` }
type PrometheusValues ¶
type PrometheusValues struct { Enabled bool `yaml:"enabled,omitempty"` Annotations map[string]string `yaml:"annotations,omitempty"` ServiceAccount *ServiceAccount `yaml:"serviceAccount,omitempty"` Service *Service `yaml:"service,omitempty"` ServicePerReplica *ServicePerReplica `yaml:"servicePerReplica,omitempty"` PodDisruptionBudget *PodDisruptionBudget `yaml:"podDisruptionBudget,omitempty"` Ingress *Ingress `yaml:"ingress,omitempty"` IngressPerReplica *IngressPerReplica `yaml:"ingressPerReplica,omitempty"` PodSecurityPolicy *PodSecurityPolicy `yaml:"podSecurityPolicy,omitempty"` ServiceMonitor *ServiceMonitor `yaml:"serviceMonitor,omitempty"` PrometheusSpec *PrometheusSpec `yaml:"prometheusSpec,omitempty"` AdditionalServiceMonitors []*servicemonitor.Values `yaml:"additionalServiceMonitors,omitempty"` AdditionalPodMonitors []interface{} `yaml:"additionalPodMonitors,omitempty"` }
type RelabelConfig ¶
type RelabelConfig struct { Action string `yaml:"action,omitempty"` Regex string `yaml:"regex,omitempty"` SourceLabels []string `yaml:"source_labels,omitempty"` TargetLabel string `yaml:"target_label,omitempty"` Replacement string `yaml:"replacement,omitempty"` Modulus uint64 `yaml:"modulus,omitempty"` Separator string `yaml:"separator,omitempty"` }
type RemoteWrite ¶
type RemoteWrite struct { URL string `yaml:"url,omitempty"` BasicAuth *BasicAuth `yaml:"basicAuth,omitempty"` WriteRelabelConfigs []*ValuesRelabelConfig `yaml:"writeRelabelConfigs,omitempty"` }
type Rules ¶
type Rules struct { Alertmanager bool `yaml:"alertmanager"` Etcd bool `yaml:"etcd"` General bool `yaml:"general"` K8S bool `yaml:"k8s"` KubeApiserver bool `yaml:"kubeApiserver"` KubePrometheusNodeAlerting bool `yaml:"kubePrometheusNodeAlerting"` KubePrometheusNodeRecording bool `yaml:"kubePrometheusNodeRecording"` KubernetesAbsent bool `yaml:"kubernetesAbsent"` KubernetesApps bool `yaml:"kubernetesApps"` KubernetesResources bool `yaml:"kubernetesResources"` KubernetesStorage bool `yaml:"kubernetesStorage"` KubernetesSystem bool `yaml:"kubernetesSystem"` KubeScheduler bool `yaml:"kubeScheduler"` Network bool `yaml:"network"` Node bool `yaml:"node"` Prometheus bool `yaml:"prometheus"` PrometheusOperator bool `yaml:"prometheusOperator"` Time bool `yaml:"time"` }
type SecretKeySelector ¶
type SecurityContext ¶
type Service ¶
type Service struct { Annotations map[string]string `yaml:"annotations,omitempty"` Labels map[string]string `yaml:"labels,omitempty"` ClusterIP string `yaml:"clusterIP,omitempty"` Port int `yaml:"port,omitempty"` TargetPort int `yaml:"targetPort,omitempty"` ExternalIPs []interface{} `yaml:"externalIPs,omitempty"` NodePort int `yaml:"nodePort,omitempty"` LoadBalancerIP string `yaml:"loadBalancerIP,omitempty"` LoadBalancerSourceRanges []interface{} `yaml:"loadBalancerSourceRanges,omitempty"` Type string `yaml:"type,omitempty"` SessionAffinity string `yaml:"sessionAffinity,omitempty"` }
type ServiceAccount ¶
type ServiceMonitor ¶
type ServiceMonitor struct { Interval string `yaml:"interval,omitempty"` SelfMonitor bool `yaml:"selfMonitor,omitempty"` BearerTokenFile interface{} `yaml:"bearerTokenFile,omitempty"` MetricRelabelings []interface{} `yaml:"metricRelabelings,omitempty"` Relabelings []interface{} `yaml:"relabelings,omitempty"` }
type ServicePerReplica ¶
type ServicePerReplica struct { Enabled bool `yaml:"enabled,omitempty"` Annotations map[string]string `yaml:"annotations,omitempty"` Port int `yaml:"port,omitempty"` TargetPort int `yaml:"targetPort,omitempty"` NodePort int `yaml:"nodePort,omitempty"` LoadBalancerSourceRanges []interface{} `yaml:"loadBalancerSourceRanges,omitempty"` Type string `yaml:"type,omitempty"` }
type StorageSpec ¶
type StorageSpec struct {
VolumeClaimTemplate *VolumeClaimTemplate `yaml:"volumeClaimTemplate,omitempty"`
}
type Values ¶
type Values struct { KubeTargetVersionOverride string `yaml:"kubeTargetVersionOverride,omitempty"` NameOverride string `yaml:"nameOverride,omitempty"` FullnameOverride string `yaml:"fullnameOverride,omitempty"` CommonLabels map[string]string `yaml:"commonLabels,omitempty"` DefaultRules *DefaultRules `yaml:"defaultRules,omitempty"` AdditionalPrometheusRules []*AdditionalPrometheusRules `yaml:"additionalPrometheusRules,omitempty"` Global *Global `yaml:"global,omitempty"` Alertmanager *DisabledToolServicePerReplica `yaml:"alertmanager,omitempty"` Grafana *DisabledTool `yaml:"grafana,omitempty"` KubeAPIServer *DisabledTool `yaml:"kubeApiServer,omitempty"` Kubelet *DisabledTool `yaml:"kubelet,omitempty"` KubeControllerManager *DisabledTool `yaml:"kubeControllerManager,omitempty"` CoreDNS *DisabledTool `yaml:"coreDns,omitempty"` KubeDNS *DisabledTool `yaml:"kubeDns,omitempty"` KubeEtcd *DisabledTool `yaml:"kubeEtcd,omitempty"` KubeScheduler *DisabledTool `yaml:"kubeScheduler,omitempty"` KubeProxy *DisabledTool `yaml:"kubeProxy,omitempty"` KubeStateMetricsScrap *DisabledTool `yaml:"kubeStateMetrics,omitempty"` KubeStateMetrics *DisabledTool `yaml:"kube-state-metrics,omitempty"` NodeExporter *DisabledTool `yaml:"nodeExporter,omitempty"` PrometheusNodeExporter *DisabledTool `yaml:"prometheus-node-exporter,omitempty"` PrometheusOperator *prometheusoperator.PrometheusOperatorValues `yaml:"prometheusOperator,omitempty"` Prometheus *PrometheusValues `yaml:"prometheus,omitempty"` }
func DefaultValues ¶
type ValuesRelabelConfig ¶
type ValuesRelabelConfig struct { Action string `yaml:"action,omitempty"` Regex string `yaml:"regex,omitempty"` SourceLabels []string `yaml:"sourceLabels,omitempty"` TargetLabel string `yaml:"targetLabel,omitempty"` Replacement string `yaml:"replacement,omitempty"` Modulus uint64 `yaml:"modulus,omitempty"` Separator string `yaml:"separator,omitempty"` }
type VolumeClaimTemplate ¶
type VolumeClaimTemplate struct {
Spec *VolumeClaimTemplateSpec `yaml:"spec,omitempty"`
}
type VolumeClaimTemplateSpec ¶
Click to show internal directories.
Click to hide internal directories.