newCollector creates a new redis wrapper containing the name of the redis.
(factory Factory, gauges *Gauges, interval time.Duration)
| 57 | |
| 58 | // newCollector creates a new redis wrapper containing the name of the redis. |
| 59 | func newCollector(factory Factory, gauges *Gauges, interval time.Duration) *collector { |
| 60 | return &collector{ |
| 61 | factory: factory, |
| 62 | gauges: gauges, |
| 63 | interval: interval, |
| 64 | } |
| 65 | } |
| 66 | |
| 67 | // collectConnectionStats collects redis connections for Prometheus to scrape. |
| 68 | func (d *collector) collectConnectionStats() { |
no outgoing calls