Skip to content

Commit

Permalink
Merge pull request #260 from elastic/main
Browse files Browse the repository at this point in the history
🤖 ESQL: Merge upstream
  • Loading branch information
elasticsearchmachine authored Oct 3, 2022
2 parents e4d65c4 + 3c1fedf commit a139f40
Show file tree
Hide file tree
Showing 4 changed files with 72 additions and 27 deletions.
5 changes: 5 additions & 0 deletions docs/changelog/90493.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
pr: 90493
summary: Add fields to fix logstash cgroup graphs
area: Monitoring
type: bug
issues: []
16 changes: 16 additions & 0 deletions docs/changelog/90494.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
pr: 90494
summary: Fix logstash loadavg (xpack cases)
area: Monitoring
type: bug
issues: []
highlight:
title: "Stack Monitoring: Logstash load average type fixed for metricbeat collection"
body: |-
Previously, the templates for ingesting logstash load average using metricbeat were set to `long`. This provides only an integer graph.
The type has been corrected to `half_float`. You can force a rollover to see the change immediately or wait for the next ILM rollover.
[source,console]
----
POST .monitoring-logstash-8-mb/_rollover
----
53 changes: 32 additions & 21 deletions x-pack/plugin/core/src/main/resources/monitoring-logstash-mb.json
Original file line number Diff line number Diff line change
Expand Up @@ -146,10 +146,10 @@
"type": "nested",
"properties": {
"name": {
"type": "keyword"
"type": "keyword"
},
"value": {
"type": "long"
"type": "long"
}
}
}
Expand All @@ -164,13 +164,13 @@
"load_average": {
"properties": {
"5m": {
"type": "long"
"type": "half_float"
},
"15m": {
"type": "long"
"type": "half_float"
},
"1m": {
"type": "long"
"type": "half_float"
}
}
}
Expand All @@ -192,6 +192,9 @@
"type": "long"
}
}
},
"cfs_quota_micros": {
"type": "long"
}
}
},
Expand Down Expand Up @@ -393,22 +396,6 @@
"properties": {
"cpu": {
"properties": {
"stat": {
"properties": {
"number_of_elapsed_periods": {
"path": "logstash.node.stats.os.cgroup.cpu.stat.number_of_elapsed_periods",
"type": "alias"
},
"number_of_times_throttled": {
"path": "logstash.node.stats.os.cgroup.cpu.stat.number_of_times_throttled",
"type": "alias"
},
"time_throttled_nanos": {
"path": "logstash.node.stats.os.cgroup.cpu.stat.time_throttled_nanos",
"type": "alias"
}
}
},
"load_average": {
"properties": {
"5m": {
Expand Down Expand Up @@ -436,6 +423,30 @@
"type": "alias"
}
}
},
"cpu": {
"properties": {
"stat": {
"properties": {
"number_of_elapsed_periods": {
"path": "logstash.node.stats.os.cgroup.cpu.stat.number_of_elapsed_periods",
"type": "alias"
},
"number_of_times_throttled": {
"path": "logstash.node.stats.os.cgroup.cpu.stat.number_of_times_throttled",
"type": "alias"
},
"time_throttled_nanos": {
"path": "logstash.node.stats.os.cgroup.cpu.stat.time_throttled_nanos",
"type": "alias"
}
}
},
"cfs_quota_micros": {
"path": "logstash.node.stats.os.cgroup.cpu.cfs_quota_micros",
"type": "alias"
}
}
}
}
}
Expand Down
25 changes: 19 additions & 6 deletions x-pack/plugin/core/src/main/resources/monitoring-logstash.json
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,9 @@
"type": "long"
}
}
},
"cfs_quota_micros": {
"type": "long"
}
}
}
Expand Down Expand Up @@ -271,7 +274,7 @@
"out": {
"type": "long"
},
"duration_in_millis":{
"duration_in_millis": {
"type": "long"
},
"queue_push_duration_in_millis": {
Expand Down Expand Up @@ -301,11 +304,21 @@
"id": {
"type": "keyword"
},
"pipeline_ephemeral_id": { "type": "keyword" },
"events_in": { "type": "long" },
"events_out": { "type": "long" },
"duration_in_millis": { "type": "long" },
"queue_push_duration_in_millis": { "type": "long" },
"pipeline_ephemeral_id": {
"type": "keyword"
},
"events_in": {
"type": "long"
},
"events_out": {
"type": "long"
},
"duration_in_millis": {
"type": "long"
},
"queue_push_duration_in_millis": {
"type": "long"
},
"long_counters": {
"type": "nested",
"properties": {
Expand Down

0 comments on commit a139f40

Please sign in to comment.