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 Config
- type ConfigMapReference
- type ConfigMapReferenceList
- type Operator
Constants ¶
View Source
const (
DefaultVersion = "v1.7.1"
)
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",
"v2.0.0-beta.4",
}
)
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
}
type Config ¶
type Config struct { Host string KubeletObject string TLSInsecure bool StatefulSetUpdatesAvailable bool TLSConfig rest.TLSClientConfig ConfigReloaderImage string PrometheusConfigReloader string AlertmanagerDefaultBaseImage string PrometheusDefaultBaseImage string }
Config defines configuration parameters for the Operator.
type ConfigMapReference ¶ added in v0.7.0
type ConfigMapReferenceList ¶ added in v0.7.0
type ConfigMapReferenceList struct {
Items []*ConfigMapReference `json:"items"`
}
func (*ConfigMapReferenceList) Len ¶ added in v0.9.1
func (l *ConfigMapReferenceList) Len() int
func (*ConfigMapReferenceList) Less ¶ added in v0.9.1
func (l *ConfigMapReferenceList) Less(i, j int) bool
func (*ConfigMapReferenceList) Swap ¶ added in v0.9.1
func (l *ConfigMapReferenceList) Swap(i, j int)
type Operator ¶
type Operator struct {
// contains filtered or unexported fields
}
Operator manages lify cycle of Prometheus deployments and monitoring configurations.
func (*Operator) RegisterMetrics ¶ added in v0.10.0
func (c *Operator) RegisterMetrics(r prometheus.Registerer)
Click to show internal directories.
Click to hide internal directories.