Is there a way to post custom metrics to netdata, especially in nodejs?

Environment

Server: Ubuntu 20.04.2 LTS (GNU/Linux 5.4.0-73-generic x86_64)
Netdata: v1.31.0

Problem/Question

I want to post custom metrics to netdata in nodejs, but I cant find out a way in doc, maybe I missed them. So can anybody help me? Appreciate for any reply.

Is the document about node.d.plugin the one you are looking for?

You can also read about API for external plugins.

Not sure about posting metrics. Also, wouldn’t recommend using node.d.plugin for custom collectors, we plan to get rid of it.

@AnnAngela consider using statsd.plugin.

There are a handful of libraries to send statsd metrics using Node.js. This is for sure the best way forward @AnnAngela . Super easy for you to send them and then create charts.

@vlvkobal @ilyam8 @OdysLam Thank you all, I will try the stats.plugin!

I want to say thank you again to you all! And I successfully started up some chart with statsd! (BTW, the mysql server runs in local network but not on localhost :joy:)