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

grwehner/pv-collect-volume-name #448

Merged
merged 1 commit into from
Sep 28, 2020
Merged
Show file tree
Hide file tree
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
1 change: 1 addition & 0 deletions source/plugins/ruby/CAdvisorMetricsAPIClient.rb
Original file line number Diff line number Diff line change
Expand Up @@ -359,6 +359,7 @@ def getPersistentVolumeMetrics(metricJSON, hostName, metricNameToCollect, metric
metricTags[Constants::INSIGHTSMETRICS_TAGS_POD_NAME] = podName
metricTags[Constants::INSIGHTSMETRICS_TAGS_PVC_NAME] = pvcName
metricTags[Constants::INSIGHTSMETRICS_TAGS_PVC_NAMESPACE] = pvcNamespace
metricTags[Constants::INSIGHTSMETRICS_TAGS_VOLUME_NAME] = volume["name"]
metricTags[Constants::INSIGHTSMETRICS_TAGS_PV_CAPACITY_BYTES] = volume["capacityBytes"]

metricItem["Tags"] = metricTags
Expand Down
1 change: 1 addition & 0 deletions source/plugins/ruby/constants.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ class Constants
INSIGHTSMETRICS_TAGS_PVC_NAMESPACE = "pvcNamespace"
INSIGHTSMETRICS_TAGS_POD_NAME = "podName"
INSIGHTSMETRICS_TAGS_PV_CAPACITY_BYTES = "pvCapacityBytes"
INSIGHTSMETRICS_TAGS_VOLUME_NAME = "volumeName"
INSIGHTSMETRICS_FLUENT_TAG = "oms.api.InsightsMetrics"
REASON_OOM_KILLED = "oomkilled"
#Kubestate (common)
Expand Down