apiVersion: v1
data:
  config.yaml: |
    prometheusEndpoint: https://prometheus-k8s.openshift-monitoring.svc:9091/
    statsdSocket: /var/etw/mdm_statsd.socket
    queries:
    - query: 'ALERTS'
    - query: 'sum(apiserver_request_count) without (client, code, contentType, resource, scope, subresource, verb)'
      name: apiserver_request_count
    - query: 'sum(apiserver_request_latencies_bucket) without (resource, scope, subresource, verb)'
      name: apiserver_request_latencies_bucket
    - query: 'sum(apiserver_request_latencies_sum) without (resource, scope, subresource, verb)'
      name: apiserver_request_latencies_sum
    - query: 'sum(cloudprovider_azure_api_request_duration_seconds_bucket{le=~"1|5|10|\\+Inf"}) without (instance)'
      name: cloudprovider_azure_api_request_duration_seconds_bucket
    - query: 'sum(cloudprovider_azure_api_request_duration_seconds_count) without (instance)'
      name: cloudprovider_azure_api_request_duration_seconds_count
    - query: 'sum(cloudprovider_azure_api_request_duration_seconds_sum) without (instance)'
      name: cloudprovider_azure_api_request_duration_seconds_sum
    - query: 'rate(container_cpu_system_seconds_total{namespace=~"default|openshift|openshift-.+|kube-.+|", container_name!="", container_name!="POD"}[1m])'
      name: container_cpu_system_seconds_rate
    - query: 'rate(container_cpu_user_seconds_total{namespace=~"default|openshift|openshift-.+|kube-.+|", container_name!="", container_name!="POD"}[1m])'
      name: container_cpu_user_seconds_rate
    - query: 'container_fs_limit_bytes{namespace=~"default|openshift|openshift-.+|kube-.+|", container_name!="", container_name!="POD"}'
    - query: 'rate(container_fs_sector_reads_total{namespace=~"default|openshift|openshift-.+|kube-.+|", container_name!="", container_name!="POD"}[1m]) != 0'
      name: container_fs_sector_reads_rate
    - query: 'rate(container_fs_sector_writes_total{namespace=~"default|openshift|openshift-.+|kube-.+|", container_name!="", container_name!="POD"}[1m]) != 0'
      name: container_fs_sector_writes_rate
    - query: 'container_fs_usage_bytes{namespace=~"default|openshift|openshift-.+|kube-.+|", container_name!="", container_name!="POD"}'
    - query: 'container_memory_cache{namespace=~"default|openshift|openshift-.+|kube-.+|", container_name!="", container_name!="POD"}'
    - query: 'container_memory_failcnt{namespace=~"default|openshift|openshift-.+|kube-.+|", container_name!="", container_name!="POD"} != 0'
    - query: 'container_memory_rss{namespace=~"default|openshift|openshift-.+|kube-.+|", container_name!="", container_name!="POD"}'
    - query: 'container_spec_memory_limit_bytes{namespace=~"default|openshift|openshift-.+|kube-.+|", container_name!="", container_name!="POD"}'
    - query: 'kube_cronjob_next_schedule_time{namespace=~"default|openshift|openshift-.+|kube-.+|"}'
    - query: 'kube_cronjob_status_last_schedule_time{namespace=~"default|openshift|openshift-.+|kube-.+|"}'
    - query: 'kube_daemonset_status_desired_number_scheduled{namespace=~"default|openshift|openshift-.+|kube-.+|"}'
    - query: 'kube_daemonset_status_number_misscheduled{namespace=~"default|openshift|openshift-.+|kube-.+|"} != 0'
    - query: 'kube_daemonset_status_number_ready{namespace=~"default|openshift|openshift-.+|kube-.+|"}'
    - query: 'kube_daemonset_status_number_unavailable{namespace=~"default|openshift|openshift-.+|kube-.+|"} != 0'
    - query: 'kube_daemonset_updated_number_scheduled{namespace=~"default|openshift|openshift-.+|kube-.+|"}'
    - query: 'kube_deployment_status_replicas_available{namespace=~"default|openshift|openshift-.+|kube-.+|"}'
    - query: 'kube_deployment_status_replicas_unavailable{namespace=~"default|openshift|openshift-.+|kube-.+|"} != 0'
    - query: 'kube_deployment_status_replicas_updated{namespace=~"default|openshift|openshift-.+|kube-.+|"}'
    - query: 'kube_deployment_status_replicas{namespace=~"default|openshift|openshift-.+|kube-.+|"}'
    - query: 'kube_job_complete{namespace=~"default|openshift|openshift-.+|kube-.+|"} != 0'
    - query: 'kube_job_status_active{namespace=~"default|openshift|openshift-.+|kube-.+|"} != 0'
    - query: 'kube_job_status_completion_time{namespace=~"default|openshift|openshift-.+|kube-.+|"}'
    - query: 'kube_job_status_failed{namespace=~"default|openshift|openshift-.+|kube-.+|"} != 0'
    - query: 'kube_job_status_start_time{namespace=~"default|openshift|openshift-.+|kube-.+|"}'
    - query: 'kube_job_status_succeeded{namespace=~"default|openshift|openshift-.+|kube-.+|"} != 0'
    - query: 'kube_node_info'
    - query: 'kube_node_spec_unschedulable != 0'
    - query: 'kube_node_status_allocatable_cpu_cores'
    - query: 'kube_node_status_allocatable_memory_bytes'
    - query: 'kube_node_status_allocatable_pods'
    - query: 'kube_node_status_capacity_cpu_cores'
    - query: 'kube_node_status_capacity_memory_bytes'
    - query: 'kube_node_status_capacity_pods'
    - query: 'kube_node_status_condition != 0'
    - query: 'kube_persistentvolume_status_phase{namespace=~"default|openshift|openshift-.+|kube-.+|"} != 0'
    - query: 'kube_persistentvolumeclaim_status_phase{namespace=~"default|openshift|openshift-.+|kube-.+|"} != 0'
    - query: 'kube_pod_container_info{namespace=~"default|openshift|openshift-.+|kube-.+|"}'
    - query: 'kube_pod_container_resource_limits_cpu_cores{namespace=~"default|openshift|openshift-.+|kube-.+|"}'
    - query: 'kube_pod_container_resource_limits_memory_bytes{namespace=~"default|openshift|openshift-.+|kube-.+|"}'
    - query: 'kube_pod_container_status_ready{namespace=~"default|openshift|openshift-.+|kube-.+|"}'
    - query: 'rate(kube_pod_container_status_restarts_total{namespace=~"default|openshift|openshift-.+|kube-.+|"}[1m]) != 0'
      name: kube_pod_container_status_restarts_rate
    - query: 'kube_pod_container_status_terminated_reason{namespace=~"default|openshift|openshift-.+|kube-.+|"} != 0'
    - query: 'kube_pod_container_status_terminated{namespace=~"default|openshift|openshift-.+|kube-.+|"} != 0'
    - query: 'kube_pod_container_status_waiting_reason{namespace=~"default|openshift|openshift-.+|kube-.+|"} != 0'
    - query: 'kube_pod_container_status_waiting{namespace=~"default|openshift|openshift-.+|kube-.+|"} != 0'
    - query: 'kube_pod_info{namespace=~"default|openshift|openshift-.+|kube-.+|"}'
    - query: 'kube_pod_spec_volumes_persistentvolumeclaims_info{namespace=~"default|openshift|openshift-.+|kube-.+|"}'
    - query: 'kube_pod_spec_volumes_persistentvolumeclaims_readonly{namespace=~"default|openshift|openshift-.+|kube-.+|"}'
    - query: 'kube_pod_status_phase{namespace=~"default|openshift|openshift-.+|kube-.+|"} != 0'
    - query: 'kube_replicaset_status_ready_replicas{namespace=~"default|openshift|openshift-.+|kube-.+|"}'
    - query: 'kube_replicaset_status_replicas{namespace=~"default|openshift|openshift-.+|kube-.+|"}'
    - query: 'kube_statefulset_status_replicas_ready{namespace=~"default|openshift|openshift-.+|kube-.+|"}'
    - query: 'kube_statefulset_status_replicas_updated{namespace=~"default|openshift|openshift-.+|kube-.+|"}'
    - query: 'kube_statefulset_status_replicas{namespace=~"default|openshift|openshift-.+|kube-.+|"}'
    - query: 'kubelet_docker_operations_errors != 0'
    - query: 'kubelet_runtime_operations_errors != 0'
    - query: 'node_boot_time_seconds'
    - query: 'avg(rate(node_cpu_seconds_total[1m])) without (cpu)'
      name: node_cpu_seconds_rate
    - query: 'rate(node_disk_read_bytes_total{device!~"sr0"}[1m])'
      name: node_disk_read_bytes_rate
    - query: 'rate(node_disk_written_bytes_total{device!~"sr0"}[1m])'
      name: node_disk_written_bytes_rate
    - query: 'node_filesystem_device_error{device=~"/dev/sd.+", mountpoint=~"/host/root.*"} != 0'
    - query: 'node_filesystem_free_bytes{device=~"/dev/sd.+", mountpoint=~"/host/root.*"}'
    - query: 'node_filesystem_readonly{device=~"/dev/sd.+", mountpoint=~"/host/root.*"} != 0'
    - query: 'node_filesystem_size_bytes{device=~"/dev/sd.+", mountpoint=~"/host/root.*"}'
    - query: 'node_load1'
    - query: 'node_load15'
    - query: 'node_load5'
    - query: 'node_memory_Active_anon_bytes'
    - query: 'node_memory_Active_bytes'
    - query: 'node_memory_Active_file_bytes'
    - query: 'node_memory_AnonHugePages_bytes'
    - query: 'node_memory_AnonPages_bytes'
    - query: 'node_memory_Buffers_bytes'
    - query: 'node_memory_Cached_bytes'
    - query: 'node_memory_CommitLimit_bytes'
    - query: 'node_memory_Committed_AS_bytes'
    - query: 'node_memory_DirectMap1G_bytes'
    - query: 'node_memory_DirectMap2M_bytes'
    - query: 'node_memory_DirectMap4k_bytes'
    - query: 'node_memory_Dirty_bytes'
    - query: 'node_memory_Inactive_anon_bytes'
    - query: 'node_memory_Inactive_bytes'
    - query: 'node_memory_Inactive_file_bytes'
    - query: 'node_memory_KernelStack_bytes'
    - query: 'node_memory_Mapped_bytes'
    - query: 'node_memory_MemAvailable_bytes'
    - query: 'node_memory_MemFree_bytes'
    - query: 'node_memory_MemTotal_bytes'
    - query: 'node_memory_Mlocked_bytes'
    - query: 'node_memory_PageTables_bytes'
    - query: 'node_memory_Shmem_bytes'
    - query: 'node_memory_Slab_bytes'
    - query: 'node_memory_SReclaimable_bytes'
    - query: 'node_memory_SUnreclaim_bytes'
    - query: 'node_memory_Unevictable_bytes'
    - query: 'node_memory_VmallocChunk_bytes'
    - query: 'node_memory_VmallocTotal_bytes'
    - query: 'node_memory_VmallocUsed_bytes'
    - query: 'node_memory_Writeback_bytes'
    - query: 'rate(node_network_receive_bytes_total{device!~"veth.+"}[1m]) != 0'
      name: node_network_receive_bytes_rate
    - query: 'rate(node_network_receive_drop_total{device!~"veth.+"}[1m]) != 0'
      name: node_network_receive_drop_rate
    - query: 'rate(node_network_receive_errs_total{device!~"veth.+"}[1m]) != 0'
      name: node_network_receive_errs_rate
    - query: 'rate(node_network_receive_packets_total{device!~"veth.+"}[1m]) != 0'
      name: node_network_receive_packets_rate
    - query: 'rate(node_network_transmit_bytes_total{device!~"veth.+"}[1m]) != 0'
      name: node_network_transmit_bytes_rate
    - query: 'rate(node_network_transmit_drop_total{device!~"veth.+"}[1m]) != 0'
      name: node_network_transmit_drop_rate
    - query: 'rate(node_network_transmit_errs_total{device!~"veth.+"}[1m]) != 0'
      name: node_network_transmit_errs_rate
    - query: 'rate(node_network_transmit_packets_total{device!~"veth.+"}[1m]) != 0'
      name: node_network_transmit_packets_rate
    - query: 'node_uname_info'
    - query: 'storage_operation_duration_seconds_bucket{namespace=~"default|openshift|openshift-.+|kube-.+|", volume_plugin="kubernetes.io/azure-disk", le=~"1|15|50|\\+Inf"}'
    - query: 'storage_operation_duration_seconds_count{namespace=~"default|openshift|openshift-.+|kube-.+|", volume_plugin="kubernetes.io/azure-disk"}'
    - query: 'storage_operation_duration_seconds_sum{namespace=~"default|openshift|openshift-.+|kube-.+|", volume_plugin="kubernetes.io/azure-disk"}'
    - query: 'rate(storage_operation_errors_total{namespace=~"default|openshift|openshift-.+|kube-.+|", volume_plugin="kubernetes.io/azure-disk"}[1m])'
      name: storage_operation_errors_rate
    - query: 'up'
    - query: 'etcd_server_proposals_pending{namespace="openshift-azure-monitoring"} != 0'
    - query: 'etcd_server_proposals_failed_total{namespace="openshift-azure-monitoring"}'
    - query: 'etcd_server_has_leader{namespace="openshift-azure-monitoring"}'
    - query: 'etcd_server_leader_changes_seen_total{namespace="openshift-azure-monitoring"}'
    - query: 'rate(grpc_server_started_total{namespace="openshift-azure-monitoring"}[1m]) != 0'
      name: grpc_server_started_rate
    - query: 'rate(grpc_server_handled_total{namespace="openshift-azure-monitoring"}[1m]) != 0'
      name: grpc_server_handled_rate
    - query: 'etcd_disk_backend_commit_duration_seconds_count{namespace="openshift-azure-monitoring"} != 0'
    - query: 'etcd_disk_backend_commit_duration_seconds_sum{namespace="openshift-azure-monitoring"} != 0'
    account: '*** GENERATED ***'
    namespace: Prometheus
    region: '*** GENERATED ***'
    resourceGroupName: '*** GENERATED ***'
    resourceName: '*** GENERATED ***'
    subscriptionId: '*** GENERATED ***'
kind: ConfigMap
metadata:
  name: metrics-bridge
  namespace: openshift-azure-monitoring
