Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Prometheus PrometheusConfig `mapstructure:"prometheus"`
Crane CraneConfig `mapstructure:"crane"`
HttpServer HttpServerConfig `mapstructure:"httpServer"`
CARootPEM string `mapstructure:"ca_root_pem"`
CAFile string `mapstructure:"ca_root_file"`
DevLake DevLakeConfig `mapstructure:"devlake"`
}
type CraneConfig ¶
type CraneConfig struct {
Images_whitelist []string `mapstructure:"images_whitelist"`
Registries []RegistryAuth `mapstructure:"registries"`
}
type DevLakeConfig ¶
type HttpServerConfig ¶
type HttpServerConfig struct {
Port string `mapstructure:"port"`
}
HttpServerConfig holds configuration for the HTTP server (e.g., for health probes)
type ImageMetric ¶
A metric as returned by Prometheus, Labels are namespace, cluster and so on.
type OutputWithError ¶
type PrometheusAuth ¶
type PrometheusConfig ¶
type PrometheusConfig struct {
URL string `mapstructure:"url"`
Interval string `mapstructure:"interval"`
Query string `mapstructure:"query"` // Query to fetch image metrics, default:, "kube_pod_container_info"
Auth PrometheusAuth `mapstructure:"auth"` // Deprecated, use crane.registries instead
}
type RegistryAuth ¶
Click to show internal directories.
Click to hide internal directories.