Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
app
 
 
bin
 
 
 
 
lib
 
 
 
 
 
 
 
 
 
 
 
 

Graphql Metrics Dashboard

A picture is more worth than a thousand badly written words.

alt text

Simple performance dashboard for graphql queries for runtime development for rails applications. Only use for performance measurement in development, dont run this in production.

Installation

Add to bundle:

gem 'graphql_metrics',source: 'https://github.com/emilebosch/graphql-metrics.git'

Add to your graphql schema:

Schema = GraphQL::Schema.define do
  query(Types::Query)
  mutation(Types::Mutation)

  instrument :field, GraphqlMetrics::FieldInstrumentation.new
  instrument :query, GraphqlMetrics::QueryInstrumentation.new
end

Then mount your engine at /metrics

mount GraphqlMetrics::Engine, at: '/metrics'

Note

THis is using an in memory story to record the queries and fields. Therefore you might want to prevent any forking webserver.

Recommend switching to webrick for testing.

About

GraphQL metrics dashboard for ruby GraphQL

Topics

Resources

Releases

No releases published

Packages

No packages published