haproxy

package
v0.32.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 24, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package haproxy implements a backend/server health check for HAProxy, reading the CSV stats export over HTTP (the `;csv` stats endpoint). It flags servers that are DOWN (BAD) or in MAINT/DRAIN/NOLB (WARN), backends with no available server (BAD), and — optionally — session usage near the limit.

Only the read-only stats page is consumed; the check never mutates HAProxy.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Check

type Check struct {
	// contains filtered or unexported fields
}

func New

func New(cfg engine.HAProxyConfig) *Check

func (*Check) Name

func (c *Check) Name() string

func (*Check) Run

func (c *Check) Run(ctx context.Context) []engine.Finding

func (*Check) Targets

func (c *Check) Targets() ([]string, error)

Targets resolves explicit targets plus inventory hosts to host:port pairs.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL