Documentation
¶
Overview ¶
Package metrics ...
Index ¶
- func WritePrometheus(w io.Writer, exposeProcessMetrics bool)
- func ZoneBandwidthCached(zone string) *metrics.Counter
- func ZoneBandwidthContentType(zone, contentType string) *metrics.Counter
- func ZoneBandwidthCountry(zone, country string) *metrics.Counter
- func ZoneBandwidthEncrypted(zone string) *metrics.Counter
- func ZoneBandwidthTotal(zone string) *metrics.Counter
- func ZoneColocationResponseBytes(zone, colocation string) *metrics.Counter
- func ZoneColocationVisits(zone, colocation string) *metrics.Counter
- func ZoneRequestsCached(zone string) *metrics.Counter
- func ZoneRequestsContentType(zone, contentType string) *metrics.Counter
- func ZoneRequestsCountry(zone, country string) *metrics.Counter
- func ZoneRequestsEncrypted(zone string) *metrics.Counter
- func ZoneRequestsStatus(zone, status string) *metrics.Counter
- func ZoneRequestsTotal(zone string) *metrics.Counter
- func ZoneThreatsCountry(zone, country string) *metrics.Counter
- func ZoneThreatsTotal(zone string) *metrics.Counter
- func ZoneThreatsType(zone, threatType string) *metrics.Counter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WritePrometheus ¶
WritePrometheus writes all the registered metrics in Prometheus format to w.
If exposeProcessMetrics is true, then various `go_*` and `process_*` metrics are exposed for the current process.
The WritePrometheus func is usually called inside "/metrics" handler:
http.HandleFunc("/metrics", func(w http.ResponseWriter, req *http.Request) {
metrics.WritePrometheus(w, true)
})
func ZoneBandwidthCached ¶
ZoneBandwidthCached .
func ZoneBandwidthContentType ¶
ZoneBandwidthContentType .
func ZoneBandwidthCountry ¶
ZoneBandwidthCountry .
func ZoneBandwidthEncrypted ¶
ZoneBandwidthEncrypted .
func ZoneBandwidthTotal ¶
ZoneBandwidthTotal .
func ZoneColocationResponseBytes ¶
ZoneColocationResponseBytes .
func ZoneColocationVisits ¶
ZoneColocationVisits .
func ZoneRequestsCached ¶
ZoneRequestsCached .
func ZoneRequestsContentType ¶
ZoneRequestsContentType .
func ZoneRequestsCountry ¶
ZoneRequestsCountry .
func ZoneRequestsEncrypted ¶
ZoneRequestsEncrypted .
func ZoneRequestsStatus ¶
ZoneRequestsStatus .
func ZoneThreatsCountry ¶
ZoneThreatsCountry .
func ZoneThreatsType ¶
ZoneThreatsType .
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.