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

The metric kubelet_running_pods_count was renamed in 1.19 #508

Merged
merged 1 commit into from
Feb 25, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion build/linux/installer/conf/telegraf.conf
Original file line number Diff line number Diff line change
Expand Up @@ -675,7 +675,9 @@
## An array of urls to scrape metrics from.
urls = ["$CADVISOR_METRICS_URL"]

fieldpass = ["kubelet_running_pod_count","volume_manager_total_volumes", "kubelet_node_config_error", "process_resident_memory_bytes", "process_cpu_seconds_total"]
# <= 1.18: metric name is kubelet_running_pod_count
# >= 1.19: metric name changed to kubelet_running_pods
fieldpass = ["kubelet_running_pod_count","kubelet_running_pods","volume_manager_total_volumes", "kubelet_node_config_error", "process_resident_memory_bytes", "process_cpu_seconds_total"]
vishiy marked this conversation as resolved.
Show resolved Hide resolved
vishiy marked this conversation as resolved.
Show resolved Hide resolved

metric_version = 2
url_tag = "scrapeUrl"
Expand Down