huksley / prometheus-remote-write

Send samples to prometheus via remote_write from NodeJS
MIT License
19 stars 6 forks source link

prom-client metrics #5

Closed raineorshine closed 1 year ago

raineorshine commented 1 year ago

Does this library support remote writing prom-client’s default metrics? Thanks :).

huksley commented 1 year ago

you can use any metrics you want, just pass them as object to pushMetrics:

await pushMetrics(
  {
    process_cpu_user_seconds_total: 0.001801
  }, 
  options
)