You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@griffin.apache.org by gu...@apache.org on 2018/10/16 07:07:58 UTC

incubator-griffin git commit: Complement stuffs to docker guide.

Repository: incubator-griffin
Updated Branches:
  refs/heads/master 3545a71c7 -> 1456e86cc


Complement stuffs to docker guide.

Author: Eugene <li...@apache.org>

Closes #439 from toyboxman/doc/docker.


Project: http://git-wip-us.apache.org/repos/asf/incubator-griffin/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-griffin/commit/1456e86c
Tree: http://git-wip-us.apache.org/repos/asf/incubator-griffin/tree/1456e86c
Diff: http://git-wip-us.apache.org/repos/asf/incubator-griffin/diff/1456e86c

Branch: refs/heads/master
Commit: 1456e86cc70ba27a608cfa6e02420d71cfc0c5e6
Parents: 3545a71
Author: Eugene <li...@apache.org>
Authored: Tue Oct 16 15:07:46 2018 +0800
Committer: William Guo <gu...@apache.org>
Committed: Tue Oct 16 15:07:46 2018 +0800

----------------------------------------------------------------------
 griffin-doc/docker/griffin-docker-guide.md | 37 +++++++++++++++++++++++--
 1 file changed, 35 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-griffin/blob/1456e86c/griffin-doc/docker/griffin-docker-guide.md
----------------------------------------------------------------------
diff --git a/griffin-doc/docker/griffin-docker-guide.md b/griffin-doc/docker/griffin-docker-guide.md
index 750a654..7395740 100644
--- a/griffin-doc/docker/griffin-docker-guide.md
+++ b/griffin-doc/docker/griffin-docker-guide.md
@@ -78,8 +78,41 @@ And change the initial environment `BASE_PATH` value to `<your local IP address>
 6. Add a job to through api `jobs -> Add job`, to schedule a job to execute the measure. In the example, the schedule interval is 5 minutes.<br><br>
 ![update env](../img/devguide/add-job.png)<br><br>
 7. After some minutes, you can get the metrics from elasticsearch.
-    ```
-    curl -XGET '<your local IP address>:39200/griffin/accuracy/_search?pretty&filter_path=hits.hits._source' -d '{"query":{"match_all":{}},  "sort": [{"tmst": {"order": "asc"}}]}'
+    ```bash
+    curl -XGET '<IP Address>:39200/griffin/accuracy/_search?pretty&filter_path=hits.hits._source' \
+    -d '{"query":{"match_all":{}},  "sort": [{"tmst": {"order": "asc"}}]}'
+    
+    # json metric data returned
+    {
+      "hits" : {
+        "hits" : [
+          {
+            "_source" : {
+              "name" : "metricName",
+              "tmst" : 1509599811123,
+              "value" : {
+                "__tmst" : 1509599811123,
+                "miss" : 11,
+                "total" : 125000,
+                "matched" : 124989
+              }
+            }
+          },
+          {
+            "_source" : {
+              "name" : "metricName",
+              "tmst" : 1509599811123,
+              "value" : {
+                "__tmst" : 1509599811123,
+                "miss" : 11,
+                "total" : 125000,
+                "matched" : 124989
+              }
+            }
+          }
+        ]
+      }
+    }
     ```
 
 ### How to use Apache Griffin docker images in streaming mode