MCPcopy
hub / github.com/prometheus/client_js / collect

Function collect

example/server.js:33–36  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

31 name: 'scrape_counter',
32 help: 'Number of scrapes (example of a counter with a collect fn)',
33 collect() {
34 // collect is invoked each time `register.metrics()` is called.
35 this.inc();
36 },
37});
38
39const Gauge = require('../').Gauge;

Callers

nothing calls this directly

Calls 1

incMethod · 0.65

Tested by

no test coverage detected