Skip to content

Commit 1456e86

Browse files
toyboxmanguoyuepeng
authored andcommitted
Complement stuffs to docker guide.
Author: Eugene <[email protected]> Closes #439 from toyboxman/doc/docker.
1 parent 3545a71 commit 1456e86

File tree

1 file changed

+35
-2
lines changed

1 file changed

+35
-2
lines changed

griffin-doc/docker/griffin-docker-guide.md

+35-2
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,41 @@ And change the initial environment `BASE_PATH` value to `<your local IP address>
7878
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>
7979
![update env](../img/devguide/add-job.png)<br><br>
8080
7. After some minutes, you can get the metrics from elasticsearch.
81-
```
82-
curl -XGET '<your local IP address>:39200/griffin/accuracy/_search?pretty&filter_path=hits.hits._source' -d '{"query":{"match_all":{}}, "sort": [{"tmst": {"order": "asc"}}]}'
81+
```bash
82+
curl -XGET '<IP Address>:39200/griffin/accuracy/_search?pretty&filter_path=hits.hits._source' \
83+
-d '{"query":{"match_all":{}}, "sort": [{"tmst": {"order": "asc"}}]}'
84+
85+
# json metric data returned
86+
{
87+
"hits" : {
88+
"hits" : [
89+
{
90+
"_source" : {
91+
"name" : "metricName",
92+
"tmst" : 1509599811123,
93+
"value" : {
94+
"__tmst" : 1509599811123,
95+
"miss" : 11,
96+
"total" : 125000,
97+
"matched" : 124989
98+
}
99+
}
100+
},
101+
{
102+
"_source" : {
103+
"name" : "metricName",
104+
"tmst" : 1509599811123,
105+
"value" : {
106+
"__tmst" : 1509599811123,
107+
"miss" : 11,
108+
"total" : 125000,
109+
"matched" : 124989
110+
}
111+
}
112+
}
113+
]
114+
}
115+
}
83116
```
84117
85118
### How to use Apache Griffin docker images in streaming mode

0 commit comments

Comments
 (0)