how to push guage matrices to pushgateway using https://github.com/siimon/prom-client nodejs client.

22 views
Skip to first unread message

atul yadav

unread,
Mar 31, 2020, 2:15:37 AM3/31/20
to Prometheus Developers
Although the library explain how to push like below:
const client = require('prom-client');
let gateway = new client.Pushgateway('http://127.0.0.1:9091');

gateway.pushAdd({ jobName: 'test' }, function (err, resp, body) {}); //Add metric and overwrite old ones
gateway.push({ jobName: 'test' }, function (err, resp, body) {}); //Overwrite all metrics (use PUT)
gateway.delete({ jobName: 'test' }, function (err, resp, body) {}); //Delete all metrics for jobName
but it pushed the value as timestamp.
I want same as guage the value part must have the numeric value and label as timestamp. It should be same as guage matrices.
Reply all
Reply to author
Forward
0 new messages