Documentation ¶
Index ¶
- Constants
- func ListOptions(name string) v1.ListOptions
- func NewPrometheusListWatch(client *rest.RESTClient) *cache.ListWatch
- func NewPrometheusRESTClient(c rest.Config) (*rest.RESTClient, error)
- func NewServiceMonitorListWatch(client *rest.RESTClient) *cache.ListWatch
- func PrometheusStatus(kclient *kubernetes.Clientset, p *spec.Prometheus) (*spec.PrometheusStatus, []*v1.Pod, error)
- type Config
- type MonitoringClient
- type Operator
- type PrometheusInterface
Constants ¶
View Source
const ( TPRGroup = "monitoring.coreos.com" TPRVersion = "v1alpha1" TPRPrometheusesKind = "prometheuses" TPRServiceMonitorsKind = "servicemonitors" )
Variables ¶
This section is empty.
Functions ¶
func ListOptions ¶
func ListOptions(name string) v1.ListOptions
func NewPrometheusListWatch ¶
func NewPrometheusListWatch(client *rest.RESTClient) *cache.ListWatch
NewPrometheusListWatch returns a new ListWatch on the Prometheus resource.
func NewPrometheusRESTClient ¶
func NewPrometheusRESTClient(c rest.Config) (*rest.RESTClient, error)
func NewServiceMonitorListWatch ¶
func NewServiceMonitorListWatch(client *rest.RESTClient) *cache.ListWatch
NewServiceMonitorListWatch returns a new ListWatch on the ServiceMonitor resource.
func PrometheusStatus ¶
func PrometheusStatus(kclient *kubernetes.Clientset, p *spec.Prometheus) (*spec.PrometheusStatus, []*v1.Pod, error)
Types ¶
type Config ¶
type Config struct { Host string TLSInsecure bool TLSConfig rest.TLSClientConfig }
Config defines configuration parameters for the Operator.
type MonitoringClient ¶
type MonitoringClient struct {
*rest.RESTClient
}
func NewForConfig ¶
func NewForConfig(c *rest.Config) (*MonitoringClient, error)
func (*MonitoringClient) Prometheuses ¶
func (c *MonitoringClient) Prometheuses(namespace string) PrometheusInterface
type Operator ¶
type Operator struct {
// contains filtered or unexported fields
}
Operator manages lify cycle of Prometheus deployments and monitoring configurations.
type PrometheusInterface ¶
type PrometheusInterface interface {
Get(name string) (*spec.Prometheus, error)
}
Click to show internal directories.
Click to hide internal directories.