metrics

package
v0.0.0-...-2936bd9 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package metrics ...

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WritePrometheus

func WritePrometheus(w io.Writer, exposeProcessMetrics bool)

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

func ZoneBandwidthCached(zone string) *metrics.Counter

ZoneBandwidthCached .

func ZoneBandwidthContentType

func ZoneBandwidthContentType(zone, contentType string) *metrics.Counter

ZoneBandwidthContentType .

func ZoneBandwidthCountry

func ZoneBandwidthCountry(zone, country string) *metrics.Counter

ZoneBandwidthCountry .

func ZoneBandwidthEncrypted

func ZoneBandwidthEncrypted(zone string) *metrics.Counter

ZoneBandwidthEncrypted .

func ZoneBandwidthTotal

func ZoneBandwidthTotal(zone string) *metrics.Counter

ZoneBandwidthTotal .

func ZoneColocationResponseBytes

func ZoneColocationResponseBytes(zone, colocation string) *metrics.Counter

ZoneColocationResponseBytes .

func ZoneColocationVisits

func ZoneColocationVisits(zone, colocation string) *metrics.Counter

ZoneColocationVisits .

func ZoneRequestsCached

func ZoneRequestsCached(zone string) *metrics.Counter

ZoneRequestsCached .

func ZoneRequestsContentType

func ZoneRequestsContentType(zone, contentType string) *metrics.Counter

ZoneRequestsContentType .

func ZoneRequestsCountry

func ZoneRequestsCountry(zone, country string) *metrics.Counter

ZoneRequestsCountry .

func ZoneRequestsEncrypted

func ZoneRequestsEncrypted(zone string) *metrics.Counter

ZoneRequestsEncrypted .

func ZoneRequestsStatus

func ZoneRequestsStatus(zone, status string) *metrics.Counter

ZoneRequestsStatus .

func ZoneRequestsTotal

func ZoneRequestsTotal(zone string) *metrics.Counter

ZoneRequestsTotal .

func ZoneThreatsCountry

func ZoneThreatsCountry(zone, country string) *metrics.Counter

ZoneThreatsCountry .

func ZoneThreatsTotal

func ZoneThreatsTotal(zone string) *metrics.Counter

ZoneThreatsTotal .

func ZoneThreatsType

func ZoneThreatsType(zone, threatType string) *metrics.Counter

ZoneThreatsType .

Types

This section is empty.

Jump to

Keyboard shortcuts

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