Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tsegismont/hawkular-vertx-grafana-demo
https://github.com/tsegismont/hawkular-vertx-grafana-demo
Last synced: 7 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/tsegismont/hawkular-vertx-grafana-demo
- Owner: tsegismont
- License: apache-2.0
- Created: 2016-05-20T13:37:26.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-05-23T15:27:02.000Z (over 8 years ago)
- Last Synced: 2024-11-01T04:26:44.677Z (about 2 months ago)
- Language: HTML
- Size: 844 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.adoc
- License: LICENSE
Awesome Lists containing this project
README
= hawkular-vertx-grafana-demo
This project shows how to use Hawkular to:
- store a metric collected in a Vert.x application
- display the metric with Grafana or Hawkular Charts
- receive an alert when the metric exceeds a threshold== Download Hawkular
This will download an all-in-one package (Metrics+Alerts+Cassandra), which is quite useful for development.
[source,bash]
----
curl http://download.jboss.org/hawkular/hawkular/1.0.0.Alpha11/hawkular-dist-1.0.0.Alpha11.tar.gz | tar xz
----== Run
In the same directory as before:
[source,bash]
----
cd hawkular-1.0.0.Alpha11/bin
./standalone.sh
----== Register a new user
Browse to http://localhost:8080 And click the 'Register' button.
In this demo we will use the 'admin' user with 'pa55,Word' password.
== Start Grafana
Start Grafana with Docker:
[source,bash]
----
sudo docker run -i -p 3000:3000 grafana/grafana:2.6.0
----With build Alpha 11, the database name must be the persona ID. You can get it with:
[source,bash]
----
curl --basic -u admin:pa55,Word http://localhost:8080/hawkular/accounts/personas/current
----Eventually, configure Keycloak to allow the 'http://localhost:3000' origin (otherwise Grafana will not be able to connect to Metrics).
== Setup the webapp
Get the dependencies with Bower:
[source,bash]
----
cd webapp/webroot
bower install
----Configure Keycloak to allow the 'http://localhost:8181' origin.
== Start the webapp
In the directory where you cloned the repository:
[source,bash]
----
cd webapp
mvn clean package exec:exec@run-app
----And then browse to http://localhost:8181
== Import Alert Definitions
In the repository directory:
[source,bash]
----
curl -v -X POST --basic -u admin:pa55,Word -H "Content-Type: application/json" http://localhost:8080/hawkular/alerts/import/all -d @alerts-definitions.json
----