Commit Graph

138 Commits

Author SHA1 Message Date
Luna Mendes 6b82684d5a adapters: handle 204's on HttpAdapter
- adapters: add debug info on ping errors
2018-10-15 19:34:54 -03:00
Luna Mendes 37724f2d21 elstat.alerts: use ints instead of bool queries 2018-09-26 03:58:53 -03:00
Luna Mendes 867d7d1e69 elstat.adapters: only log on errors
always logging was giving quite the disk usage on prod.
2018-09-25 18:22:11 -03:00
Luna Mendes 9f5d42c89c add downtime calculation on alerts
- add timestamp on alert embeds
 - make Alert.post receive the worker instead of service info
2018-09-25 18:16:22 -03:00
Luna Mendes 227087284b blueprints.api: use downtime in milliseconds, not seconds
This was giving way too optimistic availability rates.
2018-09-05 21:41:33 -03:00
Luna Mendes 93630f64ef adapters: change "error not found" to "packet lost" 2018-09-05 21:23:58 -03:00
Luna Mendes 5428dcee3c change uptimes to daily, weekly and monthly
- /api/current_status renamed to /api/quick
 - add week_uptime and month_uptime to responses
2018-09-05 21:17:26 -03:00
Luna Mendes e14720a8c8 remove print debug 2018-09-03 22:40:47 -03:00
Luna Mendes 3437bd2b72 Add better error messages
- Add status.json with HTTP status code table
 - Add error fetching on PingAdapter
 - Give warning on no alerts set
2018-09-03 22:39:41 -03:00
Luna Mendes 673e5bb0fc Merge branch 'master' of gitlab.com:elixire/elstat 2018-08-30 22:54:37 -03:00
Luna Mendes 7a2f9a95c7 add alerts
- worker: change Adapter._construct to receive an extra arg
 - worker: hardcode a bad result and write it off on workloop fail
2018-08-30 22:22:02 -03:00
slice 6aae34927b
add uptime display 2018-08-08 17:06:35 -07:00
slice 190f461706
prettier 2018-08-08 17:06:32 -07:00
Luna Mendes a04d44e7de add LICENSE 2018-08-08 20:20:05 -03:00
Luna Mendes 3dd37c0bf1 small logging changes 2018-08-08 19:37:57 -03:00
Luna Mendes d36d3d7449 blueprints.api: quickfix 2018-08-08 17:37:36 -03:00
Luna Mendes 86c99c8fee blueprints.api: add calc_uptime, uptime field on api 2018-08-08 17:30:51 -03:00
Luna Mendes 93de3dfda0 worker: remove unecessary log call 2018-08-08 16:55:30 -03:00
slice 6ce9f10645
add gitlab ci for testing frontend 2018-07-22 12:35:15 -07:00
slice f30e8e15ed
test: add Service test 2018-07-22 12:26:14 -07:00
slice a1cca92a8c
getServiceState: configurable threshold
for testing
2018-07-22 12:26:06 -07:00
slice ec52c980fb
test: remove unused import 2018-07-22 12:25:55 -07:00
slice 946069dc98
test: add initial testing 2018-07-22 12:10:28 -07:00
slice 81147a373a
move service emoji colors to css 2018-07-22 11:52:54 -07:00
slice d66aa77aa7
fe: add routing + proto incident hist page 2018-07-19 14:49:56 -07:00
slice a0b6c8f01d
merge 2018-07-19 14:43:09 -07:00
Luna Mendes 6c94b50ba0 incidents: fix bug 2018-07-19 18:42:34 -03:00
slice 1dab3ccd0b
general code cleanup/refactoring 2018-07-18 17:48:16 -07:00
slice 4a0ed13180
make error look like a bad status 2018-07-18 15:19:56 -07:00
slice 243c23ec2b
lift error handling to componentDidMount 2018-07-18 15:19:53 -07:00
slice 257febd9cc
show newest incident stages first 2018-07-18 15:06:33 -07:00
slice a44574249a
backend: INC_UPDATE -> INCIDENT_UPDATE 2018-07-18 15:06:31 -07:00
slice aa0a200a59
rename <App/> -> <Dashboard/> 2018-07-18 15:01:58 -07:00
slice 5f97f73631
app comp: show current incident and live update 2018-07-18 14:59:21 -07:00
slice 528c9e4368
add incident support to ws 2018-07-18 14:59:07 -07:00
slice d2ec70799d
add ws error codes 2018-07-18 14:58:19 -07:00
slice ad601769c4
only serve frontend build if built 2018-07-18 14:58:11 -07:00
slice d842ebfccb
give c field when publishing incident 2018-07-18 12:47:07 -07:00
slice cea693102f
PUT /api/incidents -> POST /api/incidents 2018-07-18 12:46:58 -07:00
slice 11df05b998
unnest /api/incidents/current 2018-07-18 12:40:39 -07:00
slice 194129a5f2
/api/incident -> /api/incidents
for consistency
2018-07-18 12:39:43 -07:00
slice e8f8d89aa8
embed parsed packet in console 2018-07-18 12:27:52 -07:00
slice 7f6e946c2b
measure ws connect time 2018-07-18 12:24:48 -07:00
slice df3f5e170b
decouple streaming client from app comp 2018-07-18 12:21:44 -07:00
slice cb5ffadcba
support http doamin 2018-07-18 11:51:00 -07:00
Luna Mendes 4407fbd6df docs/streaming: add incident op codes and payloads 2018-07-18 05:01:32 -03:00
Luna Mendes 9c2dbeaf59 incidents: add rest of basic API
- change all ISO timestamp strings to unix timestamps
 - add patch_incident and new_stage

 - streaming: remove INC_UPDATE_STAGE
 - manager: change primary key on instance_stages table

This requires a table change across all elstat instances, since
we changed the primary key on instance_stages.
2018-07-18 04:28:22 -03:00
Luna Mendes dcadfd4c76 blueprints.incidents: add api base
- add getting a single incident, getting multiple (with pages), and
 creating an incident

 - blueprints.streaming: add incident related OP codes
 - consts: add IncidentType
 - manager: add incidents channel, add publish_incident
 - elstat: add snowflake.py
2018-07-17 22:59:11 -03:00
slice 08bf0620a6
make javascript notice pretty 2018-07-16 18:32:42 -07:00
slice 4fbad7f3ed
add favicon (fixes #3) 2018-07-16 18:32:29 -07:00