6 Replies Latest reply on Mar 27, 2017 6:37 AM by rutlucas

    Hawkular: how to create an Alert?

    mylos78

      Hi all,

      I have installed the Hawkular Agent on a WildFly server and had a nice tour of its features. I can see that several Alerts are defined out of the box, however I couldn't find a way to add an Alert or Trigger from the Web UI. Is it not supposed to create Alerts or Triggers from the Web UI ?

      Thanks for your help

      Mylos

        • 1. Re: Hawkular: how to create an Alert?
          rutlucas

          Hi,

          Today in Hawkular UI, Triggers are predefined per resource type.

          For example, for URL there are triggers for response time and availability; for JVM, Web Session, Datasources you might find similar pre-defined Triggers.

          These triggers can be edited in the Alerts Center / Definitions section.

          Can you describe the scenario you have in mind ?

          The Hawkular Alerts component can create definitions using a REST API, but it could be interesting to know your use case to see how it could be implemented.

          Thanks,

          • 2. Re: Hawkular: how to create an Alert?
            mylos78

            Hi Lucas,

            thanks for the quick reply. Well in the past I have been using RHQ and created all my metrics for critical points (e.g. datasource max size reached, JVM memory for server nodes, application not available). From what I read in your reply I think all these metrics should be already available. Just wonder what could be the best way to add a new one: using the REST API or adding it directly in the standalone.xml?

            Thanks

            • 3. Re: Hawkular: how to create an Alert?
              rutlucas

              Hi Mylos,

              When you comment "created all my metrics for critical points", you mean to define an alert definition, right ?

              In Hawkular, there is an agent, responsible to fetch and store all the metrics data according its type of resource.

              On the metrics that are stored Hawkular UI defines pre-defined alerts definitions.

              In the Alerts Center -> Definitions should find all definitions you might need, and you can modify them (threshold, dampenings).

              The Hawkular UI should be your prefered way to modify them.

              Alternative, you could use the Hawkular Alerts REST API to get full access to alerts data (i.e. see what are the triggers defined and modify its conditions) and automate that from scripting perspective.

              When you comment "to add a new one" ? What exactly do you mean ? You would like to add a new trigger definition on a metric that today is not available ?

              From the UI today is not available but this topic is interesting for us, can you comment which resources would need more alerts definitions ?

              Using the REST UI it could be in theory possible but you should know the dataId (low detail identifier) of the metric where we want to define a trigger (This is a technical detail I need to check if it could be possible).

              Thanks

              • 4. Re: Hawkular: how to create an Alert?
                mylos78

                Thanks again for your reply. About your question:

                When you comment "to add a new one" ? What exactly do you mean ? You would like to add a new trigger definition on a metric that today is not available ?

                Yes I was meaning exactly that. Well if the metrics could span also the infinispan subsystem that would be awesome as we could have real-time graphs on cache behaviour. Probably this involves installing the Agent on Infinispan installation.

                Thanks

                 

                Ps one update, from the Alert definitions UI I can see just the triggers raised (17), but I'm not able to see all the definitions available in the server's configuration file. Is it an issue with my agent (running on Wildfly 10) ?

                definitions.png

                • 5. Re: Hawkular: how to create an Alert?
                  free4murad

                  Can someone please give the solution for this?

                  • 6. Re: Hawkular: how to create an Alert?
                    rutlucas

                    Hi,

                    The Hawkular UI has been moved and integrated in the ManageIQ providers ecosystem.

                    But Alerting service is still available from the API.

                    GitHub - hawkular/hawkular-alerts: Alerting subsystem for Hawkular

                    In the main repo there are an examples folder with several ready to use scenarios and a tutorial.

                    Also I recommend to take a look into the intro

                    Hawkular Alerting