2017-09-13 5 views
-2

私はガーリットとグラファイトを持っています。私はmetrics-reporter-graphiteプラグインをgerritにインストールしました。 は、これは私のメトリック・レポーターgraphite.configファイル黒鉛にゲリットメトリックを送信

[graphite] 
    host = http://127.0.0.1    ## Local host name## 
    port = 2003 
    prefix = gerrit 

ですが、メトリックは、グラファイトに来ていません。このプラグインは、指定されたホスト名を解決しようとすると失敗した私のログファイル

[2017-09-13 05:27:08,720] [metrics-graphite-reporter-1-thread-1] WARN com.codahale.metrics.graphite.GraphiteReporter : Unable to report to Graphite 
java.net.UnknownHostException: http://127.0.0.1 
     at com.codahale.metrics.graphite.Graphite.connect(Graphite.java:122) 
     at com.codahale.metrics.graphite.GraphiteReporter.report(GraphiteReporter.java:240) 
     at com.codahale.metrics.ScheduledReporter.report(ScheduledReporter.java:251) 
     at com.codahale.metrics.ScheduledReporter$1.run(ScheduledReporter.java:174) 
     at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) 
     at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308) 
     at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180) 
     at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294) 
     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) 
     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) 
     at java.lang.Thread.run(Thread.java:748) 

答えて

1

です:

java.net.UnknownHostException: http://127.0.0.1 

この理由は、ホスト名がプロトコルが含まれていないということで、私は黒鉛が実際にポート2003でHTTP経由でデータを受け取るのではないかと疑う。

[graphite] 
    host = 127.0.0.1 
    // ... 
関連する問題