agent

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2025 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Plugins = map[string]PluginServe{
	"essentials": func() error {
		return essentials.Serve()
	},
}

Functions

func HandleProxyRequest

func HandleProxyRequest(path string, w http.ResponseWriter, r *http.Request) error

Types

type PluginServe

type PluginServe func() error

type PrometheusAgent

type PrometheusAgent struct {
	Mutex    sync.RWMutex
	Log      log.Logger
	Registry *registry.PluginRegistry
	Config   *config.Config
}

func CreateNewAgent

func CreateNewAgent(c *config.Config) *PrometheusAgent

func (*PrometheusAgent) Cleanup

func (a *PrometheusAgent) Cleanup() error

func (*PrometheusAgent) RunEmbedPlugin

func (a *PrometheusAgent) RunEmbedPlugin(name string) error

func (*PrometheusAgent) RunLocalPlugin

func (a *PrometheusAgent) RunLocalPlugin(path string, arg ...string) error

func (*PrometheusAgent) Serve

func (a *PrometheusAgent) Serve(ctx context.Context) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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