1

Netflix-Eureka has a well defined RESTful API to get status of all services currently registered with it. We can pull this information anytime with a simple GET request.

I want to setup an alerting system that will notify someone either by email or sms if a service goes DOWN or UP.

Currently I am trying to achieve this using hawkular-alerts. I was wondering if this can be possible without writing much of custom code.

If there is some other better solution, please quote.

Scenario: Eureka provides an endpoint something like http://domain/eureka/v2/apps on which if we make a GET request, it returns a JSON something like:

{
  "applications": [
    {
      "name": "SERVICE01",
      "status": "UP"
    },
    {
      "name": "SERVICE02",
      "status": "DOWN"
    }
  ]
}

Now based on this resultant JSON, I need to fire an alert email telling SERVICE02 is down. Is it possible with hawkular-alerts?

Cœur
  • 37,241
  • 25
  • 195
  • 267
Ashutosh
  • 324
  • 1
  • 11

1 Answers1

0

I am not familiar with Eureka but I guess you can use a similar example as defined in

https://github.com/hawkular/hawkular-alerts/tree/master/examples/hello-world

Basically, you can create a script to feed data into Hawkular Alerting and define rules there to detect your scenario.

If you give me more details I can help with a prototype.

  • I have updated my question and added the scenario. Can you now please evaluate if this fits into this example? – Ashutosh May 30 '17 at 13:31
  • Sorry, I completely missed the notification of the comment. Did you take an opportunity to take a look into the example ? – Lucas Ponce Jun 23 '17 at 13:14