Commit Graph

102 Commits

Author SHA1 Message Date
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
slice 7b7cc187e7
pluralize indicative in DegradedNotice comp 2018-07-16 18:18:14 -07:00
slice 31f171e94a
refactor if statement to ternary 2018-07-16 18:16:39 -07:00
slice 637a06e985
data insertion v2 electric boogaloo 2018-07-16 18:15:51 -07:00
slice 7cd549c46b
fix jsx spacing 2018-07-16 18:06:15 -07:00
slice 07a304cbc1
properly handle fetch errors 2018-07-16 18:06:06 -07:00
slice 7a5e39f078
don't subscribe to channels if fetching stats fail 2018-07-16 18:05:50 -07:00
slice 24e30a6e72
remove config and add example
Let's force the user to specify their configuration instead of using
ave's deployed elstat automatically.
2018-07-16 10:46:08 -07:00
slice cb12d43aea
detect slow services and show an icon
The amount of latency a service needs before being considered "slow" is
configurable in config.json. By default, it is 2000ms (2s).

A side effect of this change is that the "service unresponsive" icon
that is shown when a service is unreachable has been changed to an X
instead of a !.

The slow icon now uses the ! icon.

Additionally, icon "titles" were added to aid any screen readers.
2018-07-16 10:44:06 -07:00
slice 4c13c191fd
merge 2018-07-15 21:45:35 -07:00
slice d3458ac763
add red notice when some services are unreachable 2018-07-15 21:44:59 -07:00
slice 3fdf603cb5
remove extraneous semicolons
mary have mercy
2018-07-15 21:24:23 -07:00
slice c1f2b38ba2
subscribe and handle status changes 2018-07-15 21:22:06 -07:00
slice 8d517ec037
make ws recv logs prettier 2018-07-15 21:21:56 -07:00
slice a5a005a1e4
make domain configurable via config.json 2018-07-15 21:21:41 -07:00
slice e33f0fa558
relint! 2018-07-15 21:04:43 -07:00
Luna Mendes e3a3e1b77b
worker: publish new status upon worker crash 2018-07-14 22:30:29 -03:00
Luna Mendes 8d8f38b5a1 Merge branch 'master' of gitlab.com:elixire/elstat 2018-07-14 22:28:43 -03:00
Luna Mendes 83b2d88311
change adapter response type to dict
this simplifies a lot of code since tuples are immutable.

 - adapters: add Adapter._construct
 - worker: set status state to False on worker crash
2018-07-14 22:27:06 -03:00
slice ebe6105fb3
tweak axes, hide y axis on mobile 2018-07-13 22:12:59 -07:00
slice 1e4e04c025
switch to recharts
* i'm actually done. this library has everything good
2018-07-13 22:03:12 -07:00
slice 4fc4604496
wait fuck go back 2018-07-13 20:30:28 -07:00
slice 79955da890
remove npm from project deps BALANCE THE UNIVERSE
seriously i have no idea how this even happened

probably did `npm i npm i` on accident haHA
2018-07-13 20:28:27 -07:00
slice 8d9b02fa48
remove unused dep
oops
2018-07-13 20:10:31 -07:00
slice f43aeec290
merge 2018-07-13 19:54:28 -07:00
slice 8f744326b2
prevent duplicate ticks on x axis 2018-07-13 19:54:05 -07:00
slice b525404d9b
sort data by timestamp 2018-07-13 19:53:53 -07:00
slice 37dd98026d
add proptypes to graph comp 2018-07-13 19:40:45 -07:00
slice 50c479d6ea
round off latency 2018-07-13 19:39:44 -07:00
slice f447994133
make latency font smaller on smaller devices 2018-07-13 19:37:03 -07:00
slice a3eeef15eb
remove graph y axis on small devices 2018-07-13 19:36:42 -07:00
slice 3bddbaa15d
hide metrics upon error 2018-07-13 19:34:03 -07:00
slice 5b33219f13
show close code and reason on ws close 2018-07-13 19:33:53 -07:00
slice 0964133dbe
make placeholder graph match actual graph height 2018-07-13 19:29:49 -07:00
Luna Mendes ecf6234cfe elstat.adapters: add latency to db spec
Since this is a change to the table schema for all services using the
ping adapter, you will have to delete the tables relating to them.

 - elstat.blueprints: add incidents blueprint (WIP)
 - elstat.blueprints: add decorators.py
 - elstat.blueprints: add errors.py
 - elstat.manager: add incidents & incident_stages tables
 - run: add handler for ApiError
2018-07-13 23:20:09 -03:00
slice d4e280a563
add ws reconnection logic 2018-07-13 19:11:50 -07:00
slice 1b74c3da3f
create components folder 2018-07-13 19:06:38 -07:00