-
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit d3fc632
Showing
1 changed file
with
22 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
## graphql monitoring proxy | ||
|
||
Creates a passthrough proxy to a graphql endpoint(s), allowing you for analysis of the queries and responses, producing the prometheus metrics at a fraction of the cost - because as we know - $0 is a fair price. | ||
|
||
### Endpoints | ||
|
||
/v1/graphql - the graphql endpoint | ||
/metrics - the prometheus metrics endpoint | ||
/healthz - the healthcheck endpoint | ||
|
||
### Configuration | ||
|
||
`MONITORING_PORT` - the port to expose the metrics endpoint on (default: 9393) | ||
`PORT_GRAPHQL` - the port to expose the graphql endpoint on (default: 8080) | ||
`HOST_GRAPHQL` - the host to proxy the graphql endpoint to (default: `localhost/v1/graphql`) | ||
|
||
`JWT_USER_CLAIM_PATH` - the path to the user claim in the JWT token (default: ``) | ||
|
||
`ENABLE_CACHE` - enable the cache (default: `false`) | ||
`CACHE_TTL` - the cache TTL (default: `60s`) | ||
|
||
`LOG_LEVEL` - the log level (default: `info`) |