samstarling / finagle-prometheus

Provides a bridge between Finagle and Prometheus metrics
https://samstarling.co.uk/projects/finagle-prometheus/
MIT License
30 stars 18 forks source link

Local File #6

Closed deepakmohanakrishnan07 closed 6 years ago

deepakmohanakrishnan07 commented 7 years ago

Any idea? Just followed the code snippets shown in example EchoServer. The below error occurred while starting the finagle server.


[ERROR]     at MyServer.main(MyServer.scala)
[ERROR] Caused by: java.io.FileNotFoundException: /Users/samuelstarling/Development/personal/finagle-prometheus/target/scala-2.11/scoverage-data/scoverage.measurements.1 (No such file or directory)
[ERROR]     at java.io.FileOutputStream.open0(Native Method)
[ERROR]     at java.io.FileOutputStream.open(FileOutputStream.java:270)
[ERROR]     at java.io.FileOutputStream.<init>(FileOutputStream.java:213)
[ERROR]     at java.io.FileWriter.<init>(FileWriter.java:107)
[ERROR]     at scoverage.Invoker$$anonfun$1.apply(Invoker.scala:42)
[ERROR]     at scoverage.Invoker$$anonfun$1.apply(Invoker.scala:42)
[ERROR]     at scala.collection.concurrent.TrieMap.getOrElseUpdate(TrieMap.scala:901)
[ERROR]     at scoverage.Invoker$.invoked(Invoker.scala:42)
[ERROR]     at com.samstarling.prometheusfinagle.mapper.FinagleToPrometheusMapper.metricFamilySamples(FinagleToPrometheusMapper.scala:15)```
furahm01 commented 7 years ago

@deepakmohanakrishnan1984 how you make it work, because I am adding the pom dependency but it says as follows:

Dependency com.samstarling:finagle-prometheus_2.11:0.0.1 not found

Br,

samstarling commented 7 years ago

Hey @deepakmohanakrishnan1984: sorry I never replied to this, I don't think Github ever notified me about it. It maybe looks like something related to the plugin that I use for generating code coverage. Can you paste the full exception? It looks like the first part of the stack trace has been omitted.

samstarling commented 7 years ago

@furahm01 Are you still having problems with this? If the dependency isn't found, you might need to configure Maven to resolve from Bintray. I'm looking at ways to make this easier.

samstarling commented 7 years ago

@furahm01 Good news: the library is now in Maven Central.

samstarling commented 6 years ago

I'm going to close this due to lack of activity: please let me know if I can help with anything.