Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AlertingSpec ¶
type AlertingSpec struct {
Alertmanagers []AlertmanagerEndpoints `json:"alertmanagers"`
}
AlertingSpec defines paramters for alerting configuration of Prometheus servers.
type AlertmanagerEndpoints ¶
AlertmanagerEndpoints defines a selection of a single Endpoints object containing alertmanager IPs to fire alerts against.
type Endpoint ¶
type Endpoint struct {
Port string `json:"port"`
TargetPort intstr.IntOrString `json:"targetPort"`
Path string `json:"path"`
Scheme string `json:"scheme"`
Interval string `json:"interval"`
}
Endpoint defines a scrapeable endpoint serving Prometheus metrics.
type Prometheus ¶
type Prometheus struct {
unversioned.TypeMeta `json:",inline"`
v1.ObjectMeta `json:"metadata,omitempty"`
Spec PrometheusSpec `json:"spec"`
}
Prometheus defines a Prometheus deployment.
type PrometheusList ¶
type PrometheusList struct {
unversioned.TypeMeta `json:",inline"`
unversioned.ListMeta `json:"metadata,omitempty"`
Items []*Prometheus `json:"items"`
}
PrometheusList is a list of Prometheuses.
type PrometheusSpec ¶
type PrometheusSpec struct {
ServiceMonitors []ServiceMonitorSelection `json:"serviceMonitors"`
EvaluationInterval string `json:"evaluationInterval"`
Version string `json:"version"`
BaseImage string `json:"baseImage"`
Replicas int32 `json:"replicas"`
Retention string `json:"retention"`
Storage *StorageSpec `json:"storage"`
Alerting AlertingSpec `json:"alerting"`
}
PrometheusSpec holds specification parameters of a Prometheus deployment.
type ServiceMonitor ¶
type ServiceMonitor struct {
unversioned.TypeMeta `json:",inline"`
v1.ObjectMeta `json:"metadata,omitempty"`
Spec ServiceMonitorSpec `json:"spec"`
}
ServiceMonitor defines monitoring for a set of services.
type ServiceMonitorList ¶
type ServiceMonitorList struct {
unversioned.TypeMeta `json:",inline"`
unversioned.ListMeta `json:"metadata,omitempty"`
Items []*ServiceMonitor `json:"items"`
}
ServiceMonitorList is a list of ServiceMonitors.
type ServiceMonitorSelection ¶
type ServiceMonitorSelection struct {
Selector unversioned.LabelSelector `json:"selector"`
}
ServiceMonitorSelection selects service monitors by their labels.
type ServiceMonitorSpec ¶
type ServiceMonitorSpec struct {
Endpoints []Endpoint `json:"endpoints"`
Selector unversioned.LabelSelector `json:"selector"`
}
ServiceMonitorSpec contains specification parameters for a ServiceMonitor.
type StorageSpec ¶
type StorageSpec struct {
Class string `json:"class"`
Selector *unversioned.LabelSelector `json:"selector"`
Resources v1.ResourceRequirements `json:"resources"`
}
StorageSpec defines the configured storage for a group Prometheus servers.