Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat!: stop scraping unused metrics #3184

Open
wants to merge 3 commits into
base: drosiek-cleanup-prometheus-rules
Choose a base branch
from

Conversation

sumo-drosiek
Copy link
Contributor

@sumo-drosiek sumo-drosiek commented Aug 3, 2023

Do not scrape kubernetes more metrics than used by kubernetes application:

apiserver_request_count
apiserver_request_total
container_cpu_usage_seconds_total
container_memory_working_set_bytes
container_cpu_cfs_throttled_seconds_total
container_network_receive_bytes_total
container_network_transmit_bytes_total
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_requests_total
coredns_dns_responses_total
coredns_forward_requests_total
process_cpu_seconds_total
process_open_fds
process_resident_memory_bytes
process_cpu_seconds_total
process_open_fds
process_resident_memory_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
scheduler_e2e_scheduling_duration_seconds_sum
scheduler_scheduling_algorithm_duration_seconds_sum
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
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
kube_pod_info
node_load1
node_load5
node_load15
: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_utilisation:
:node_net_saturation:sum_irate
:node_net_utilisation:sum_irate
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_usage:
node:node_memory_bytes_total:sum
node:node_memory_utilisation:
node:node_memory_utilisation:ratio
node:node_net_saturation:sum_irate
node:node_net_utilisation:sum_irate
node:node_num_cpu:sum
node_namespace_pod:kube_pod_info

Checklist

  • Changelog updated or skip changelog label added
  • Documentation updated
  • Template tests added for new features
  • Integration tests added or modified for major features

Signed-off-by: Dominik Rosiek <[email protected]>
@sumo-drosiek sumo-drosiek requested a review from a team as a code owner August 3, 2023 09:14
Signed-off-by: Dominik Rosiek <[email protected]>
@swiatekm swiatekm added this to the v4.0 milestone Aug 3, 2023
Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This pull request contains invalid labels. Please remove all of the following labels: ['do-not-merge/hold']

Signed-off-by: Dominik Rosiek <[email protected]>
@swiatekm swiatekm modified the milestones: v4.0, v5.0 Oct 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants