-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cherry-pick #9166 to 6.x: Index cluster.id and cluster.name in elasti…
…csearch/pending_tasks metricset (#9174) Cherry-pick of PR #9166 to 6.x branch. Original message: This PR teaches the `elasticsearch/pending_tasks` metricset to index the Elasticsearch `cluster_uuid` and `cluster_name` as the module-level `cluster.id` and `cluster.name` fields, respectively.
- Loading branch information
1 parent
eec92fc
commit 4fd6ff7
Showing
4 changed files
with
78 additions
and
32 deletions.
There are no files selected for viewing
46 changes: 24 additions & 22 deletions
46
metricbeat/module/elasticsearch/pending_tasks/_meta/data.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,26 @@ | ||
{ | ||
"@timestamp": "2018-05-03T20:58:17.379Z", | ||
"metricset": { | ||
"rtt": 2487, | ||
"namespace": "elasticsearch.cluster.pending_task", | ||
"name": "pending_tasks", | ||
"module": "elasticsearch", | ||
"host": "localhost:9200" | ||
}, | ||
"elasticsearch": { | ||
"cluster": { | ||
"pending_task": { | ||
"insert_order": 47, | ||
"priority": "HIGH", | ||
"source": "put-mapping", | ||
"time_in_queue.ms": 34 | ||
} | ||
"@timestamp": "2018-05-03T20:58:17.379Z", | ||
"metricset": { | ||
"rtt": 2487, | ||
"namespace": "elasticsearch.cluster.pending_task", | ||
"name": "pending_tasks", | ||
"module": "elasticsearch", | ||
"host": "localhost:9200" | ||
}, | ||
"elasticsearch": { | ||
"cluster": { | ||
"id": "3LbUkLkURz--FR-YO0wLNA", | ||
"name": "es1", | ||
"pending_task": { | ||
"insert_order": 47, | ||
"priority": "HIGH", | ||
"source": "put-mapping", | ||
"time_in_queue.ms": 34 | ||
} | ||
} | ||
}, | ||
"beat": { | ||
"name": "host.example.com", | ||
"hostname": "host.example.com" | ||
} | ||
}, | ||
"beat": { | ||
"name": "host.example.com", | ||
"hostname": "host.example.com" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters