mikejihbe / metrics

A metrics library for Node.js

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Missing parameters in the constructor to connect to graphite server

hzwlille opened this issue · comments

class GraphiteReporter extends ScheduledReporter {

It seems that when I tried to use it with TypeScript to send to graphite server, I would need parameters for server connection.

this.reporter = new GraphiteReporter(this.report, this.getPrefix(), this.address, this.port);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

function GraphiteReporter(registry, prefix, host, port) {

Should this be changed?