graphql-engine/server
Naveen Naidu f55df228fe Server: Add Event Trigger Metrics
- [x] **Event Triggers Metrics**
  - [x] Distribution of size of event trigger fetches / Number of events fetched in the last `event trigger fetch`
  - [x] Event Triggers: Number of event trigger HTTP workers in process
  - [x]  Event Triggers: Avg event trigger lock time (if an event has been fetched but not processed because http worker is not free)

#### Sample response
The metrics can be viewed from the `/dev/ekg` endpoint

```json
{
"num_events_fetched":{
      "max":0,
      "mean":0,
      "count":1,
      "min":0,
      "variance":null,
      "type":"d",
      "sum":0
   },
 "num_event_trigger_http_workers":{
      "type":"g",
      "val":0
   },
"event_lock_time":{
      "max":0,
      "mean":0,
      "count":0,
      "min":0,
      "variance":0,
      "type":"d",
      "sum":0
   },
```

#### Todo
- [ ]  Group similar metrics together (Eg: Group all the metrics related to Event trigger, How do we do it??)

Closes: https://github.com/hasura/graphql-engine-mono/issues/202
GitOrigin-RevId: bada11d871272b04c8a09d006d9d037a8464a472
2021-03-07 05:25:24 +00:00
..
bench-wrk server: make more use of hlint (#6059) 2020-10-28 16:40:33 +00:00
packaging build: fix the packaging of the static console assets 2021-03-02 13:23:53 +00:00
src-bench-cache server: make more use of hlint (#6059) 2020-10-28 16:40:33 +00:00
src-exec Optimistic Metadata Locking 2021-02-19 02:40:23 +00:00
src-lib Server: Add Event Trigger Metrics 2021-03-07 05:25:24 +00:00
src-rsr server: support mssql views 2021-03-05 10:53:38 +00:00
src-test server: support reading JWT from Cookie header 2021-02-25 09:03:46 +00:00
tests-py server: support mssql views 2021-03-05 10:53:38 +00:00
.dockerignore update packages (#251) 2018-08-08 13:10:13 +05:30
.gitignore Merge oss/master onto mono/main 2020-11-12 22:37:19 +05:30
.hlint.yaml server: add MSSQL support 2021-02-23 17:38:36 +00:00
.stylish-haskell.yaml ci: run stylish haskell on all incoming PRs 2021-01-21 23:37:26 +00:00
cabal.project update ci-info-hs for cabal 3.4 (#747) 2021-03-03 07:02:42 +00:00
cabal.project.ci update resource limits on circleci [force ci] 2021-01-29 14:36:07 +00:00
cabal.project.dev server: Bump GHC version to 8.10.2 (#5659) 2020-08-26 23:16:23 -05:00
cabal.project.dev-sh dev.sh: restore code coverage functionality 2020-01-23 18:35:18 -05:00
cabal.project.dev-sh.freeze dev.sh: restore code coverage functionality 2020-01-23 18:35:18 -05:00
cabal.project.dev-sh.local ci: activate -Werror in dev.sh config 2021-01-08 21:32:34 +00:00
cabal.project.freeze server: add MSSQL support 2021-02-23 17:38:36 +00:00
commit_diff.txt Rewrite GraphQL schema generation and query parsing (close #2801) (#4111) 2020-08-21 12:27:01 -05:00
CONTRIBUTING.md docs: changelog & server documentation improvements 2021-03-01 20:53:43 +00:00
graphql-engine.cabal mssql: connection pooling 2021-02-25 18:16:52 +00:00
Makefile server: add MSSQL support 2021-02-23 17:38:36 +00:00
sample.hie.yaml Merge oss/master onto mono/main 2020-11-12 22:37:19 +05:30
Setup.hs move raven into graphql-engine repo 2018-06-28 00:32:00 +05:30
STYLE.md server: Add a Haskell style guide (#2175) 2020-04-08 02:31:30 -05:00