Prisma1: Analytics/Metrics/Monitoring

Created on 12 Jan 2017  路  12Comments  路  Source: prisma/prisma1

Would be cool to monitor the speed/performance of a specific GraphQL query. To see how many effective queries were executed under the hood.
( for example: https://youtu.be/c35bj1AT3X8?t=41m39s )

This makes sure the developer knows what happens under the hood instead of just relying on 'magic'. :)

Maybe the amount of queries interests me & also execution time in total (and even better, per individual query under the hood)

areconsole

Most helpful comment

I have created a repo with two examples of how to add your own metrics using Apollo Engine on top of Graphcool endpoints, using the API Gateway pattern and schema stitching:
https://github.com/kbrandwijk/graphcool-gateway-apollo-engine-demo

All 12 comments

We are researching possible approaches for analytics/metrics. If you have specific needs for a certain metric, please comment so we can consider it :slightly_smiling_face:

+1 馃憤

馃憤 Besides the granular and aggregate performance monitoring mentioned, I'd like to be made aware of any special spikes e.g if some user starts to send an abnormally high number of requests.

Maybe look to scaphold for inspiration. A simple(?) but very effective way of getting this feature out to your users quickly would be to offer an Apollo Optics integration for starters (sa scaphold also provides).

Is there any current or planned work for such an integration?

EDIT: Ah, I just saw the reference from #133 - sorry :-) +1 instead

Thanks for chiminig in, we're indeed planning an Apollo Optics integration here 馃檪

Any ETA on the integration? It's an important factor for the decisionmakers I need to convince :-)

Thanks for reaching out in Slack - it's tough to give an accurate estimate, but we're giving our best 馃槈

This has been WIP for a few months. Any news on the Optics integration?

We're still working on integrating a monitoring/analytics dashboard into the Console, in a first step it will likely be custom metrics and not a direct Apollo Optics integration.

Monitoring request: raising alerts when a Function should be invoked, but it is not (related to https://github.com/graphcool/api-bugs/issues/243)

I have created a repo with two examples of how to add your own metrics using Apollo Engine on top of Graphcool endpoints, using the API Gateway pattern and schema stitching:
https://github.com/kbrandwijk/graphcool-gateway-apollo-engine-demo

This issue has been moved to graphcool/graphcool-framework.

Was this page helpful?
0 / 5 - 0 ratings