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

Method push

lib/pushgateway.js:32–38  ·  view source on GitHub ↗
(params = {})

Source from the content-addressed store, hash-verified

30 }
31
32 push(params = {}) {
33 if (this.requireJobName && !params.jobName) {
34 throw new Error('Missing jobName parameter');
35 }
36
37 return useGateway.call(this, 'PUT', params.jobName, params.groupings);
38 }
39
40 delete(params = {}) {
41 if (this.requireJobName && !params.jobName) {

Callers 15

runFunction · 0.95
server.jsFile · 0.45
addMethod · 0.45
addSumAndCountForExportFunction · 0.45
addListenersFunction · 0.45
AggregatorFactoryFunction · 0.45
getMetricsAsStringMethod · 0.45
getMetricsAsJSONMethod · 0.45
formatLabelsFunction · 0.45
getMethod · 0.45
observeFunction · 0.45
getValuesByLabelFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected