package http
import "github.com/google/cadvisor/http"
Index ¶
- func RegisterHandlers(mux httpmux.Mux, containerManager manager.Manager, httpAuthFile, httpAuthRealm, httpDigestFile, httpDigestRealm string) error
- func RegisterPrometheusHandler(mux httpmux.Mux, containerManager manager.Manager, prometheusEndpoint string, f metrics.ContainerLabelsFunc)
Functions ¶
func RegisterHandlers ¶
func RegisterHandlers(mux httpmux.Mux, containerManager manager.Manager, httpAuthFile, httpAuthRealm, httpDigestFile, httpDigestRealm string) error
func RegisterPrometheusHandler ¶
func RegisterPrometheusHandler(mux httpmux.Mux, containerManager manager.Manager, prometheusEndpoint string, f metrics.ContainerLabelsFunc)
RegisterPrometheusHandler creates a new PrometheusCollector, registers it on the global registry and configures the provided HTTP mux to handle the given Prometheus endpoint.
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
http/mux |
- Version
- v0.25.1
- Published
- Nov 15, 2017
- Platform
- darwin/amd64
- Imports
- 13 packages
- Last checked
- 26 minutes ago –
Tools for package owners.