Skip to content

Commit

Permalink
don't include server id in graphite metrics
Browse files Browse the repository at this point in the history
fixes #SERVER-140
  • Loading branch information
Lennart Koopmann committed Oct 16, 2012
1 parent 53b188d commit 7b481d7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
6 changes: 2 additions & 4 deletions src/main/java/org/graylog2/GraphiteFormatter.java
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,10 @@
public class GraphiteFormatter {

private MessageCounter counter;
String serverId;
String prefix;

public GraphiteFormatter(MessageCounter counter, String serverId, String prefix) {
public GraphiteFormatter(MessageCounter counter, String prefix) {
this.counter = counter;
this.serverId = serverId;
this.prefix = prefix;
}

Expand Down Expand Up @@ -65,7 +63,7 @@ public List<String> getAllMetrics() {
}

private String prefix() {
return prefix + "." + serverId + "." + "messagecounts" + ".";
return prefix + "." + "messagecounts" + ".";
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ public void run() {
try {
GraphiteFormatter f = new GraphiteFormatter(
counter,
graylogServer.getServerId(),
graylogServer.getConfiguration().getGraphitePrefix()
);

Expand Down

0 comments on commit 7b481d7

Please sign in to comment.