Return-Path: X-Original-To: apmail-tinkerpop-commits-archive@minotaur.apache.org Delivered-To: apmail-tinkerpop-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 5F6AF192E4 for ; Mon, 28 Mar 2016 17:06:22 +0000 (UTC) Received: (qmail 65671 invoked by uid 500); 28 Mar 2016 17:06:22 -0000 Delivered-To: apmail-tinkerpop-commits-archive@tinkerpop.apache.org Received: (qmail 65647 invoked by uid 500); 28 Mar 2016 17:06:22 -0000 Mailing-List: contact commits-help@tinkerpop.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@tinkerpop.incubator.apache.org Delivered-To: mailing list commits@tinkerpop.incubator.apache.org Received: (qmail 65612 invoked by uid 99); 28 Mar 2016 17:06:22 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 28 Mar 2016 17:06:22 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id D094518046A for ; Mon, 28 Mar 2016 17:06:21 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -2.471 X-Spam-Level: X-Spam-Status: No, score=-2.471 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, KAM_INFOUSMEBIZ=0.75, KAM_LAZY_DOMAIN_SECURITY=1, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RP_MATCHES_RCVD=-0.001] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id Zy6M91cEcbuC for ; Mon, 28 Mar 2016 17:06:20 +0000 (UTC) Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with SMTP id CEBBB60F49 for ; Mon, 28 Mar 2016 17:06:17 +0000 (UTC) Received: (qmail 64453 invoked by uid 99); 28 Mar 2016 17:06:16 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 28 Mar 2016 17:06:16 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id B5351E0B49; Mon, 28 Mar 2016 17:06:16 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: dkuppitz@apache.org To: commits@tinkerpop.incubator.apache.org Date: Mon, 28 Mar 2016 17:06:43 -0000 Message-Id: <40dcf9e76da4443ba9949484a60c7205@git.apache.org> In-Reply-To: <2d39ee83bb4c4b979b2c93486bdf6ad7@git.apache.org> References: <2d39ee83bb4c4b979b2c93486bdf6ad7@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [28/31] incubator-tinkerpop git commit: Added a section for Gremlin Server metrics to reference docs. Added a section for Gremlin Server metrics to reference docs. Project: http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/commit/c8732958 Tree: http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/tree/c8732958 Diff: http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/diff/c8732958 Branch: refs/heads/docker Commit: c8732958f072691b3a040c4f5cdc36502882fa4e Parents: 8f2fd15 Author: Stephen Mallette Authored: Mon Mar 28 12:12:16 2016 -0400 Committer: Stephen Mallette Committed: Mon Mar 28 12:12:16 2016 -0400 ---------------------------------------------------------------------- .../src/reference/gremlin-applications.asciidoc | 27 ++++++++++++++++++-- 1 file changed, 25 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/blob/c8732958/docs/src/reference/gremlin-applications.asciidoc ---------------------------------------------------------------------- diff --git a/docs/src/reference/gremlin-applications.asciidoc b/docs/src/reference/gremlin-applications.asciidoc index 8d4936a..379780c 100644 --- a/docs/src/reference/gremlin-applications.asciidoc +++ b/docs/src/reference/gremlin-applications.asciidoc @@ -1154,8 +1154,8 @@ Gremlin Server can accept requests and return results using different serializat serialization is configured by the `serializers` setting described in the table above. Note that some serializers have additional configuration options as defined by the `serializers[X].config` setting. The `config` setting is a `Map` where the keys and values get passed to the serializer at its initialization. The available and/or expected - keys are dependent on the serializer being used. Gremlin Server comes packaged with two different serializers: - GraphSON and Gryo. +keys are dependent on the serializer being used. Gremlin Server comes packaged with two different serializers: +GraphSON and Gryo. GraphSON ++++++++ @@ -1222,6 +1222,29 @@ important to use cases where server types need to be coerced to client types (i. but not on the client). Implementations should typically instantiate `ClassResolver` implementations that are extensions of the `GryoClassResolver` as this class is important to most serialization tasks in TinkerPop. +Metrics +^^^^^^^ + +Gremlin Server produces metrics about its operations that can yield some insight into how it is performing. These +metrics are exposed in a variety of ways: + +* Directly to the console where Gremlin Server is running +* CSV file +* link:http://ganglia.info/[Ganglia] +* link:http://graphite.wikidot.com/[Graphite] +* link:http://www.slf4j.org/[SLF4j] +* link:https://en.wikipedia.org/wiki/Java_Management_Extensions[JMX] + +The configuration of each of these outputs is described in the Gremlin Server <<_configuring_2, Configuring>> section. +Regardless of the output, the metrics gathered are the same. Each metric is prefixed with +`org.apache.tinkerpop.gremlin.server.GremlinServer` and the following metrics are reported: + +* `sessions` - the number of sessions open at the time the metric was last measured. +* `errors` - the number of total errors, mean rate, as well as the 1, 5, and 15-minute error rates. +* `op.eval` - the number of script evaluations, mean rate, 1, 5, and 15 minute rates, minimum, maximum, median, mean, +and standard deviation evaluation times, as well as the 75th, 95th, 98th, 99th and 99.9th percentile evaluation times +(note that these time apply to both sessionless and in-session requests). + Best Practices ~~~~~~~~~~~~~~