modulepackage
0.0.0-20190128175558-b31a260dee4e
Repository: https://github.com/cloud-green/monitoring.git
Documentation: pkg.go.dev
# README
Monitoring
This repo contains some common utilities used in green squad's approach to monitoring.
When you propose a pr a check tool will run automatically:
You may merge once the check job is passing and another developer approves the PR.
# Functions
NewDialCollector returns a new DialCollector.
NewTableSizeCollector returns a new collector that monitors table sizes.
NewTxnCollector returns a new TxnCollector.
NewUptimeCollector returns a new uptime collector with the specified properties.
# Structs
DialCollector is a prometheus.Collector that collects MongoDB connection dialing metrics.
TxnCollector is a prometheus.Collector that collects metrics about mgo/txn operations.
UptimeCollector implements the prometheus.Collector interface and reports the unix timestamp of its start.