This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#tenant | |
curl -ivX GET 'http://jdoe:password@localhost:8080/hawkular/inventory/tenant' | |
{ | |
"path" : "/t;28026b36-8fe4-4332-84c8-524e173a68bf", | |
"id" : "28026b36-8fe4-4332-84c8-524e173a68bf" | |
* Connection #0 to host localhost left intact | |
} | |
#relationships | |
curl -ivX GET 'http://jdoe:password@localhost:8080/hawkular/inventory/feeds/dhcp130-144/relationships' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Plugins are for example email, sms, irc, snmp... Needs to be deployd as war in the Alerts. | |
# Actions are instancies of action Plugins. This actions can be assigned to Triggers. Examples of actions - send email to admin, send sms to CEO, | |
# Trigger has multiple Conditions, based on this condition Action is carried out (send email, create file) | |
# Alert is created when conditions are met. | |
# Standalone mode | |
mvn clean install -Pstandalone | |
hawkular-alerts-rest-tests/target/wildfly-9.0.1.Final/bin/standalone.sh --debug -Dhawkular.backend=embedded_cassandra | |
-H 'Hawkular-Tenant: xmen' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl -ivX POST -H 'Hawkular-Tenant: jdoe' -H 'Content-Type: application/json' 'http://localhost:8080/hawkular/datamining/metrics' -d '{"metricId": "metric1", "collectionInterval": "15" }' | |
curl -ivX PUT -H 'Hawkular-Tenant: jdoe' -H 'Content-Type: application/json' 'http://localhost:8080/hawkular/datamining/metrics/metric1' -d '{"collectionInterval": "22", "forecastingHorizon": 66 }' | |
curl -ivX PUT -H 'Hawkular-Tenant: jdoe' -H 'Content-Type: application/json' 'http://localhost:8080/hawkular/datamining/metrics/metric1/forecaster' -d '{"windowSize" : "150"}' | |
curl -ivX PUT -H 'Hawkular-Tenant: jdoe' -H 'Content-Type: application/json' 'http://localhost:8080/hawkular/datamining/metrics/metric1/forecaster' -d '{"ic" : "BIC"}' | |
curl -ivX PUT -H 'Hawkular-Tenant: jdoe' -H 'Content-Type: application/json' 'http://localhost:8080/hawkular/datamining/metrics/metric1/forecaster' -d '{"modelToUse" : "SimpleExponentialSmoothing"}' | |
curl -ivX PUT -H 'Hawkular-Tenant: jdoe' -H 'Content-Type: application/json' 'http://lo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
install.packages('rjson') | |
install.packages('RCurl') | |
install.packages('fpp') | |
install.packages('xts') | |
library(rjson) | |
library(RCurl) | |
library(fpp) | |
library(xts) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Pair { | |
public String first; | |
public JavaDStream<MetricData> second; | |
public Pair(String first, JavaDStream<MetricData> second) { | |
this.first = first; | |
this.second = second; | |
} | |
} | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
In hawkular-ui-services root | |
bower link | |
In hawkular root | |
mvn clean install -Pdev,link -Dbower.link.package=hawkular-ui-services | |
In hawkular/console/target/gulp-build | |
gulp watch-server | |
Compile hawkular-ui-services |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ResourceType | |
curl -ivX GET 'http://jdoe:password@localhost:8080/hawkular/inventory/resourceTypes/fooType/data?dataType=configurationSchema' | |
curl -ivX GET 'http://jdoe:password@localhost:8080/hawkular/inventory/resourceTypes/fooType/data?dataType=connectionConfigurationSchema' | |
curl -ivX POST -H 'Content-Type:application/json' -d '{"id": "fooType" }' http://jdoe:password@localhost:8080/hawkular/inventory/resourceTypes | |
curl -ivX POST -H "Content-Type:application/json" -d '{"role": "configurationSchema", "value": {"title": "Foo resource configuration schema", "type": "object"}}' 'http://jdoe:password@localhost:8080/hawkular/inventory/resourceTypes/fooType/data' | |
curl -ivX PUT -H "Content-Type:application/json" -d '{"value": {"title": "Foo resource configuration schema", "type": "object", "required": ["man"],"properties": {"man": {"type": "integer"}}}}' 'http://jdoe:password@localhost:8080/hawkular/inventory/resourceTypes/fooType/data?dataType=configurationSchema' | |
curl -ivX PUT -H "Content-Type:application/json" -d |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl -ivX POST -H 'Content-Type:application/json' -d '{"id": "foo" }' http://jdoe:password@localhost:8080/hawkular/inventory/resourceTypes | |
curl -ivX POST -H 'Content-Type:application/json' -d '{"id": "query" }' http://jdoe:password@localhost:8080/hawkular/inventory/resourceTypes | |
curl -X GET -H 'Content-Type:application/json' http://jdoe:password@localhost:8080/hawkular/inventory/resourceTypes/foo | |
curl -ivX POST -H 'Content-Type:application/json' -d '{"id":"parent", "resourceTypePath": "/rt;foo"}' http://jdoe:password@localhost:8080/hawkular/inventory/test/resources | |
curl -ivX POST -H 'Content-Type:application/json' -d '{"id":"parent_children", "resourceTypePath": "/rt;foo"}' 'http://jdoe:password@localhost:8080/hawkular/inventory/test/resources/parent' | |
curl -ivX POST -H 'Content-Type:application/json' -d '{"id":"parent_children2", "resourceTypePath": "/rt;query"}' 'http://jdoe:password@localhost:8080/hawkular/inventory/test/resources/parent' | |
curl -ivX POST -H 'Content-Type:application/json' -d '{"id":"paren |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://docs.jboss.org/jbossas/docs/Server_Configuration_Guide/4/html/index.html |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
By default data are deleted after 7 days | |
-H "Hawkular-Tenant:28026b36-8fe4-4332-84c8-524e173a68bf" | |
Metrics module info | |
curl -ivX GET http://localhost:8080/hawkular/metrics | |
curl -ivX GET -H "Hawkular-Tenant:28026b36-8fe4-4332-84c8-524e173a68bf" 'http://localhost:8080/hawkular/metrics/metrics?type=gauge' | |
curl -ivX GET -H "Hawkular-Tenant:id1" 'localhost:8080/hawkular/metrics/metrics?type=availability' | |
Tenants | |
curl -ivX GET 'http://localhost:8080/hawkular/metrics/tenants' |