aleh

package module
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2019 License: MIT Imports: 7 Imported by: 0

README

Aleh License MIT GoDoc Build Status

Aleh is a new version of Yauhen written in GO

In comparision with yauhen CPU stats where added.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	DockerDaemonSocket string                                         `edn:"docker_daemon_socket"`
	Endpoint           string                                         `edn:"endpoint"`
	MetricPrefix       string                                         `edn:"metric_prefix"`
	Services           map[string]map[string]collectors.ContainerInfo `edn:"services"`
}

type Server

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

Server implements net/http.Handler It registers all needed prometheus collectors and handles http GET /metrics for prometheus and http GET /internal for debug purposes

func New

func New(ctx context.Context, c Config) *Server

func (*Server) ServeHTTP

func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request)

Directories

Path Synopsis
cmd
aleh command

Jump to

Keyboard shortcuts

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