Documentation ¶
Index ¶
- Constants
- Variables
- func ListOptions(name string) metav1.ListOptions
- func NewPrometheusCollector(s cache.Store) *prometheusCollector
- func PrometheusStatus(kclient kubernetes.Interface, p *monitoringv1.Prometheus) (*monitoringv1.PrometheusStatus, []v1.Pod, error)
- type BasicAuthCredentials
- type BearerToken
- type Config
- type Labels
- type Namespaces
- type Operator
- type TLSAsset
Constants ¶
View Source
const ( DefaultPrometheusVersion = "v2.7.1" DefaultThanosVersion = "v0.7.0" )
Variables ¶
View Source
var (
CompatibilityMatrix = []string{
"v1.4.0",
"v1.4.1",
"v1.5.0",
"v1.5.1",
"v1.5.2",
"v1.5.3",
"v1.6.0",
"v1.6.1",
"v1.6.2",
"v1.6.3",
"v1.7.0",
"v1.7.1",
"v1.7.2",
"v1.8.0",
"v2.0.0",
"v2.2.1",
"v2.3.1",
"v2.3.2",
"v2.4.0",
"v2.4.1",
"v2.4.2",
"v2.4.3",
"v2.5.0",
"v2.6.0",
"v2.6.1",
"v2.7.0",
"v2.7.1",
"v2.7.2",
"v2.8.1",
"v2.9.2",
"v2.10.0",
}
)
Functions ¶
func ListOptions ¶
func ListOptions(name string) metav1.ListOptions
func NewPrometheusCollector ¶ added in v0.10.0
func PrometheusStatus ¶
func PrometheusStatus(kclient kubernetes.Interface, p *monitoringv1.Prometheus) (*monitoringv1.PrometheusStatus, []v1.Pod, error)
PrometheusStatus evaluates the current status of a Prometheus deployment with respect to its specified resource object. It return the status and a list of pods that are not updated.
Types ¶
type BasicAuthCredentials ¶ added in v0.9.0
type BasicAuthCredentials struct {
// contains filtered or unexported fields
}
BasicAuthCredentials represents a username password pair to be used with basic http authentication, see https://tools.ietf.org/html/rfc7617.
type BearerToken ¶ added in v0.34.0
type BearerToken string
BearerToken represents a bearer token, see https://tools.ietf.org/html/rfc6750.
type Config ¶
type Config struct { Host string KubeletObject string TLSInsecure bool TLSConfig rest.TLSClientConfig ConfigReloaderImage string ConfigReloaderCPU string ConfigReloaderMemory string PrometheusConfigReloaderImage string AlertmanagerDefaultBaseImage string PrometheusDefaultBaseImage string ThanosDefaultBaseImage string Namespaces Namespaces Labels Labels CrdKinds monitoringv1.CrdKinds EnableValidation bool LocalHost string LogLevel string LogFormat string ManageCRDs bool PromSelector string AlertManagerSelector string }
Config defines configuration parameters for the Operator.
type Labels ¶ added in v0.14.0
type Namespaces ¶ added in v0.34.0
type Operator ¶
type Operator struct {
// contains filtered or unexported fields
}
Operator manages life cycle of Prometheus deployments and monitoring configurations.
func (*Operator) RegisterMetrics ¶ added in v0.10.0
func (c *Operator) RegisterMetrics(r prometheus.Registerer, reconcileErrorsCounter *prometheus.CounterVec, triggerByCounter *prometheus.CounterVec)
RegisterMetrics registers Prometheus metrics on the given Prometheus registerer.
Click to show internal directories.
Click to hide internal directories.