Documentation ¶
Index ¶
- func ApplyNewTransformers(r *monkit.Registry) *monkit.Registry
- func NewEthernetHandle(iface string) (_ gopacket.PacketDataSource, supported bool, err error)
- func ProcessPackages(workers int, PCAPIface string, address string, metricsAddress string, ...)
- type Handler
- type Packet
- type PrometheusEndpoint
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApplyNewTransformers ¶
func ApplyNewTransformers(r *monkit.Registry) *monkit.Registry
ApplyNewTransformers adds the default set of monkit.CallbackTransformers. This needs to happen individually for each output type and endpoint.
func NewEthernetHandle ¶
func NewEthernetHandle(iface string) (_ gopacket.PacketDataSource, supported bool, err error)
Types ¶
type PrometheusEndpoint ¶
type PrometheusEndpoint struct {
// contains filtered or unexported fields
}
PrometheusEndpoint includes all the information to server Prometheus compatible HTTP pages.
func NewPrometheusEndpoint ¶
func NewPrometheusEndpoint(registry *monkit.Registry) *PrometheusEndpoint
NewPrometheusEndpoint creates an initialized PrometheusEndpoint.
func (*PrometheusEndpoint) PrometheusMetrics ¶
func (server *PrometheusEndpoint) PrometheusMetrics(w http.ResponseWriter, r *http.Request)
PrometheusMetrics writes monkit data in https://prometheus.io/docs/instrumenting/exposition_formats/.
Click to show internal directories.
Click to hide internal directories.