Skip to content

Commit

Permalink
added job_id to analytics data resolves #544
Browse files Browse the repository at this point in the history
  • Loading branch information
jsnoble committed Sep 14, 2017
1 parent d5397d6 commit a232cac
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/cluster/storage/analytics.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ module.exports = function(context) {
results.push(backend.bulk({
"@timestamp": timestamp,
ex_id: job.jobConfig.ex_id,
job_id: job.jobConfig.job_id,
worker_id: worker_id,
slice_id: slice_info.slice_id,
slicer_id: slice_info.slicer_id,
Expand Down
4 changes: 4 additions & 0 deletions lib/cluster/storage/backends/mappings/analytics.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@
"type": "string",
"index" : "not_analyzed"
},
"job_id": {
"type": "string",
"index" : "not_analyzed"
},
"worker_id": {
"type": "string",
"index" : "not_analyzed"
Expand Down

0 comments on commit a232cac

Please sign in to comment.