Merge "Prometheus: Prune large unused time series metrics"
This commit is contained in:
commit
1c6a33d979
@ -577,6 +577,171 @@ conf:
|
|||||||
regex: (.+)
|
regex: (.+)
|
||||||
target_label: __metrics_path__
|
target_label: __metrics_path__
|
||||||
replacement: /api/v1/nodes/${1}/proxy/metrics/cadvisor
|
replacement: /api/v1/nodes/${1}/proxy/metrics/cadvisor
|
||||||
|
metric_relabel_configs:
|
||||||
|
- source_labels:
|
||||||
|
- __name__
|
||||||
|
regex: 'container_network_tcp_usage_total'
|
||||||
|
action: drop
|
||||||
|
- source_labels:
|
||||||
|
- __name__
|
||||||
|
regex: 'container_tasks_state'
|
||||||
|
action: drop
|
||||||
|
- source_labels:
|
||||||
|
- __name__
|
||||||
|
regex: 'container_network_udp_usage_total'
|
||||||
|
action: drop
|
||||||
|
- source_labels:
|
||||||
|
- __name__
|
||||||
|
regex: 'container_memory_failures_total'
|
||||||
|
action: drop
|
||||||
|
- source_labels:
|
||||||
|
- __name__
|
||||||
|
regex: 'container_cpu_load_average_10s'
|
||||||
|
action: drop
|
||||||
|
- source_labels:
|
||||||
|
- __name__
|
||||||
|
regex: 'container_cpu_system_seconds_total'
|
||||||
|
action: drop
|
||||||
|
- source_labels:
|
||||||
|
- __name__
|
||||||
|
regex: 'container_cpu_user_seconds_total'
|
||||||
|
action: drop
|
||||||
|
- source_labels:
|
||||||
|
- __name__
|
||||||
|
regex: 'container_fs_inodes_free'
|
||||||
|
action: drop
|
||||||
|
- source_labels:
|
||||||
|
- __name__
|
||||||
|
regex: 'container_fs_inodes_total'
|
||||||
|
action: drop
|
||||||
|
- source_labels:
|
||||||
|
- __name__
|
||||||
|
regex: 'container_fs_io_current'
|
||||||
|
action: drop
|
||||||
|
- source_labels:
|
||||||
|
- __name__
|
||||||
|
regex: 'container_fs_io_time_seconds_total'
|
||||||
|
action: drop
|
||||||
|
- source_labels:
|
||||||
|
- __name__
|
||||||
|
regex: 'container_fs_io_time_weighted_seconds_total'
|
||||||
|
action: drop
|
||||||
|
- source_labels:
|
||||||
|
- __name__
|
||||||
|
regex: 'container_fs_read_seconds_total'
|
||||||
|
action: drop
|
||||||
|
- source_labels:
|
||||||
|
- __name__
|
||||||
|
regex: 'container_fs_reads_merged_total'
|
||||||
|
action: drop
|
||||||
|
- source_labels:
|
||||||
|
- __name__
|
||||||
|
regex: 'container_fs_reads_merged_total'
|
||||||
|
action: drop
|
||||||
|
- source_labels:
|
||||||
|
- __name__
|
||||||
|
regex: 'container_fs_reads_total'
|
||||||
|
action: drop
|
||||||
|
- source_labels:
|
||||||
|
- __name__
|
||||||
|
regex: 'container_fs_sector_reads_total'
|
||||||
|
action: drop
|
||||||
|
- source_labels:
|
||||||
|
- __name__
|
||||||
|
regex: 'container_fs_sector_writes_total'
|
||||||
|
action: drop
|
||||||
|
- source_labels:
|
||||||
|
- __name__
|
||||||
|
regex: 'container_fs_write_seconds_total'
|
||||||
|
action: drop
|
||||||
|
- source_labels:
|
||||||
|
- __name__
|
||||||
|
regex: 'container_fs_writes_bytes_total'
|
||||||
|
action: drop
|
||||||
|
- source_labels:
|
||||||
|
- __name__
|
||||||
|
regex: 'container_fs_writes_merged_total'
|
||||||
|
action: drop
|
||||||
|
- source_labels:
|
||||||
|
- __name__
|
||||||
|
regex: 'container_fs_writes_total'
|
||||||
|
action: drop
|
||||||
|
- source_labels:
|
||||||
|
- __name__
|
||||||
|
regex: 'container_last_seen'
|
||||||
|
action: drop
|
||||||
|
- source_labels:
|
||||||
|
- __name__
|
||||||
|
regex: 'container_memory_cache'
|
||||||
|
action: drop
|
||||||
|
- source_labels:
|
||||||
|
- __name__
|
||||||
|
regex: 'container_memory_failcnt'
|
||||||
|
action: drop
|
||||||
|
- source_labels:
|
||||||
|
- __name__
|
||||||
|
regex: 'container_memory_max_usage_bytes'
|
||||||
|
action: drop
|
||||||
|
- source_labels:
|
||||||
|
- __name__
|
||||||
|
regex: 'container_memory_rss'
|
||||||
|
action: drop
|
||||||
|
- source_labels:
|
||||||
|
- __name__
|
||||||
|
regex: 'container_memory_swap'
|
||||||
|
action: drop
|
||||||
|
- source_labels:
|
||||||
|
- __name__
|
||||||
|
regex: 'container_memory_usage_bytes'
|
||||||
|
action: drop
|
||||||
|
- source_labels:
|
||||||
|
- __name__
|
||||||
|
regex: 'container_network_receive_errors_total'
|
||||||
|
action: drop
|
||||||
|
- source_labels:
|
||||||
|
- __name__
|
||||||
|
regex: 'container_network_receive_packets_dropped_total'
|
||||||
|
action: drop
|
||||||
|
- source_labels:
|
||||||
|
- __name__
|
||||||
|
regex: 'container_network_receive_packets_total'
|
||||||
|
action: drop
|
||||||
|
- source_labels:
|
||||||
|
- __name__
|
||||||
|
regex: 'container_network_transmit_errors_total'
|
||||||
|
action: drop
|
||||||
|
- source_labels:
|
||||||
|
- __name__
|
||||||
|
regex: 'container_network_transmit_packets_dropped_total'
|
||||||
|
action: drop
|
||||||
|
- source_labels:
|
||||||
|
- __name__
|
||||||
|
regex: 'container_network_transmit_packets_total'
|
||||||
|
action: drop
|
||||||
|
- source_labels:
|
||||||
|
- __name__
|
||||||
|
regex: 'container_spec_cpu_period'
|
||||||
|
action: drop
|
||||||
|
- source_labels:
|
||||||
|
- __name__
|
||||||
|
regex: 'container_spec_cpu_shares'
|
||||||
|
action: drop
|
||||||
|
- source_labels:
|
||||||
|
- __name__
|
||||||
|
regex: 'container_spec_memory_limit_bytes'
|
||||||
|
action: drop
|
||||||
|
- source_labels:
|
||||||
|
- __name__
|
||||||
|
regex: 'container_spec_memory_reservation_limit_bytes'
|
||||||
|
action: drop
|
||||||
|
- source_labels:
|
||||||
|
- __name__
|
||||||
|
regex: 'container_spec_memory_swap_limit_bytes'
|
||||||
|
action: drop
|
||||||
|
- source_labels:
|
||||||
|
- __name__
|
||||||
|
regex: 'container_start_time_seconds'
|
||||||
|
action: drop
|
||||||
# Scrape config for API servers.
|
# Scrape config for API servers.
|
||||||
#
|
#
|
||||||
# Kubernetes exposes API servers as endpoints to the default/kubernetes
|
# Kubernetes exposes API servers as endpoints to the default/kubernetes
|
||||||
@ -617,6 +782,35 @@ conf:
|
|||||||
- __meta_kubernetes_endpoint_port_name
|
- __meta_kubernetes_endpoint_port_name
|
||||||
action: keep
|
action: keep
|
||||||
regex: default;kubernetes;https
|
regex: default;kubernetes;https
|
||||||
|
metric_relabel_configs:
|
||||||
|
- source_labels:
|
||||||
|
- __name__
|
||||||
|
regex: 'apiserver_admission_controller_admission_latencies_seconds_bucket'
|
||||||
|
action: drop
|
||||||
|
- source_labels:
|
||||||
|
- __name__
|
||||||
|
regex: 'rest_client_request_latency_seconds_bucket'
|
||||||
|
action: drop
|
||||||
|
- source_labels:
|
||||||
|
- __name__
|
||||||
|
regex: 'apiserver_response_sizes_bucket'
|
||||||
|
action: drop
|
||||||
|
- source_labels:
|
||||||
|
- __name__
|
||||||
|
regex: 'apiserver_admission_step_admission_latencies_seconds_bucket'
|
||||||
|
action: drop
|
||||||
|
- source_labels:
|
||||||
|
- __name__
|
||||||
|
regex: 'apiserver_admission_controller_admission_latencies_seconds_count'
|
||||||
|
action: drop
|
||||||
|
- source_labels:
|
||||||
|
- __name__
|
||||||
|
regex: 'apiserver_admission_controller_admission_latencies_seconds_sum'
|
||||||
|
action: drop
|
||||||
|
- source_labels:
|
||||||
|
- __name__
|
||||||
|
regex: 'apiserver_request_latencies_summary'
|
||||||
|
action: drop
|
||||||
# Scrape config for service endpoints.
|
# Scrape config for service endpoints.
|
||||||
#
|
#
|
||||||
# The relabeling allows the actual service scrape endpoint to be configured
|
# The relabeling allows the actual service scrape endpoint to be configured
|
||||||
|
Loading…
Reference in New Issue
Block a user