orange-cloudfoundry / pivotaltrackermirror

Mirror a pivotal tracker project to an another tracker
Apache License 2.0
1 stars 2 forks source link

Ease monitoring #21

Open gberche-orange opened 8 years ago

gberche-orange commented 8 years ago

Currently, when an exception occurs (e.g. network failure) during mirror job, its status is set to ERROR and this is propagated to the quartz scheduler.

It will be nice to be able to trigger an alert in such cases so that an operator can have a look at it.

The API endpoint api/tasks/{id}/ returns a JSON hash with a status such as

{"jobStatus":"ERROR","dateStartTime":"2016-08-12T13:09Z","nextFireTime":"2016-08-25T15:09Z","previousFireTime":"2016-08-25T13:09Z"}

Available monitoring such as AWS route 53 support querying an http endpoint (without authentication) and the cheapest option (0$.75 /month) is to rely on the HTTP status code for signaling an issue:

An alternative with an hosted monitoring such as cachet with a custom plugin such as https://github.com/castawaylabs/cachet-monitor#configuration

Exposing an unauthenticated endpoint such as