I have setup a Graphite server and I am trying to print my Java metrics into the graphite UI. Graphite is up and running as I can see its web UI in localhost. I used the below code to redirect my metrics results to graphite console.
Graphite graphite = new Graphite(new InetSocketAddress("http://localhost", 80));
GraphiteReporter reporter = GraphiteReporter.forRegistry(this.metricRegistry)
.convertRatesTo(TimeUnit.SECONDS)
.convertDurationsTo(TimeUnit.MILLISECONDS)
.filter(MetricFilter.ALL)
.build(graphite);
reporter.start(1, TimeUnit.MINUTES);
But nothing appears on the web UI. What am I doing wrong here? Do I need to specify any additional configuration for graphite? After installing graphite, I didn't add any configurations.Any help would be much appreciated.