Skip to content

Commit

Permalink
remove reference to node exporter metrics in scrape config template
Browse files Browse the repository at this point in the history
  • Loading branch information
bdrennz committed Sep 23, 2024
1 parent f1f9194 commit b50f145
Showing 1 changed file with 0 additions and 57 deletions.
57 changes: 0 additions & 57 deletions pkg/cmd/config/internal/scrape_config.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -7,63 +7,6 @@ global:
- PrometheusText0.0.4
evaluation_interval: 1m
scrape_configs:
- job_name: cloudzero-nodes-cadvisor
honor_timestamps: true
track_timestamps_staleness: false
scrape_interval: 1m
scrape_timeout: 10s
scrape_protocols:
- OpenMetricsText1.0.0
- OpenMetricsText0.0.1
- PrometheusText0.0.4
metrics_path: /metrics
scheme: https
enable_compression: true
authorization:
type: Bearer
credentials_file: /var/run/secrets/kubernetes.io/serviceaccount/token
tls_config:
ca_file: /var/run/secrets/kubernetes.io/serviceaccount/ca.crt
insecure_skip_verify: true
follow_redirects: true
enable_http2: true
relabel_configs:
- separator: ;
regex: __meta_kubernetes_node_label_(.+)
replacement: $1
action: labelmap
- separator: ;
regex: (.*)
target_label: __address__
replacement: kubernetes.default.svc:443
action: replace
- source_labels: [__meta_kubernetes_node_name]
separator: ;
regex: (.+)
target_label: __metrics_path__
replacement: /api/v1/nodes/$1/proxy/metrics/cadvisor
action: replace
- source_labels: [__meta_kubernetes_node_name]
separator: ;
regex: (.*)
target_label: node
replacement: $1
action: replace
metric_relabel_configs:
- separator: ;
regex: ^(board_asset_tag|container|created_by_kind|created_by_name|image|instance|name|namespace|node|node_kubernetes_io_instance_type|pod|product_name|provider_id|resource|unit|uid|_.*|label_.*|app.kubernetes.io/*|k8s.*)$
replacement: $1
action: labelkeep
- source_labels: [__name__]
separator: ;
regex: ^(container_cpu_usage_seconds_total|container_memory_working_set_bytes|container_network_receive_bytes_total|container_network_transmit_bytes_total)$
replacement: $1
action: keep
kubernetes_sd_configs:
- role: node
kubeconfig_file: ""
follow_redirects: true
enable_http2: true
- job_name: static-kube-state-metrics
honor_timestamps: true
track_timestamps_staleness: false
Expand Down

0 comments on commit b50f145

Please sign in to comment.