Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( SaveDuration = prometheus.NewHistogram( prometheus.HistogramOpts{ Namespace: "vince", Name: "events_save_duration_seconds", Help: "Time taken to persist events to the storage.", Buckets: buckets, }, ) QueryDuration = prometheus.NewHistogram( prometheus.HistogramOpts{ Namespace: "vince", Name: "events_query_duration_seconds", Help: "Time taken to query.", Buckets: buckets, }, ) DropSiteDuration = prometheus.NewHistogram( prometheus.HistogramOpts{ Namespace: "vince", Name: "site_drop_duration_seconds", Help: "Time taken to permanently delete a site.", Buckets: buckets, }, ) SiteCacheDuration = prometheus.NewHistogram( prometheus.HistogramOpts{ Namespace: "vince", Name: "site_cache_duration_seconds", Help: "Time taken to load sites to cache.", Buckets: buckets, }, ) CalendarReadDuration = prometheus.NewHistogram( prometheus.HistogramOpts{ Namespace: "vince", Name: "calendar_read_duration_seconds", Help: "Time taken to read a calendar from storage.", Buckets: buckets, }, ) )
histograms
View Source
var ( DataPoint = prometheus.NewCounterVec( prometheus.CounterOpts{ Namespace: "vince", Name: "data_point", Help: "Number of calls to /api/event", }, []string{"status"}, ) DataPointReceived = DataPoint.WithLabelValues("received") DataPointRejected = DataPoint.WithLabelValues("rejected") DataPointDropped = DataPoint.WithLabelValues("dropped") DataPointAccepted = DataPoint.WithLabelValues("accepted") )
View Source
var (
SitesInCache = prometheus.NewGauge(prometheus.GaugeOpts{
Namespace: "vince",
Name: "sites_in_cache",
Help: "Active sites in memory cache.",
})
)
gauges
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.