logstash/docs/static/monitoring
Mashhur f19e9cb647
Collect queue growth events and bytes metrics when PQ is enabled. (#14554)
* Collect growth events and bytes metrics if PQ is enabled: Java changes.

* Move queue flow under queue namespace.

* Pipeline level PQ flow metrics: add unit & integration tests.

* Include queue info in node stats sample.

* Apply suggestions from code review

Change uptime precision for PQ growth metrics to uptime seconds since PQ events are based on seconds.

Co-authored-by: Ry Biesemeyer <yaauie@users.noreply.github.com>

* Add safeguard when using lazy delegating gauge type.

* flow metrics: simplify generics of lazy implementation

Enables interface `FlowMetrics::create` to take suppliers that _implement_
a `Metric<? extends Number>` instead of requiring them to be pre-cast, and
avoid unnecessary exposure of the metrics value-type into our lazy init.

* flow metrics: use lazy init for PQ gauge-based metrics

* noop: use enum equality

Avoids routing two enum values through `MetricType#toString()`
and `String#equals()` when they can be compared directly.

* Apply suggestions from code review

Optional.ofNullable used for safe return. Doc includes real tested expected metric values.

Co-authored-by: Ry Biesemeyer <yaauie@users.noreply.github.com>

* flow metrics: make lazy-init wraper inherit from AbstractMetric

this allows the Jackson serialization annotations to work

* flow metrics: move pipeline queue-based flows into pipeline flow namespace

* Follow up for moving PQ growth metrics under pipeline.*.flow.
- Unit and integration tests are added or fixed.
- Documentation added along with sample response data

* flow: pipeline pq flow rates docs

* Do not expect flow in the queue section of API. Metrics moved to flow section.

Update logstash-core/spec/logstash/api/commands/stats_spec.rb

Co-authored-by: Ry Biesemeyer <yaauie@users.noreply.github.com>

* Integration test failure fix.

Mistake: `flow_status` should be `pipeline_flow_stats`

Co-authored-by: Ry Biesemeyer <yaauie@users.noreply.github.com>

* Integration test failures fix.

Number should be Numeric in the ruby specs.

Co-authored-by: Ry Biesemeyer <yaauie@users.noreply.github.com>

* Make CI happy.

* api specs: use PQ only where needed

Co-authored-by: Ry Biesemeyer <yaauie@users.noreply.github.com>
Co-authored-by: Ry Biesemeyer <ry.biesemeyer@elastic.co>
2022-10-13 15:30:31 -07:00
..
images Doc:Replace outdated pipeline viewer screenshot 2020-07-09 07:31:32 -07:00
pipelines [DOCS] Move monitoring folder to docs (#9677) 2018-05-30 09:02:39 -07:00
collectors-legacy.asciidoc [Doc]Restructure monitoring docs to support new and legacy internal collectors (#11714) 2020-04-14 15:47:56 -04:00
monitoring-apis.asciidoc Collect queue growth events and bytes metrics when PQ is enabled. (#14554) 2022-10-13 15:30:31 -07:00
monitoring-internal-legacy.asciidoc Fix broken link to image (#14343) 2022-07-12 14:53:07 +01:00
monitoring-mb.asciidoc Docs remove homebrew (#13747) 2022-02-09 11:40:55 -08:00
monitoring-output-legacy.asciidoc [Doc]Restructure monitoring docs to support new and legacy internal collectors (#11714) 2020-04-14 15:47:56 -04:00
monitoring-overview.asciidoc Doc:Add deprecation notice to legacy collection 2020-06-26 15:52:40 -07:00
monitoring-ui.asciidoc Add metricbeat as monitoring option (#11033) 2019-10-03 18:39:20 -04:00
monitoring.asciidoc [Doc]Restructure monitoring docs to support new and legacy internal collectors (#11714) 2020-04-14 15:47:56 -04:00
pipeline-viewer.asciidoc [doc] Removes 'beta' from pipeline viewer doc (#14082) 2022-06-30 11:09:27 +09:00
troubleshooting.asciidoc [Doc]Restructure monitoring docs to support new and legacy internal collectors (#11714) 2020-04-14 15:47:56 -04:00