attached-logging-monitoring/monitoring/sidecar-configmap.yaml (35 lines of code) (raw):

# Copyright 2021 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # [START anthos_monitoring_sidecar_configmap_configmap_stackdriver_prometheus_sidecar_config] # Prometheus Sidecar config. apiVersion: v1 kind: ConfigMap metadata: name: stackdriver-prometheus-sidecar-config namespace: kube-system data: # Configuration file to add metadata for Fluent Bit metrics. # ====================================================== config.yaml: | static_metadata: - metric: fluentbit_filter_add_records_total type: counter help: "Total count of records added by Fluent Bit filter plugin." - metric: fluentbit_filter_drop_records_total type: counter help: "Total count of records dropped by Fluent Bit filter plugin." - metric: fluentbit_input_records_total type: counter help: "Total count of records processed by Fluent Bit input plugin." - metric: fluentbit_input_bytes_total type: counter help: "Total bytes processed by Fluent Bit input plugin." - metric: fluentbit_output_errors_total type: counter help: "Total count of errors from Fluent Bit output plugin." - metric: fluentbit_output_proc_records_total type: counter help: "Total count of records processed by Fluent Bit output plugin." - metric: fluentbit_output_proc_bytes_total type: counter help: "Total bytes processed by Fluent Bit output plugin." - metric: fluentbit_output_retries_total type: counter help: "Total count of retries performed by Fluent Bit output plugin." - metric: fluentbit_output_retries_failed_total type: counter help: "Total count of failed retries encountered by Fluent Bit output plugin." # [END anthos_monitoring_sidecar_configmap_configmap_stackdriver_prometheus_sidecar_config]