sumologic:
  accessId: CHANGE_ME
  accessKey: CHANGE_ME
  clusterName: CHANGE_ME
kube-prometheus-stack:
  prometheus:
    prometheusSpec:
      additionalScrapeConfigs:
        ## scraping metrics basing on annotations:
        ##   - prometheus.io/scrape: true - to scrape metrics from the pod
        ##   - prometheus.io/path: /metrics - path which the metric should be scrape from
        ##   - prometheus.io/port: 9113 - port which the metric should be scrape from
        ## rel: https://github.com/prometheus-operator/kube-prometheus/pull/16#issuecomment-424318647
        - job_name: 'kubernetes-pods'
          kubernetes_sd_configs:
            - role: pod
          relabel_configs:
            - source_labels: [__meta_kubernetes_pod_annotation_prometheus_io_scrape]
              action: keep
              regex: true
            - source_labels: [__meta_kubernetes_pod_annotation_prometheus_io_path]
              action: replace
              target_label: __metrics_path__
              regex: (.+)
            - source_labels: [__address__, __meta_kubernetes_pod_annotation_prometheus_io_port]
              action: replace
              regex: ([^:]+)(?::\d+)?;(\d+)
              replacement: $1:$2
              target_label: __address__
            - source_labels: [__meta_kubernetes_endpoint_address_target_kind, __meta_kubernetes_endpoint_address_target_name]
              separator: ;
              regex: Node;(.*)
              target_label: node
              replacement: ${1}
              action: replace
            - source_labels: [__meta_kubernetes_endpoint_address_target_kind, __meta_kubernetes_endpoint_address_target_name]
              separator: ;
              regex: Pod;(.*)
              target_label: pod
              replacement: ${1}
              action: replace
            - source_labels: [__metrics_path__]
              separator: ;
              regex: (.*)
              target_label: endpoint
              replacement: $1
              action: replace
            - source_labels: [__meta_kubernetes_namespace]
              action: replace
              target_label: namespace
            - action: labelmap
              regex: __meta_kubernetes_pod_label_(.+)
            - source_labels: [__meta_kubernetes_service_name]
              separator: ;
              regex: (.*)
              target_label: service
              replacement: $1
              action: replace
            - source_labels: [__meta_kubernetes_pod_name]
              separator: ;
              regex: (.*)
              target_label: pod
              replacement: $1
              action: replace
            - source_labels: [__meta_kubernetes_service_name]
              separator: ;
              regex: (.*)
              target_label: job
              replacement: ${1}
              action: replace
        - job_name: 'istiod'
          kubernetes_sd_configs:
          - role: endpoints
            namespaces:
              names:
              - istio-system
          relabel_configs:
          - source_labels: [__meta_kubernetes_service_name, __meta_kubernetes_endpoint_port_name]
            action: keep
            regex: istiod;http-monitoring
        - job_name: 'envoy-stats'
          metrics_path: /stats/prometheus
          kubernetes_sd_configs:
          - role: pod
          relabel_configs:
          - source_labels: [__meta_kubernetes_pod_container_port_name]
            action: keep
            regex: '.*-envoy-prom'

      remoteWrite: 
        ## kube non pod state metrics
        ## kube_daemonset_status_current_number_scheduled
        ## kube_daemonset_status_desired_number_scheduled
        ## kube_daemonset_status_number_misscheduled
        ## kube_daemonset_status_number_unavailable
        ## kube_deployment_spec_replicas
        ## kube_deployment_status_replicas_available
        ## kube_deployment_status_replicas_unavailable
        ## kube_node_info
        ## kube_node_status_allocatable
        ## kube_node_status_capacity
        ## kube_node_status_condition
        ## kube_statefulset_metadata_generation
        ## kube_statefulset_replicas
        ## kube_statefulset_status_observed_generation
        ## kube_statefulset_status_replicas
        ## kube_hpa_spec_max_replicas
        ## kube_hpa_spec_min_replicas
        ## kube_hpa_status_current_replicas
        ## kube_hpa_status_desired_replicas
        - url: http://$(FLUENTD_METRICS_SVC).$(NAMESPACE).svc.cluster.local:9888/prometheus.metrics.state
          remoteTimeout: 5s
          writeRelabelConfigs:
            - action: keep
              regex: kube-state-metrics;(?:kube_statefulset_status_observed_generation|kube_statefulset_status_replicas|kube_statefulset_replicas|kube_statefulset_metadata_generation|kube_daemonset_status_current_number_scheduled|kube_daemonset_status_desired_number_scheduled|kube_daemonset_status_number_misscheduled|kube_daemonset_status_number_unavailable|kube_deployment_spec_replicas|kube_deployment_status_replicas_available|kube_deployment_status_replicas_unavailable|kube_node_info|kube_node_status_allocatable|kube_node_status_capacity|kube_node_status_condition|kube_hpa_spec_max_replicas|kube_hpa_spec_min_replicas|kube_hpa_status_current_replicas|kube_hpa_status_desired_replicas)
              sourceLabels: [job, __name__]
            - action: labelmap
              regex: (pod|service)
              replacement: service_discovery_${1}
            - action: labeldrop
              regex: (pod|service)
        ## kube pod state metrics
        ## kube_pod_container_info
        ## kube_pod_container_resource_limits
        ## kube_pod_container_resource_requests
        ## kube_pod_container_status_ready
        ## kube_pod_container_status_restarts_total
        ## kube_pod_container_status_terminated_reason
        ## kube_pod_container_status_waiting_reason
        ## kube_pod_status_phase
        - url: http://$(FLUENTD_METRICS_SVC).$(NAMESPACE).svc.cluster.local:9888/prometheus.metrics.state
          remoteTimeout: 5s
          writeRelabelConfigs:
            - action: keep
              regex: kube-state-metrics;(?:kube_pod_container_info|kube_pod_container_resource_requests|kube_pod_container_resource_limits|kube_pod_container_status_ready|kube_pod_container_status_terminated_reason|kube_pod_container_status_waiting_reason|kube_pod_container_status_restarts_total|kube_pod_status_phase)
              sourceLabels: [job, __name__]
        ## controller manager metrics
        ## https://kubernetes.io/docs/concepts/cluster-administration/monitoring/#kube-controller-manager-metrics
        ## e.g.
        ## cloudprovider_aws_api_request_duration_seconds_bucket
        ## cloudprovider_aws_api_request_duration_seconds_count
        ## cloudprovider_aws_api_request_duration_seconds_sum
        - url: http://$(FLUENTD_METRICS_SVC).$(NAMESPACE).svc.cluster.local:9888/prometheus.metrics.controller-manager
          remoteTimeout: 5s
          writeRelabelConfigs:
            - action: keep
              regex: kubelet;cloudprovider_.*_api_request_duration_seconds.*
              sourceLabels: [job, __name__]
        ## scheduler metrics_latency_microseconds
        ## scheduler_e2e_scheduling_duration_seconds_bucket
        ## scheduler_e2e_scheduling_duration_seconds_count
        ## scheduler_e2e_scheduling_duration_seconds_sum
        ## scheduler_binding_duration_seconds_bucket
        ## scheduler_binding_duration_seconds_count
        ## scheduler_binding_duration_seconds_sum
        ## scheduler_scheduling_algorithm_duration_seconds_bucket
        ## scheduler_scheduling_algorithm_duration_seconds_count
        ## scheduler_scheduling_algorithm_duration_seconds_sum
        - url: http://$(FLUENTD_METRICS_SVC).$(NAMESPACE).svc.cluster.local:9888/prometheus.metrics.scheduler
          remoteTimeout: 5s
          writeRelabelConfigs:
            - action: keep
              regex: kube-scheduler;scheduler_(?:e2e_scheduling|binding|scheduling_algorithm)_duration_seconds.*
              sourceLabels: [job, __name__]
        ## api server metrics:
        ## apiserver_request_count
        ## apiserver_request_total
        ## apiserver_request_duration_seconds_count
        ## apiserver_request_duration_seconds_sum
        ## apiserver_request_latencies_count
        ## apiserver_request_latencies_sum
        ## apiserver_request_latencies_summary
        ## apiserver_request_latencies_summary_count
        ## apiserver_request_latencies_summary_sum
        ## etcd_request_cache_get_duration_seconds_count
        ## etcd_request_cache_get_duration_seconds_sum
        ## etcd_request_cache_add_duration_seconds_count
        ## etcd_request_cache_add_duration_seconds_sum
        ## etcd_request_cache_add_latencies_summary_count
        ## etcd_request_cache_add_latencies_summary_sum
        ## etcd_request_cache_get_latencies_summary_count
        ## etcd_request_cache_get_latencies_summary_sum
        ## etcd_helper_cache_hit_count
        ## etcd_helper_cache_hit_total
        ## etcd_helper_cache_miss_count
        ## etcd_helper_cache_miss_total
        - url: http://$(FLUENTD_METRICS_SVC).$(NAMESPACE).svc.cluster.local:9888/prometheus.metrics.apiserver
          remoteTimeout: 5s
          writeRelabelConfigs:
            - action: keep
              regex: apiserver;(?:apiserver_request_(?:count|total)|apiserver_request_(?:duration_seconds|latencies)_(?:count|sum)|apiserver_request_latencies_summary(?:|_count|_sum)|etcd_request_cache_(?:add|get)_(?:duration_seconds|latencies_summary)_(?:count|sum)|etcd_helper_cache_(?:hit|miss)_(?:count|total))
              sourceLabels: [job, __name__]
        ## kubelet metrics:
        ## kubelet_docker_operations_errors
        ## kubelet_docker_operations_errors_total
        ## kubelet_docker_operations_duration_seconds_count
        ## kubelet_docker_operations_duration_seconds_sum
        ## kubelet_runtime_operations_duration_seconds_count
        ## kubelet_runtime_operations_duration_seconds_sum
        ## kubelet_running_container_count
        ## kubelet_running_containers
        ## kubelet_running_pod_count
        ## kubelet_running_pods
        ## kubelet_docker_operations_latency_microseconds
        ## kubelet_docker_operations_latency_microseconds_count
        ## kubelet_docker_operations_latency_microseconds_sum
        ## kubelet_runtime_operations_latency_microseconds
        ## kubelet_runtime_operations_latency_microseconds_count
        ## kubelet_runtime_operations_latency_microseconds_sum
        - url: http://$(FLUENTD_METRICS_SVC).$(NAMESPACE).svc.cluster.local:9888/prometheus.metrics.kubelet
          remoteTimeout: 5s
          writeRelabelConfigs:
            - action: keep
              regex: kubelet;(?:kubelet_docker_operations_errors(?:|_total)|kubelet_(?:docker|runtime)_operations_duration_seconds_(?:count|sum)|kubelet_running_(?:container|pod)(?:_count|s)|kubelet_(:?docker|runtime)_operations_latency_microseconds(?:|_count|_sum))
              sourceLabels: [job, __name__]
        ## cadvisor container metrics
        ## container_cpu_usage_seconds_total
        ## container_fs_limit_bytes
        ## container_fs_usage_bytes
        ## container_memory_working_set_bytes
        ## container_cpu_cfs_throttled_seconds_total
        - url: http://$(FLUENTD_METRICS_SVC).$(NAMESPACE).svc.cluster.local:9888/prometheus.metrics.container
          remoteTimeout: 5s
          writeRelabelConfigs:
            - action: labelmap
              regex: container_name
              replacement: container
            - action: drop
              regex: POD
              sourceLabels: [container]
            - action: keep
              regex: kubelet;.+;(?:container_cpu_usage_seconds_total|container_memory_working_set_bytes|container_fs_usage_bytes|container_fs_limit_bytes|container_cpu_cfs_throttled_seconds_total)
              sourceLabels: [job, container, __name__]
        ## cadvisor aggregate container metrics
        ## container_network_receive_bytes_total
        ## container_network_transmit_bytes_total
        - url: http://$(FLUENTD_METRICS_SVC).$(NAMESPACE).svc.cluster.local:9888/prometheus.metrics.container
          remoteTimeout: 5s
          writeRelabelConfigs:
            - action: keep
              regex: kubelet;(?:container_network_receive_bytes_total|container_network_transmit_bytes_total)
              sourceLabels: [job, __name__]
            - action: labeldrop
              regex: container
        ## node exporter metrics
        ## node_cpu_seconds_total
        ## node_load1
        ## node_load5
        ## node_load15
        - url: http://$(FLUENTD_METRICS_SVC).$(NAMESPACE).svc.cluster.local:9888/prometheus.metrics.node
          remoteTimeout: 5s
          writeRelabelConfigs:
            - action: keep
              regex: node-exporter;(?:node_load1|node_load5|node_load15|node_cpu_seconds_total)
              sourceLabels: [job, __name__]
        ## prometheus operator rules
        ## :kube_pod_info_node_count:
        ## :node_cpu_saturation_load1:
        ## :node_cpu_utilisation:avg1m
        ## :node_disk_saturation:avg_irate
        ## :node_disk_utilisation:avg_irate
        ## :node_memory_swap_io_bytes:sum_rate
        ## :node_memory_utilisation:
        ## :node_net_saturation:sum_irate
        ## :node_net_utilisation:sum_irate
        ## cluster_quantile:apiserver_request_duration_seconds:histogram_quantile
        ## cluster_quantile:scheduler_binding_duration_seconds:histogram_quantile
        ## cluster_quantile:scheduler_e2e_scheduling_duration_seconds:histogram_quantile
        ## cluster_quantile:scheduler_scheduling_algorithm_duration_seconds:histogram_quantile
        ## instance:node_filesystem_usage:sum
        ## instance:node_network_receive_bytes:rate:sum
        ## node:cluster_cpu_utilisation:ratio
        ## node:cluster_memory_utilisation:ratio
        ## node:node_cpu_saturation_load1:
        ## node:node_cpu_utilisation:avg1m
        ## node:node_disk_saturation:avg_irate
        ## node:node_disk_utilisation:avg_irate
        ## node:node_filesystem_avail:
        ## node:node_filesystem_usage:
        ## node:node_inodes_free:
        ## node:node_inodes_total:
        ## node:node_memory_bytes_total:sum
        ## node:node_memory_swap_io_bytes:sum_rate
        ## node:node_memory_utilisation:
        ## node:node_memory_utilisation:ratio
        ## node:node_memory_utilisation_2:
        ## node:node_net_saturation:sum_irate
        ## node:node_net_utilisation:sum_irate
        ## node:node_num_cpu:sum
        ## node_namespace_pod:kube_pod_info:
        - url: http://$(FLUENTD_METRICS_SVC).$(NAMESPACE).svc.cluster.local:9888/prometheus.metrics.operator.rule
          remoteTimeout: 5s
          writeRelabelConfigs:
            - action: keep
              regex: 'cluster_quantile:apiserver_request_duration_seconds:histogram_quantile|instance:node_filesystem_usage:sum|instance:node_network_receive_bytes:rate:sum|cluster_quantile:scheduler_e2e_scheduling_duration_seconds:histogram_quantile|cluster_quantile:scheduler_scheduling_algorithm_duration_seconds:histogram_quantile|cluster_quantile:scheduler_binding_duration_seconds:histogram_quantile|node_namespace_pod:kube_pod_info:|:kube_pod_info_node_count:|node:node_num_cpu:sum|:node_cpu_utilisation:avg1m|node:node_cpu_utilisation:avg1m|node:cluster_cpu_utilisation:ratio|:node_cpu_saturation_load1:|node:node_cpu_saturation_load1:|:node_memory_utilisation:|node:node_memory_bytes_total:sum|node:node_memory_utilisation:ratio|node:cluster_memory_utilisation:ratio|:node_memory_swap_io_bytes:sum_rate|node:node_memory_utilisation:|node:node_memory_utilisation_2:|node:node_memory_swap_io_bytes:sum_rate|:node_disk_utilisation:avg_irate|node:node_disk_utilisation:avg_irate|:node_disk_saturation:avg_irate|node:node_disk_saturation:avg_irate|node:node_filesystem_usage:|node:node_filesystem_avail:|:node_net_utilisation:sum_irate|node:node_net_utilisation:sum_irate|:node_net_saturation:sum_irate|node:node_net_saturation:sum_irate|node:node_inodes_total:|node:node_inodes_free:'
              sourceLabels: [__name__]
        ## health
        ## fluentbit_input_bytes_total
        ## fluentbit_input_files_closed_total
        ## fluentbit_input_files_opened_total
        ## fluentbit_input_files_rotated_total
        ## fluentbit_input_records_total
        ## fluentbit_output_errors_total
        ## fluentbit_output_proc_bytes_total
        ## fluentbit_output_proc_records_total
        ## fluentbit_output_retries_failed_total
        ## fluentbit_output_retries_total
        ## fluentd_output_status_buffer_available_space_ratio
        ## fluentd_output_status_buffer_queue_length
        ## fluentd_output_status_buffer_stage_byte_size
        ## fluentd_output_status_buffer_stage_length
        ## fluentd_output_status_buffer_total_bytes
        ## fluentd_output_status_emit_count
        ## fluentd_output_status_emit_records
        ## fluentd_output_status_flush_time_count
        ## fluentd_output_status_num_errors
        ## fluentd_output_status_queue_byte_size
        ## fluentd_output_status_retry_count
        ## fluentd_output_status_retry_wait
        ## fluentd_output_status_rollback_count
        ## fluentd_output_status_slow_flush_count
        ## fluentd_output_status_write_count
        ## otelcol_otelsvc_k8s_other_added
        ## otelcol_otelsvc_k8s_other_updated
        ## otelcol_otelsvc_k8s_pod_added
        ## otelcol_otelsvc_k8s_pod_deleted
        ## otelcol_otelsvc_k8s_pod_updated
        ## otelcol_process_cpu_seconds
        ## otelcol_process_runtime_heap_alloc_bytes
        ## otelcol_process_runtime_total_alloc_bytes
        ## otelcol_process_runtime_total_sys_memory_bytes
        ## otelcol_queue_length
        ## otelcol_spans_dropped
        ## otelcol_trace_batches_dropped
        ## prometheus_remote_storage_dropped_samples_total
        ## prometheus_remote_storage_enqueue_retries_total
        ## prometheus_remote_storage_failed_samples_total
        ## prometheus_remote_storage_highest_timestamp_in_seconds
        ## prometheus_remote_storage_pending_samples
        ## prometheus_remote_storage_queue_highest_sent_timestamp_seconds
        ## prometheus_remote_storage_retried_samples_total
        ## prometheus_remote_storage_samples_in_total
        ## prometheus_remote_storage_sent_batch_duration_seconds_bucket
        ## prometheus_remote_storage_sent_batch_duration_seconds_count
        ## prometheus_remote_storage_sent_batch_duration_seconds_sum
        ## prometheus_remote_storage_shard_capacity
        ## prometheus_remote_storage_shards
        ## prometheus_remote_storage_shards_desired
        ## prometheus_remote_storage_shards_max
        ## prometheus_remote_storage_shards_min
        ## prometheus_remote_storage_string_interner_zero_reference_releases_total
        ## prometheus_remote_storage_succeeded_samples_total
        ## up
        - url: http://$(FLUENTD_METRICS_SVC).$(NAMESPACE).svc.cluster.local:9888/prometheus.metrics
          remoteTimeout: 5s
          writeRelabelConfigs:
            - action: keep
              regex: (?:up|prometheus_remote_storage_.*|fluentd_.*|fluentbit.*|otelcol.*)
              sourceLabels: [__name__]
        ## control plane metrics
        ## coredns:
        ## coredns_cache_size
        ## coredns_cache_entries
        ## coredns_cache_hits_total
        ## coredns_cache_misses_total
        ## coredns_dns_request_duration_seconds_count
        ## coredns_dns_request_duration_seconds_sum
        ## coredns_dns_request_count_total
        ## coredns_dns_requests_total
        ## coredns_dns_response_rcode_count_total
        ## coredns_dns_responses_total
        ## coredns_forward_request_count_total
        ## coredns_forward_requests_total
        ## process_cpu_seconds_total
        ## process_open_fds
        ## process_resident_memory_bytes
        - url: http://$(FLUENTD_METRICS_SVC).$(NAMESPACE).svc.cluster.local:9888/prometheus.metrics.control-plane.coredns
          remoteTimeout: 5s
          writeRelabelConfigs:
            - action: keep
              regex: coredns;(?:coredns_cache_(size|entries|(hits|misses)_total)|coredns_dns_request_duration_seconds_(count|sum)|coredns_(dns_request|dns_response_rcode|forward_request)_count_total|coredns_(forward_requests|dns_requests|dns_responses)_total|process_(cpu_seconds_total|open_fds|resident_memory_bytes))
              sourceLabels: [job, __name__]
        ## etcd server:
        ## etcd_debugging_mvcc_db_total_size_in_bytes
        ## etcd_debugging_store_expires_total
        ## etcd_debugging_store_watchers
        ## etcd_disk_backend_commit_duration_seconds_bucket
        ## etcd_disk_wal_fsync_duration_seconds_bucket
        ## etcd_grpc_proxy_cache_hits_total
        ## etcd_grpc_proxy_cache_misses_total
        ## etcd_network_client_grpc_received_bytes_total
        ## etcd_network_client_grpc_sent_bytes_total
        ## etcd_server_has_leader
        ## etcd_server_leader_changes_seen_total
        ## etcd_server_proposals_applied_total
        ## etcd_server_proposals_committed_total
        ## etcd_server_proposals_failed_total
        ## etcd_server_proposals_pending
        ## process_cpu_seconds_total
        ## process_open_fds
        ## process_resident_memory_bytes
        - url: http://$(FLUENTD_METRICS_SVC).$(NAMESPACE).svc.cluster.local:9888/prometheus.metrics.control-plane.kube-etcd
          remoteTimeout: 5s
          writeRelabelConfigs:
            - action: keep
              regex: kube-etcd;(?:etcd_debugging_(mvcc_db_total_size_in_bytes|store_(expires_total|watchers))|etcd_disk_(backend_commit|wal_fsync)_duration_seconds_bucket|etcd_grpc_proxy_cache_(hits|misses)_total|etcd_network_client_grpc_(received|sent)_bytes_total|etcd_server_(has_leader|leader_changes_seen_total)|etcd_server_proposals_(pending|(applied|committed|failed)_total)|process_(cpu_seconds_total|open_fds|resident_memory_bytes))
              sourceLabels: [job, __name__]

        ## Nginx ingress controller metrics
        ## rel: https://docs.nginx.com/nginx-ingress-controller/logging-and-monitoring/prometheus/#available-metrics
        ## nginx_ingress_controller_ingress_resources_total
        ## nginx_ingress_controller_nginx_last_reload_milliseconds
        ## nginx_ingress_controller_nginx_last_reload_status
        ## nginx_ingress_controller_nginx_reload_errors_total
        ## nginx_ingress_controller_nginx_reloads_total
        ## nginx_ingress_controller_virtualserver_resources_total
        ## nginx_ingress_controller_virtualserverroute_resources_total
        ## nginx_ingress_nginx_connections_accepted
        ## nginx_ingress_nginx_connections_active
        ## nginx_ingress_nginx_connections_handled
        ## nginx_ingress_nginx_connections_reading
        ## nginx_ingress_nginx_connections_waiting
        ## nginx_ingress_nginx_connections_writing
        ## nginx_ingress_nginx_http_requests_total
        - url: http://$(FLUENTD_METRICS_SVC).$(NAMESPACE).svc.cluster.local:9888/prometheus.metrics.applications.nginx-ingress
          remoteTimeout: 5s
          writeRelabelConfigs:
            - action: keep
              regex: (?:nginx_ingress_controller_ingress_resources_total|nginx_ingress_controller_nginx_(last_reload_(milliseconds|status)|reload(s|_errors)_total)|nginx_ingress_controller_virtualserver(|route)_resources_total|nginx_ingress_nginx_connections_(accepted|active|handled|reading|waiting|writing)|nginx_ingress_nginx_http_requests_total)
              sourceLabels: [__name__]

        ## Nginx telegraf metrics
        ## nginx_accepts
        ## nginx_active
        ## nginx_handled
        ## nginx_reading
        ## nginx_requests
        ## nginx_waiting
        ## nginx_writing
        - url: http://$(FLUENTD_METRICS_SVC).$(NAMESPACE).svc.cluster.local:9888/prometheus.metrics.applications.nginx
          remoteTimeout: 5s
          writeRelabelConfigs:
            - action: keep
              regex: (?:nginx_(accepts|active|handled|reading|requests|waiting|writing))
              sourceLabels: [__name__]

        ## Redis metrics
        ## redis_blocked_clients
        ## redis_clients
        ## redis_cluster_enabled
        ## redis_cmdstat_calls
        ## redis_connected_slaves
        ## redis_evicted_keys
        ## redis_expired_keys
        ## redis_instantaneous_ops_per_sec
        ## redis_keyspace_hitrate
        ## redis_keyspace_hits
        ## redis_keyspace_misses
        ## redis_master_repl_offset
        ## redis_maxmemory
        ## redis_mem_fragmentation_bytes
        ## redis_mem_fragmentation_ratio
        ## redis_rdb_changes_since_last_save
        ## redis_rejected_connections
        ## redis_slave_repl_offset
        ## redis_total_commands_processed
        ## redis_total_net_input_bytes
        ## redis_total_net_output_bytes
        ## redis_tracking_total_keys
        ## redis_uptime
        ## redis_used_cpu_sys
        ## redis_used_cpu_user
        ## redis_used_memory
        ## redis_used_memory_overhead
        ## redis_used_memory_rss
        ## redis_used_memory_startup
        - url: http://$(FLUENTD_METRICS_SVC).$(NAMESPACE).svc.cluster.local:9888/prometheus.metrics.applications.redis
          remoteTimeout: 5s
          writeRelabelConfigs:
            - action: keep
              regex: (?:redis_((blocked_|)clients|cluster_enabled|cmdstat_calls|connected_slaves|(evicted|expired|tracking_total)_keys|instantaneous_ops_per_sec|keyspace_(hitrate|hits|misses)|(master|slave)_repl_offset|maxmemory|mem_fragmentation_(bytes|ratio)|rdb_changes_since_last_save|rejected_connections|total_commands_processed|total_net_(input|output)_bytes|uptime|used_(cpu_(sys|user)|memory(_overhead|_rss|_startup|))))
              sourceLabels: [__name__]

        ## JMX Metrics
        ## java_lang_ClassLoading_LoadedClassCount
        ## java_lang_ClassLoading_TotalLoadedClassCount
        ## java_lang_ClassLoading_UnloadedClassCount
        ## java_lang_Compilation_TotalCompilationTime
        ## java_lang_GarbageCollector_CollectionCount
        ## java_lang_GarbageCollector_CollectionTime
        ## java_lang_GarbageCollector_LastGcInfo_GcThreadCount  # unavailable for adoptopenjdk-openj9
        ## java_lang_GarbageCollector_LastGcInfo_duration  # unavailable for adoptopenjdk-openj9
        ## java_lang_GarbageCollector_LastGcInfo_memoryUsageAfterGc_*_used
        ## java_lang_GarbageCollector_LastGcInfo_memoryUsageBeforeGc_*_used
        ## java_lang_GarbageCollector_LastGcInfo_usageAfterGc_*_used  # only for adoptopenjdk-openj9
        ## java_lang_GarbageCollector_LastGcInfo_usageBeforeGc_*_used  # only for adoptopenjdk-openj9
        ## java_lang_MemoryPool_CollectionUsageThresholdSupported
        ## java_lang_MemoryPool_CollectionUsage_committed
        ## java_lang_MemoryPool_CollectionUsage_max
        ## java_lang_MemoryPool_CollectionUsage_used
        ## java_lang_MemoryPool_PeakUsage_committed
        ## java_lang_MemoryPool_PeakUsage_max
        ## java_lang_MemoryPool_PeakUsage_used
        ## java_lang_MemoryPool_UsageThresholdSupported
        ## java_lang_MemoryPool_Usage_committed
        ## java_lang_MemoryPool_Usage_max
        ## java_lang_MemoryPool_Usage_used
        ## java_lang_Memory_HeapMemoryUsage_committed
        ## java_lang_Memory_HeapMemoryUsage_max
        ## java_lang_Memory_HeapMemoryUsage_used
        ## java_lang_Memory_NonHeapMemoryUsage_committed
        ## java_lang_Memory_NonHeapMemoryUsage_max
        ## java_lang_Memory_NonHeapMemoryUsage_used
        ## java_lang_Memory_ObjectPendingFinalizationCount
        ## java_lang_OperatingSystem_AvailableProcessors
        ## java_lang_OperatingSystem_CommittedVirtualMemorySize
        ## java_lang_OperatingSystem_FreeMemorySize  # Added in jdk14
        ## java_lang_OperatingSystem_FreePhysicalMemorySize
        ## java_lang_OperatingSystem_FreeSwapSpaceSize
        ## java_lang_OperatingSystem_MaxFileDescriptorCount
        ## java_lang_OperatingSystem_OpenFileDescriptorCount
        ## java_lang_OperatingSystem_ProcessCpuLoad
        ## java_lang_OperatingSystem_ProcessCpuTime
        ## java_lang_OperatingSystem_SystemCpuLoad
        ## java_lang_OperatingSystem_SystemLoadAverage
        ## java_lang_OperatingSystem_TotalMemorySize  # Added in jdk14
        ## java_lang_OperatingSystem_TotalPhysicalMemorySize
        ## java_lang_OperatingSystem_TotalSwapSpaceSize
        ## java_lang_Runtime_BootClassPathSupported
        ## java_lang_Runtime_Pid  # not available for jdk8
        ## java_lang_Runtime_Uptime
        ## java_lang_Runtime_StartTime
        ## java_lang_Threading_CurrentThreadAllocatedBytes  # Added in jdk14
        ## java_lang_Threading_CurrentThreadCpuTime
        ## java_lang_Threading_CurrentThreadUserTime
        ## java_lang_Threading_DaemonThreadCount
        ## java_lang_Threading_ObjectMonitorUsageSupported
        ## java_lang_Threading_PeakThreadCount
        ## java_lang_Threading_SynchronizerUsageSupported
        ## java_lang_Threading_ThreadAllocatedMemory*  # Not available for adoptopenjdk-openj9
        ## java_lang_Threading_ThreadContentionMonitoring*
        ## java_lang_Threading_ThreadCount
        ## java_lang_Threading_ThreadCpuTime*
        ## java_lang_Threading_TotalStartedThreadCount
        - url: http://$(FLUENTD_METRICS_SVC).$(NAMESPACE).svc.cluster.local:9888/prometheus.metrics.applications.jmx
          remoteTimeout: 5s
          writeRelabelConfigs:
            - action: keep
              regex: (?:java_lang_(ClassLoading_(TotalL|Unl|L)oadedClassCount|Compilation_TotalCompilationTime|GarbageCollector_(Collection(Count|Time)|LastGcInfo_(GcThreadCount|duration|(memoryU|u)sage(After|Before)Gc_.*_used))|MemoryPool_(CollectionUsage(ThresholdSupported|_committed|_max|_used)|(Peak|)Usage_(committed|max|used)|UsageThresholdSupported)|Memory_((Non|)HeapMemoryUsage_(committed|max|used)|ObjectPendingFinalizationCount)|OperatingSystem_(AvailableProcessors|(CommittedVirtual|(Free|Total)(Physical|))MemorySize|(Free|Total)SwapSpaceSize|(Max|Open)FileDescriptorCount|ProcessCpu(Load|Time)|System(CpuLoad|LoadAverage))|Runtime_(BootClassPathSupported|Pid|Uptime|StartTime)|Threading_(CurrentThread(AllocatedBytes|(Cpu|User)Time)|(Daemon|Peak|TotalStarted|)ThreadCount|(ObjectMonitor|Synchronizer)UsageSupported|Thread(AllocatedMemory.*|ContentionMonitoring.*|CpuTime.*))))
              sourceLabels: [__name__]

        # Kafka Metrics
        # List of Metrics are on following dochub page:
        # https://help.sumologic.com/07Sumo-Logic-Apps/10Containers_and_Orchestration/Kafka/Kafka_Metrics
        # Metrics follow following format:
        # kafka_broker_*
        # kafka_controller_*
        # kafka_java_lang_*
        # kafka_partition_*
        # kafka_purgatory_*
        # kafka_network_*
        # kafka_replica_*
        # kafka_request_*
        # kafka_topic_*
        # kafka_topics_*
        # kafka_zookeeper_*
        - url: http://$(FLUENTD_METRICS_SVC).$(NAMESPACE).svc.cluster.local:9888/prometheus.metrics.applications.kafka
          remoteTimeout: 5s
          writeRelabelConfigs:
            - action: keep
              regex: (?:kafka_(broker_.*|controller_.*|java_lang_.*|partition_.*|purgatory_.*|network_.*|replica_.*|request_.*|topic_.*|topics_.*|zookeeper_.*))
              sourceLabels: [__name__]

        ## MySQL Telegraf Metrics
        ## List of Metrics are on following github page:
        ## https://github.com/influxdata/telegraf/tree/v1.18.1/plugins/inputs/mysql#metrics
        ## Metrics follow following format:
        ## mysql_uptime
        ## mysql_connection_errors_*
        ## mysql_queries
        ## mysql_slow_queries
        ## mysql_questions
        ## mysql_table_open_cache_*
        ## mysql_table_locks_*
        ## mysql_commands_*
        ## mysql_select_*
        ## mysql_sort_*
        ## mysql_mysqlx_connections_*
        ## mysql_mysqlx_worker_*
        ## mysql_connections
        ## mysql_aborted_*
        ## mysql_locked_connects
        ## mysql_bytes_*
        ## mysql_qcache_*
        ## mysql_threads_*
        ## mysql_opened_*
        ## mysql_created_tmp_*
        ## mysql_innodb_buffer_pool_*
        ## mysql_innodb_data_*
        ## mysql_innodb_rows_*
        ## mysql_innodb_row_lock_*
        ## mysql_innodb_log_waits
        ## mysql_perf_schema_events_statements_*
        ## mysql_perf_schema_table_io_waits_*
        ## mysql_perf_schema_index_io_waits_*
        ## mysql_perf_schema_read*
        ## mysql_perf_schema_write*
        - url: http://$(FLUENTD_METRICS_SVC).$(NAMESPACE).svc.cluster.local:9888/prometheus.metrics.mysql
          remoteTimeout: 5s
          writeRelabelConfigs:
            - action: keep
              regex: (?:mysql_((uptime|connection_errors_.*|queries|slow_queries|questions|table_open_cache_.*|table_locks_.*|commands_.*|select_.*|sort_.*|mysqlx_connections_.*|mysqlx_worker_.*|connections|aborted_.*|locked_connects|bytes_.*|qcache_.*|threads_.*|opened_.*|created_tmp_.*)|innodb_(buffer_pool_.*|data_.*|rows_.*|row_lock_.*|log_waits)|perf_schema_(events_statements_.*|table_io_waits_.*|index_io_waits_.*|read.*|write.*)))
              sourceLabels: [__name__]

        ## PostgreSQL Telegraf Metrics
        ## List of Metrics are on following dochub page:
        ## https://help.sumologic.com/07Sumo-Logic-Apps/12Databases/PostgreSQL/Metrics_for_the_Sumo_Logic_PostgreSQL_App
        ## Metrics follow following format:
        ## postgresql_blks_hit
        ## postgresql_blks_read
        ## postgresql_buffers_backend
        ## postgresql_buffers_checkpoint
        ## postgresql_buffers_clean
        ## postgresql_checkpoints_req
        ## postgresql_checkpoints_timed
        ## postgresql_db_size
        ## postgresql_deadlocks
        ## postgresql_flush_lag
        ## postgresql_heap_blks_hit
        ## postgresql_heap_blks_read
        ## postgresql_idx_blks_hit
        ## postgresql_idx_blks_read
        ## postgresql_idx_scan
        ## postgresql_idx_tup_fetch
        ## postgresql_idx_tup_read
        ## postgresql_index_size
        ## postgresql_n_dead_tup
        ## postgresql_n_live_tup
        ## postgresql_n_tup_del
        ## postgresql_n_tup_hot_upd
        ## postgresql_n_tup_ins
        ## postgresql_n_tup_upd
        ## postgresql_num_locks
        ## postgresql_numbackends
        ## postgresql_replay_lag
        ## postgresql_replication_delay
        ## postgresql_replication_lag
        ## postgresql_seq_scan
        ## postgresql_seq_tup_read
        ## postgresql_stat_ssl_compression_count
        ## postgresql_table_size
        ## postgresql_tup_deleted
        ## postgresql_tup_fetched
        ## postgresql_tup_inserted
        ## postgresql_tup_returned
        ## postgresql_tup_updated
        ## postgresql_write_lag
        ## postgresql_xact_commit
        ## postgresql_xact_rollback
        ## postgresql_toast_blks_read
        ## postgresql_toast_blks_hit
        ## postgresql_tidx_blks_read
        ## postgresql_tidx_blks_hit
        - url: http://$(FLUENTD_METRICS_SVC).$(NAMESPACE).svc.cluster.local:9888/prometheus.metrics.postgresql
          remoteTimeout: 5s
          writeRelabelConfigs:
            - action: keep
              regex: (?:postgresql_(blks_(hit|read)|buffers_(backend|checkpoint|clean)|checkpoints_(req|timed)|db_size|deadlocks|flush_lag|heap_blks_(hit|read)|idx_blks_(hit|read)|idx_scan|idx_tup_(fetch|read)|index_size|n_dead_tup|n_live_tup|n_tup_(upd|ins|del|hot_upd)|num_locks|numbackends|replay_lag|replication_(delay|lag)|seq_scan|seq_tup_read|stat_ssl_compression_count|table_size|tidx_blks_(hit|read)|toast_blks_(hit|read)|tup_(deleted|fetched|inserted|returned|updated)|write_lag|xact_(commit|rollback)))
              sourceLabels: [__name__]

        ## Apache Telegraf Metrics
        ## List of Metrics are on following github page:
        ## https://github.com/influxdata/telegraf/tree/v1.18.2/plugins/inputs/apache
        ## Metrics follow following format:
        ## apache_BusyWorkers
        ## apache_BytesPerReq
        ## apache_BytesPerSec
        ## apache_CPUChildrenSystem
        ## apache_CPUChildrenUser
        ## apache_CPULoad
        ## apache_CPUSystem
        ## apache_CPUUser
        ## apache_DurationPerReq
        ## apache_IdleWorkers
        ## apache_Load1
        ## apache_Load5
        ## apache_Load15
        ## apache_ParentServerConfigGeneration
        ## apache_ParentServerMPMGeneration
        ## apache_ReqPerSec
        ## apache_ServerUptimeSeconds
        ## apache_TotalAccesses
        ## apache_TotalDuration
        ## apache_TotalkBytes
        ## apache_Uptime
        ## apache_scboard_closing
        ## apache_scboard_dnslookup
        ## apache_scboard_finishing
        ## apache_scboard_idle_cleanup
        ## apache_scboard_keepalive
        ## apache_scboard_logging
        ## apache_scboard_open
        ## apache_scboard_reading
        ## apache_scboard_sending
        ## apache_scboard_starting
        ## apache_scboard_waiting
        - url: http://$(FLUENTD_METRICS_SVC).$(NAMESPACE).svc.cluster.local:9888/prometheus.metrics.apache
          remoteTimeout: 5s
          writeRelabelConfigs:
            - action: keep
              regex: (?:apache_((BusyWorkers|BytesPerReq|BytesPerSec|CPUChildrenSystem|CPUChildrenUser|CPULoad|CPUSystem|CPUUser|DurationPerReq|IdleWorkers|Load1|Load15|Load5|ParentServerConfigGeneration|ParentServerMPMGeneration|ReqPerSec|ServerUptimeSeconds|TotalAccesses|TotalDuration|TotalkBytes|Uptime)|(scboard_(closing|dnslookup|finishing|idle_cleanup|keepalive|logging|open|reading|sending|starting|waiting))))
              sourceLabels: [__name__]
        - url: http://$(FLUENTD_METRICS_SVC).$(NAMESPACE).svc.cluster.local:9888/prometheus.metrics.istio
          remoteTimeout: 5s
          writeRelabelConfigs:
            - action: keep
              regex: (?:galley_validation_(passed|failed|config_updates|config_update_error))
              sourceLabels: [__name__]
        - url: http://$(FLUENTD_METRICS_SVC).$(NAMESPACE).svc.cluster.local:9888/prometheus.metrics.istio
          remoteTimeout: 5s
          writeRelabelConfigs:
            - action: keep
              regex: (?:istio_(response_(bytes_sum|bytes_bucket)|requests_total|request_(duration_milliseconds_sum|duration_milliseconds_bucket|bytes_sum|bytes_bucket)|build|agent_(process_virtual_memory_bytes|process_max_fds|pilot_xds_pushes|pilot_xds_expired_nonce|pilot_xds|pilot_virt_services|pilot_proxy_queue_time_sum|pilot_endpoint_not_ready|num_outgoing_requests|num_failed_outgoing_requests|go_threads|go_memstats_heap_inuse_bytes|go_memstats_heap_alloc_bytes|go_memstats_gc_cpu_fraction|go_memstats_alloc_bytes_total|go_memstats_alloc_bytes|go_gc_duration_seconds)))
              sourceLabels: [__name__]