Versions in this module Expand all Collapse all v0 v0.1.1 Mar 18, 2024 v0.1.0 Mar 18, 2024 Changes in this version + var DefaultConfiguration = Configuration + var DefaultGlobalConfiguration = EndpointConfiguration + type Agent struct + func New(c *kubernetes.Clientset, cfg Configuration, metrics *Metrics, ...) (*Agent, error) + func NewWithListWatcher(lw cache.ListerWatcher, cfg Configuration, metrics *Metrics, ...) (*Agent, error) + func (a *Agent) Run(ctx context.Context) + type Configuration struct + Global EndpointConfiguration + Hosts map[string]EndpointConfiguration + Monitor string + Token string + func Load(r io.Reader) (Configuration, error) + func LoadFromFile(filename string) (Configuration, error) + type EndpointConfiguration struct + Interval time.Duration + Method string + Skip bool + ValidStatusCodes []int + type Metrics struct + IngressEvents *prometheus.CounterVec + Latency *prometheus.HistogramVec + Requests *prometheus.CounterVec + func NewMetrics() *Metrics + func (m Metrics) Collect(ch chan<- prometheus.Metric) + func (m Metrics) Describe(ch chan<- *prometheus.Desc) + func (m Metrics) ObserveEvent(ev event) + func (m Metrics) ObserveRequest(code int, latency time.Duration)