Documentation ¶
Index ¶
- type PromMetricSync
- func (pms *PromMetricSync) Clusters(ctx context.Context, informer kcache.SharedIndexInformer) error
- func (pms *PromMetricSync) Containers(ctx context.Context, informer kcache.SharedIndexInformer) error
- func (pms *PromMetricSync) Nodes(ctx context.Context, informer kcache.SharedIndexInformer) error
- func (pms *PromMetricSync) Pods(ctx context.Context, informer kcache.SharedIndexInformer) error
- type PromQuery
- type PrometheusConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PromMetricSync ¶
type PromMetricSync struct {
// contains filtered or unexported fields
}
PromMetricSync synchronizes prometheus metrics from the prometheus API to the database
func NewPromMetricSync ¶
func NewPromMetricSync(promApiClient v1.API, db *database.DB, logger *logging.Logger) *PromMetricSync
NewPromMetricSync creates a new PromMetricSync
func (*PromMetricSync) Clusters ¶
func (pms *PromMetricSync) Clusters(ctx context.Context, informer kcache.SharedIndexInformer) error
func (*PromMetricSync) Containers ¶
func (pms *PromMetricSync) Containers(ctx context.Context, informer kcache.SharedIndexInformer) error
func (*PromMetricSync) Nodes ¶
func (pms *PromMetricSync) Nodes(ctx context.Context, informer kcache.SharedIndexInformer) error
func (*PromMetricSync) Pods ¶
func (pms *PromMetricSync) Pods(ctx context.Context, informer kcache.SharedIndexInformer) error
type PromQuery ¶
type PromQuery struct {
// contains filtered or unexported fields
}
PromQuery defines a prometheus query with the metric group, the query and the name label
type PrometheusConfig ¶
type PrometheusConfig struct {
Url string `yaml:"url"`
}
PrometheusConfig defines Prometheus configuration.
func (*PrometheusConfig) Validate ¶
func (c *PrometheusConfig) Validate() error
Validate checks constraints in the supplied Prometheus configuration and returns an error if they are violated.
Click to show internal directories.
Click to hide internal directories.