This content has been marked as final.
Show 2 replies
-
1. Re: Starting with RHQ-Metrics
john.sanda May 13, 2014 8:46 AM (in response to theute)You are running the wrong JAR file. You should be executing the fat JAR produced in the metrics-rest module, e.g.,
$ java -jar target/rhq-metrics-rest-0.1.0-SNAPSHOT-fat.jar
You will find some documentation for running that REST module in the README at rhq-metrics/metrics-rest at master · rhq-project/rhq-metrics · GitHub. The metrics-server module produces a Vert.x module that is the core module in that it talks directly to Cassandra via the DataStax driver. The metrics-rest module provides REST endpoints that in turn communicate with the core server via the event bus.
-
2. Re: Re: Starting with RHQ-Metrics
theute May 13, 2014 9:40 AM (in response to john.sanda)Arf, indeed...
curl -i -X POST http://127.0.0.1:7474/rhq-metrics/test/data -d@/tmp/toto -HContent-Type:application/json
Worked
With /tmp/toto being:
[ { "timestamp":1398891828116, "value":12.3 } ]
Thanks !