<commit_before>= Hawkular Alerting Demo

This repository contains resources to prepare a standalone demo for Hawkular Alerting.

NOTE: This demo has been tested on Linux platforms. Bash scripts can be easily translated into other platforms.

== Prepare Hawkular Alerting

Build a Hawkular Alerting standalone distribution:

[source,shell,subs="+attributes"]
----
    git clone https://github.com/hawkular/hawkular-alerts.git
    cd hawkular-alerts
    mvn clean install
----

Start the standalone server:

[source,shell,subs="+attributes"]
----
    cd hawkular-alerts/hawkular-alerts-rest-tests/target/wildfly-10.0.0.Final/
    bin/standalone.sh
----

[TIP]
.Test Email server
==================
By default, Hawkular Alerting will send email notifications using a SMTP server on localhost:25, for demo purposes
 a test smtp server can be used to validate the reception of the emails. +
  +
Hawkular Alerting has been tested using
  https://nilhcem.github.io/FakeSMTP/[FakeSMTP]. +
  +
A GUI SMTP server can be set up with these steps:
[source,shell,subs="+attributes"]
----
    git clone https://github.com/Nilhcem/FakeSMTP
    cd FakeSMTP
    mvn clean install -DskipTests
    cd target
    sudo java -jar fakeSMTP-*.jar
----
==================

== Install and start a Wildfly Server

In a new bash session:
 +
[source,shell,subs="+attributes"]<commit_msg>Specify better that we are going to use two servers<commit_after>= Hawkular Alerting Demo

This repository contains resources to prepare a standalone demo for Hawkular Alerting.

NOTE: This demo has been tested on Linux platforms. Bash scripts can be easily translated into other platforms.

== Prepare Hawkular Alerting

Build a Hawkular Alerting standalone distribution:

[source,shell,subs="+attributes"]
----
    git clone https://github.com/hawkular/hawkular-alerts.git
    cd hawkular-alerts
    mvn clean install
----

Start Hawkular Alerting:

[source,shell,subs="+attributes"]
----
    cd hawkular-alerts/hawkular-alerts-rest-tests/target/wildfly-10.0.0.Final/
    bin/standalone.sh
----

[TIP]
.Test Email server
==================
By default, Hawkular Alerting will send email notifications using a SMTP server on localhost:25, for demo purposes
 a test smtp server can be used to validate the reception of the emails. +
  +
Hawkular Alerting has been tested using
  https://nilhcem.github.io/FakeSMTP/[FakeSMTP]. +
  +
A GUI SMTP server can be set up with these steps:
[source,shell,subs="+attributes"]
----
    git clone https://github.com/Nilhcem/FakeSMTP
    cd FakeSMTP
    mvn clean install -DskipTests
    cd target
    sudo java -jar fakeSMTP-*.jar
----
==================

== Install and start a monitored Wildfly Server

In a new bash session:
 +
[source,shell,subs="+attributes"]
{'fraction_non_alphanumeric': 0.11892675852066716, 'fraction_numerical': 0.00435097897026831, 'mean_word_length': 3.8403508771929826, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 6, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '443821', 'n_tokens_mistral': 872, 'n_tokens_neox': 818, 'n_words': 290}