diff options
author | Jan Provaznik <jprovaznik@gitlab.com> | 2019-04-02 10:26:53 +0000 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2019-04-02 10:26:53 +0000 |
commit | 0e66357a3e411b44647cc4d4ca10c2a19b9a3b55 (patch) | |
tree | d927ac52e9afd011fefbbe0f81f891dbaf8efb3f /app | |
parent | b7b6f8483d4ce9725779527213a7c94dbb59a757 (diff) | |
download | gitlab-ce-0e66357a3e411b44647cc4d4ca10c2a19b9a3b55.tar.gz |
Monitor GraphQL with Prometheus
Extends graphql's platform tracing class to observe duration
of graphql methods.
In graphql 1.8.11 is added prometheus class but it's not very useful
for us because it uses prometheus_exporter to export results.
Diffstat (limited to 'app')
-rw-r--r-- | app/graphql/gitlab_schema.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/graphql/gitlab_schema.rb b/app/graphql/gitlab_schema.rb index 06d26309b5b..ecc34eacc7d 100644 --- a/app/graphql/gitlab_schema.rb +++ b/app/graphql/gitlab_schema.rb @@ -5,6 +5,7 @@ class GitlabSchema < GraphQL::Schema use Gitlab::Graphql::Authorize use Gitlab::Graphql::Present use Gitlab::Graphql::Connections + use Gitlab::Graphql::Tracing query(Types::QueryType) |