Documentation
¶
Overview ¶
Package metrics provides protocol metrics collection and export.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GrafanaDashboard ¶
func GrafanaDashboard() string
GrafanaDashboard returns a Grafana dashboard JSON template.
Types ¶
type Collector ¶
type Collector struct {
DecodeTotal Counter
DecodeErrors Counter
EncodeTotal Counter
DecodeLat Histogram
ProtoCount map[string]*Counter
// contains filtered or unexported fields
}
Collector collects protocol metrics.
func (*Collector) PrometheusExport ¶
PrometheusExport exports metrics in Prometheus text format.
Click to show internal directories.
Click to hide internal directories.