You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -81,12 +83,49 @@ Use filter plugin (record_transformer) to transform the input log events to add
81
83
82
84
- Example configuration that can be used for monitoring [kafka log](examples/kafka.conf)
83
85
84
-
85
-
86
86
## Start Viewing the Logs in Logging Analytics
87
87
88
88
Refer [Viewing the Logs in Logging Analytics](https://docs.oracle.com/en/learn/oci_logging_analytics_fluentd/#start-viewing-the-logs-in-logging-analytics)
89
89
90
+
## Metrics
91
+
92
+
The plugin emits following metrics in Prometheus format, which provides stats/insights about the data being collected and processed by the plugin. Refer [monitoring-prometheus](https://docs.fluentd.org/monitoring-fluentd/monitoring-prometheus) for details on how to expose these and other various Fluentd metrics to Prometheus (*If the requirement is to collect and monitor core Fluentd and this plugin metrics alone using Prometheus then Step1 and Step2 from the referred document can be skipped*).
@records_received=gauge.new(:oci_la_fluentd_output_plugin_records_received,docstring: 'Number of records received by the OCI Logging Analytics Fluentd output plugin.',labels: [:tag,:oci_la_log_group_id,:oci_la_log_source_name,:oci_la_log_set])
18
+
@records_valid=gauge.new(:oci_la_fluentd_output_plugin_records_valid,docstring: 'Number of valid records received by the OCI Logging Analytics Fluentd output plugin.',labels: [:tag,:oci_la_log_group_id,:oci_la_log_source_name,:oci_la_log_set])
19
+
@records_invalid=gauge.new(:oci_la_fluentd_output_plugin_records_invalid,docstring: 'Number of invalid records received by the OCI Logging Analytics Fluentd output plugin.',labels: [:tag,:oci_la_log_group_id,:oci_la_log_source_name,:oci_la_log_set,:reason])
20
+
@records_error=gauge.new(:oci_la_fluentd_output_plugin_records_post_error,docstring: 'Number of records failed posting to OCI Logging Analytics by the Fluentd output plugin.',labels: [:tag,:oci_la_log_group_id,:oci_la_log_source_name,:oci_la_log_set,:error_code,:reason])
21
+
@records_posted=gauge.new(:oci_la_fluentd_output_plugin_records_post_success,docstring: 'Number of records posted by the OCI Logging Analytics Fluentd output plugin.',labels: [:tag,:oci_la_log_group_id,:oci_la_log_source_name,:oci_la_log_set])
@chunk_time_to_receive=histogram.new(:oci_la_fluentd_output_plugin_chunk_time_to_receive,docstring: 'Average time taken by Fluentd to deliver the collected records from Input plugin to OCI Logging Analytics output plugin.',labels: [:tag])
26
+
@chunk_time_to_upload=histogram.new(:oci_la_fluentd_output_plugin_chunk_time_to_post,docstring: 'Average time taken for posting the received records to OCI Logging Analytics by the Fluentd output plugin.',labels: [:oci_la_log_group_id])
0 commit comments