opensearch-docs-cn/_data-prepper/managing-data-prepper/monitoring.md

59 lines
3.8 KiB
Markdown
Raw Normal View History

Add Monitoring to doc website repo (#2018) * Adding file to new pull request to resolve problem with previous PR. Signed-off-by: carolxob <carolxob@amazon.com> * Minor formatting changes and added a hyperlink. Signed-off-by: carolxob <carolxob@amazon.com> * Minor updates based on doc review feedback. Signed-off-by: carolxob <carolxob@amazon.com> * Awaiting a couple of tech review comments. Doc review feedback incorporated. Signed-off-by: carolxob <carolxob@amazon.com> * Added comment regarding data-prepper-api link. Signed-off-by: carolxob <carolxob@amazon.com> * Checkin test. Signed-off-by: carolxob <carolxob@amazon.com> * Minor edits from technical and editorial feedback. Signed-off-by: carolxob <carolxob@amazon.com> * Minor edits. Signed-off-by: carolxob <carolxob@amazon.com> * Adjusted capitalization for one word. * Added comment for context in editorial review. Signed-off-by: carolxob <carolxob@amazon.com> * Update _data-prepper/monitoring.md Co-authored-by: Nate Bower <nbower@amazon.com> * Update _data-prepper/monitoring.md Co-authored-by: Nate Bower <nbower@amazon.com> * Update _data-prepper/monitoring.md Co-authored-by: Nate Bower <nbower@amazon.com> * Update _data-prepper/monitoring.md Co-authored-by: Nate Bower <nbower@amazon.com> * Update _data-prepper/monitoring.md Co-authored-by: Nate Bower <nbower@amazon.com> * Update _data-prepper/monitoring.md Co-authored-by: Nate Bower <nbower@amazon.com> * Update _data-prepper/monitoring.md Co-authored-by: Nate Bower <nbower@amazon.com> * Update _data-prepper/monitoring.md Co-authored-by: Nate Bower <nbower@amazon.com> * Update _data-prepper/monitoring.md Co-authored-by: Nate Bower <nbower@amazon.com> * Update _data-prepper/monitoring.md Co-authored-by: Nate Bower <nbower@amazon.com> * Update _data-prepper/monitoring.md Co-authored-by: Nate Bower <nbower@amazon.com> * Update _data-prepper/monitoring.md Co-authored-by: Nate Bower <nbower@amazon.com> * Update _data-prepper/monitoring.md Co-authored-by: Nate Bower <nbower@amazon.com> * Update _data-prepper/monitoring.md Co-authored-by: Nate Bower <nbower@amazon.com> * Update _data-prepper/monitoring.md Co-authored-by: Nate Bower <nbower@amazon.com> * Update _data-prepper/monitoring.md Co-authored-by: Nate Bower <nbower@amazon.com> * Update _data-prepper/monitoring.md Co-authored-by: Nate Bower <nbower@amazon.com> * Update _data-prepper/monitoring.md Co-authored-by: Nate Bower <nbower@amazon.com> * Update _data-prepper/monitoring.md Co-authored-by: Nate Bower <nbower@amazon.com> * Update _data-prepper/monitoring.md Co-authored-by: Nate Bower <nbower@amazon.com> * Removed markdown comment from file. Signed-off-by: carolxob <carolxob@amazon.com> * Slight word change. Signed-off-by: carolxob <carolxob@amazon.com> * Update _data-prepper/monitoring.md Co-authored-by: Naarcha-AWS <97990722+Naarcha-AWS@users.noreply.github.com> * Made doc review edits. Signed-off-by: carolxob <carolxob@amazon.com> * Minor updates to phrasing. Signed-off-by: carolxob <carolxob@amazon.com> * Incorporated technical review feedback. Signed-off-by: carolxob <carolxob@amazon.com> * Minor updates based on tech review feedback. Signed-off-by: carolxob <carolxob@amazon.com> * Minor update to phrasing Signed-off-by: carolxob <carolxob@amazon.com> * Minor updates. Signed-off-by: carolxob <carolxob@amazon.com> * Minor updates. Signed-off-by: carolxob <carolxob@amazon.com> Signed-off-by: carolxob <carolxob@amazon.com> Co-authored-by: Nate Bower <nbower@amazon.com> Co-authored-by: Naarcha-AWS <97990722+Naarcha-AWS@users.noreply.github.com>
2023-01-24 16:25:24 -05:00
---
layout: default
title: Monitoring
parent: Managing Data Prepper
Data Prepper ToC Update (#2514) * Creating PR with first file. Signed-off-by: carolxob <carolxob@amazon.com> * Adding newly created files to PR. Signed-off-by: carolxob <carolxob@amazon.com> * Reorganized files and added appropriate metadata to map ToC correctly. Signed-off-by: carolxob <carolxob@amazon.com> * Moved Authoring pipelines page. Signed-off-by: carolxob <carolxob@amazon.com> * Minor ToC updates. Signed-off-by: carolxob <carolxob@amazon.com> * Minor ToC updates to Sources section for Data Prepper. Signed-off-by: carolxob <carolxob@amazon.com> * Updated Buffers section under Data Prepper. Signed-off-by: carolxob <carolxob@amazon.com> * Minor update to otelmetricssource. Signed-off-by: carolxob <carolxob@amazon.com> * Restructured ToC in Processors section for Data Prepper. Signed-off-by: carolxob <carolxob@amazon.com> * Minor filename change. Signed-off-by: carolxob <carolxob@amazon.com> * Adjustments to metadata in ToC. Signed-off-by: carolxob <carolxob@amazon.com> * Minor edit. Signed-off-by: carolxob <carolxob@amazon.com> * Fixed nav order in metadata. Signed-off-by: carolxob <carolxob@amazon.com> * Minor edit. Signed-off-by: carolxob <carolxob@amazon.com> * Minor update top metadata for ToC. Signed-off-by: carolxob <carolxob@amazon.com> * Adjustmenets to Toc order. Signed-off-by: carolxob <carolxob@amazon.com> * Minor adjustments to ToC metadata. Signed-off-by: carolxob <carolxob@amazon.com> * Minor adjustments to Sinks section. Signed-off-by: carolxob <carolxob@amazon.com> * Adjustements to high level ToC. Signed-off-by: carolxob <carolxob@amazon.com> * Minor adjustement to Pipelines.md Signed-off-by: carolxob <carolxob@amazon.com> * Minor update. Signed-off-by: carolxob <carolxob@amazon.com> * Slight reorganization. Removed two placeholder pages for now. Signed-off-by: carolxob <carolxob@amazon.com> * Removed a page and replaced with pipelines content. Signed-off-by: carolxob <carolxob@amazon.com> * Minor changes/additions to content for placeholder pages. Signed-off-by: carolxob <carolxob@amazon.com> * Minor update to page link. Signed-off-by: carolxob <carolxob@amazon.com> * Minor adjustments to ToC metadata. Signed-off-by: carolxob <carolxob@amazon.com> * Minor edits. Signed-off-by: carolxob <carolxob@amazon.com> * Removed /clients from redirects to correct nav order. Signed-off-by: carolxob <carolxob@amazon.com> * Minor edits. Signed-off-by: carolxob <carolxob@amazon.com> * Minor adjustments to ToC metadata. Signed-off-by: carolxob <carolxob@amazon.com> * Minor adjustments. Signed-off-by: carolxob <carolxob@amazon.com> * Minor adjustment ot metadata. Signed-off-by: carolxob <carolxob@amazon.com> * TOC link fixes Signed-off-by: Naarcha-AWS <naarcha@amazon.com> * Changed page name. Signed-off-by: carolxob <carolxob@amazon.com> * Corrected references to Peer Forwarder. Signed-off-by: carolxob <carolxob@amazon.com> * Renamed Data Prepper folder. Signed-off-by: carolxob <carolxob@amazon.com> * Minor updates to phrasing and capitalization. Signed-off-by: carolxob <carolxob@amazon.com> * Minor phrasing update. Signed-off-by: carolxob <carolxob@amazon.com> * Minor phrasing update. Signed-off-by: carolxob <carolxob@amazon.com> * Minor change. Signed-off-by: carolxob <carolxob@amazon.com> * Minor change to change S3 Source to S3Source. Signed-off-by: carolxob <carolxob@amazon.com> * Updated references to peer forwarder and changed capitalization. Signed-off-by: carolxob <carolxob@amazon.com> * Updated capitalization for peer forwarder. Signed-off-by: carolxob <carolxob@amazon.com> * Made edits based on doc review feedback. Signed-off-by: carolxob <carolxob@amazon.com> * Update to one word. Signed-off-by: carolxob <carolxob@amazon.com> --------- Signed-off-by: carolxob <carolxob@amazon.com> Signed-off-by: Naarcha-AWS <naarcha@amazon.com> Co-authored-by: Naarcha-AWS <naarcha@amazon.com>
2023-02-03 17:06:10 -05:00
nav_order: 25
Add Monitoring to doc website repo (#2018) * Adding file to new pull request to resolve problem with previous PR. Signed-off-by: carolxob <carolxob@amazon.com> * Minor formatting changes and added a hyperlink. Signed-off-by: carolxob <carolxob@amazon.com> * Minor updates based on doc review feedback. Signed-off-by: carolxob <carolxob@amazon.com> * Awaiting a couple of tech review comments. Doc review feedback incorporated. Signed-off-by: carolxob <carolxob@amazon.com> * Added comment regarding data-prepper-api link. Signed-off-by: carolxob <carolxob@amazon.com> * Checkin test. Signed-off-by: carolxob <carolxob@amazon.com> * Minor edits from technical and editorial feedback. Signed-off-by: carolxob <carolxob@amazon.com> * Minor edits. Signed-off-by: carolxob <carolxob@amazon.com> * Adjusted capitalization for one word. * Added comment for context in editorial review. Signed-off-by: carolxob <carolxob@amazon.com> * Update _data-prepper/monitoring.md Co-authored-by: Nate Bower <nbower@amazon.com> * Update _data-prepper/monitoring.md Co-authored-by: Nate Bower <nbower@amazon.com> * Update _data-prepper/monitoring.md Co-authored-by: Nate Bower <nbower@amazon.com> * Update _data-prepper/monitoring.md Co-authored-by: Nate Bower <nbower@amazon.com> * Update _data-prepper/monitoring.md Co-authored-by: Nate Bower <nbower@amazon.com> * Update _data-prepper/monitoring.md Co-authored-by: Nate Bower <nbower@amazon.com> * Update _data-prepper/monitoring.md Co-authored-by: Nate Bower <nbower@amazon.com> * Update _data-prepper/monitoring.md Co-authored-by: Nate Bower <nbower@amazon.com> * Update _data-prepper/monitoring.md Co-authored-by: Nate Bower <nbower@amazon.com> * Update _data-prepper/monitoring.md Co-authored-by: Nate Bower <nbower@amazon.com> * Update _data-prepper/monitoring.md Co-authored-by: Nate Bower <nbower@amazon.com> * Update _data-prepper/monitoring.md Co-authored-by: Nate Bower <nbower@amazon.com> * Update _data-prepper/monitoring.md Co-authored-by: Nate Bower <nbower@amazon.com> * Update _data-prepper/monitoring.md Co-authored-by: Nate Bower <nbower@amazon.com> * Update _data-prepper/monitoring.md Co-authored-by: Nate Bower <nbower@amazon.com> * Update _data-prepper/monitoring.md Co-authored-by: Nate Bower <nbower@amazon.com> * Update _data-prepper/monitoring.md Co-authored-by: Nate Bower <nbower@amazon.com> * Update _data-prepper/monitoring.md Co-authored-by: Nate Bower <nbower@amazon.com> * Update _data-prepper/monitoring.md Co-authored-by: Nate Bower <nbower@amazon.com> * Update _data-prepper/monitoring.md Co-authored-by: Nate Bower <nbower@amazon.com> * Removed markdown comment from file. Signed-off-by: carolxob <carolxob@amazon.com> * Slight word change. Signed-off-by: carolxob <carolxob@amazon.com> * Update _data-prepper/monitoring.md Co-authored-by: Naarcha-AWS <97990722+Naarcha-AWS@users.noreply.github.com> * Made doc review edits. Signed-off-by: carolxob <carolxob@amazon.com> * Minor updates to phrasing. Signed-off-by: carolxob <carolxob@amazon.com> * Incorporated technical review feedback. Signed-off-by: carolxob <carolxob@amazon.com> * Minor updates based on tech review feedback. Signed-off-by: carolxob <carolxob@amazon.com> * Minor update to phrasing Signed-off-by: carolxob <carolxob@amazon.com> * Minor updates. Signed-off-by: carolxob <carolxob@amazon.com> * Minor updates. Signed-off-by: carolxob <carolxob@amazon.com> Signed-off-by: carolxob <carolxob@amazon.com> Co-authored-by: Nate Bower <nbower@amazon.com> Co-authored-by: Naarcha-AWS <97990722+Naarcha-AWS@users.noreply.github.com>
2023-01-24 16:25:24 -05:00
---
Add Monitoring to doc website repo (#2018) * Adding file to new pull request to resolve problem with previous PR. Signed-off-by: carolxob <carolxob@amazon.com> * Minor formatting changes and added a hyperlink. Signed-off-by: carolxob <carolxob@amazon.com> * Minor updates based on doc review feedback. Signed-off-by: carolxob <carolxob@amazon.com> * Awaiting a couple of tech review comments. Doc review feedback incorporated. Signed-off-by: carolxob <carolxob@amazon.com> * Added comment regarding data-prepper-api link. Signed-off-by: carolxob <carolxob@amazon.com> * Checkin test. Signed-off-by: carolxob <carolxob@amazon.com> * Minor edits from technical and editorial feedback. Signed-off-by: carolxob <carolxob@amazon.com> * Minor edits. Signed-off-by: carolxob <carolxob@amazon.com> * Adjusted capitalization for one word. * Added comment for context in editorial review. Signed-off-by: carolxob <carolxob@amazon.com> * Update _data-prepper/monitoring.md Co-authored-by: Nate Bower <nbower@amazon.com> * Update _data-prepper/monitoring.md Co-authored-by: Nate Bower <nbower@amazon.com> * Update _data-prepper/monitoring.md Co-authored-by: Nate Bower <nbower@amazon.com> * Update _data-prepper/monitoring.md Co-authored-by: Nate Bower <nbower@amazon.com> * Update _data-prepper/monitoring.md Co-authored-by: Nate Bower <nbower@amazon.com> * Update _data-prepper/monitoring.md Co-authored-by: Nate Bower <nbower@amazon.com> * Update _data-prepper/monitoring.md Co-authored-by: Nate Bower <nbower@amazon.com> * Update _data-prepper/monitoring.md Co-authored-by: Nate Bower <nbower@amazon.com> * Update _data-prepper/monitoring.md Co-authored-by: Nate Bower <nbower@amazon.com> * Update _data-prepper/monitoring.md Co-authored-by: Nate Bower <nbower@amazon.com> * Update _data-prepper/monitoring.md Co-authored-by: Nate Bower <nbower@amazon.com> * Update _data-prepper/monitoring.md Co-authored-by: Nate Bower <nbower@amazon.com> * Update _data-prepper/monitoring.md Co-authored-by: Nate Bower <nbower@amazon.com> * Update _data-prepper/monitoring.md Co-authored-by: Nate Bower <nbower@amazon.com> * Update _data-prepper/monitoring.md Co-authored-by: Nate Bower <nbower@amazon.com> * Update _data-prepper/monitoring.md Co-authored-by: Nate Bower <nbower@amazon.com> * Update _data-prepper/monitoring.md Co-authored-by: Nate Bower <nbower@amazon.com> * Update _data-prepper/monitoring.md Co-authored-by: Nate Bower <nbower@amazon.com> * Update _data-prepper/monitoring.md Co-authored-by: Nate Bower <nbower@amazon.com> * Update _data-prepper/monitoring.md Co-authored-by: Nate Bower <nbower@amazon.com> * Removed markdown comment from file. Signed-off-by: carolxob <carolxob@amazon.com> * Slight word change. Signed-off-by: carolxob <carolxob@amazon.com> * Update _data-prepper/monitoring.md Co-authored-by: Naarcha-AWS <97990722+Naarcha-AWS@users.noreply.github.com> * Made doc review edits. Signed-off-by: carolxob <carolxob@amazon.com> * Minor updates to phrasing. Signed-off-by: carolxob <carolxob@amazon.com> * Incorporated technical review feedback. Signed-off-by: carolxob <carolxob@amazon.com> * Minor updates based on tech review feedback. Signed-off-by: carolxob <carolxob@amazon.com> * Minor update to phrasing Signed-off-by: carolxob <carolxob@amazon.com> * Minor updates. Signed-off-by: carolxob <carolxob@amazon.com> * Minor updates. Signed-off-by: carolxob <carolxob@amazon.com> Signed-off-by: carolxob <carolxob@amazon.com> Co-authored-by: Nate Bower <nbower@amazon.com> Co-authored-by: Naarcha-AWS <97990722+Naarcha-AWS@users.noreply.github.com>
2023-01-24 16:25:24 -05:00
# Monitoring Data Prepper with metrics
You can monitor Data Prepper with metrics using [Micrometer](https://micrometer.io/). There are two types of metrics: JVM/system metrics and plugin metrics. [Prometheus](https://prometheus.io/) is used as the default metrics backend.
## JVM and system metrics
JVM and system metrics are runtime metrics that are used to monitor Data Prepper instances. They include metrics for classloaders, memory, garbage collection, threads, and others. For more information, see [JVM and system metrics](https://micrometer.io/docs/ref/jvm).
### Naming
JVM and system metrics follow predefined names in [Micrometer](https://micrometer.io/docs/concepts#_naming_meters). For example, the Micrometer metrics name for memory usage is `jvm.memory.used`. Micrometer changes the name to match the metrics system. Following the same example, `jvm.memory.used` is reported to Prometheus as `jvm_memory_used`, and is reported to Amazon CloudWatch as `jvm.memory.used.value`.
### Serving
By default, metrics are served from the **/metrics/sys** endpoint on the Data Prepper server in Prometheus scrape format. You can configure Prometheus to scrape from the Data Prepper URL. Prometheus then polls Data Prepper for metrics and stores them in its database. To visualize the data, you can set up any frontend that accepts Prometheus metrics, such as [Grafana](https://prometheus.io/docs/visualization/grafana/). You can update the configuration to serve metrics to other registries like Amazon CloudWatch, which does not require or host the endpoint but publishes the metrics directly to CloudWatch.
## Plugin metrics
Plugins report their own metrics. Data Prepper uses a naming convention to help with consistency in the metrics. Plugin metrics do not use dimensions.
1. AbstractBuffer
- Counter
- `recordsWritten`: The number of records written into a buffer
- `recordsRead`: The number of records read from a buffer
- `recordsProcessed`: The number of records read from a buffer and marked as processed
- `writeTimeouts`: The count of write timeouts in a buffer
- Gaugefir
- `recordsInBuffer`: The number of records in a buffer
- `recordsInFlight`: The number of records read from a buffer and being processed by data-prepper downstreams (for example, processor, sink)
- Timer
- `readTimeElapsed`: The time elapsed while reading from a buffer
- `checkpointTimeElapsed`: The time elapsed while checkpointing
2. AbstractProcessor
- Counter
- `recordsIn`: The number of records ingressed into a processor
- `recordsOut`: The number of records egressed from a processor
- Timer
- `timeElapsed`: The time elapsed during initiation of a processor
3. AbstractSink
- Counter
- `recordsIn`: The number of records ingressed into a sink
- Timer
- `timeElapsed`: The time elapsed during execution of a sink
### Naming
Metrics follow a naming convention of **PIPELINE_NAME_PLUGIN_NAME_METRIC_NAME**. For example, a **recordsIn** metric for the **opensearch-sink** plugin in a pipeline named **output-pipeline** has a qualified name of **output-pipeline_opensearch_sink_recordsIn**.
### Serving
By default, metrics are served from the **/metrics/sys** endpoint on the Data Prepper server in a Prometheus scrape format. You can configure Prometheus to scrape from the Data Prepper URL. The Data Prepper server port has a default value of `4900` that you can modify, and this port can be used for any frontend that accepts Prometheus metrics, such as [Grafana](https://prometheus.io/docs/visualization/grafana/). You can update the configuration to serve metrics to other registries like CloudWatch, that does not require or host the endpoint, but publishes the metrics directly to CloudWatch.