Skip to content

Commit

Permalink
test: fix lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
talal committed Aug 12, 2020
1 parent f1ffe9b commit 9cac6b0
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 12 deletions.
10 changes: 6 additions & 4 deletions test/fixtures/resmgmt_kubernetes_absent_metrics_alert_rules.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,9 @@ var ResMgmtK8sAbsentPromRule = monitoringv1.PrometheusRule{
For: "10m",
Labels: kepLab,
Annotations: map[string]string{
"summary": "missing kube_pod_failed_scheduling_memory_total",
"description": "The metric 'kube_pod_failed_scheduling_memory_total' is missing. 'OpenstackKeppelPodSchedulingInsufficientMemory' alert using it may not fire as intended.",
"summary": "missing kube_pod_failed_scheduling_memory_total",
"description": "The metric 'kube_pod_failed_scheduling_memory_total' is missing. " +
"'OpenstackKeppelPodSchedulingInsufficientMemory' alert using it may not fire as intended.",
},
},
{
Expand All @@ -59,8 +60,9 @@ var ResMgmtK8sAbsentPromRule = monitoringv1.PrometheusRule{
For: "10m",
Labels: kepLab,
Annotations: map[string]string{
"summary": "missing keppel_container_memory_usage_percent",
"description": "The metric 'keppel_container_memory_usage_percent' is missing. 'OpenstackKeppelPodOOMExceedingLimits' alert using it may not fire as intended.",
"summary": "missing keppel_container_memory_usage_percent",
"description": "The metric 'keppel_container_memory_usage_percent' is missing. " +
"'OpenstackKeppelPodOOMExceedingLimits' alert using it may not fire as intended.",
},
},
},
Expand Down
10 changes: 6 additions & 4 deletions test/fixtures/resmgmt_openstack_absent_metrics_alert_rules.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,9 @@ var LimesAbsentAlertsAPIGroup = monitoringv1.RuleGroup{
For: "10m",
Labels: limesLab,
Annotations: map[string]string{
"summary": "missing limes_suspended_scrapes",
"description": "The metric 'limes_suspended_scrapes' is missing. 'OpenstackLimesSuspendedScrapes' alert using it may not fire as intended.",
"summary": "missing limes_suspended_scrapes",
"description": "The metric 'limes_suspended_scrapes' is missing. " +
"'OpenstackLimesSuspendedScrapes' alert using it may not fire as intended.",
},
},
},
Expand All @@ -82,8 +83,9 @@ var LimesAbsentAlertsRoleAssignGroup = monitoringv1.RuleGroup{
For: "10m",
Labels: limesLab,
Annotations: map[string]string{
"summary": "missing openstack_assignments_per_role",
"description": "The metric 'openstack_assignments_per_role' is missing. 'OpenstackLimesUnexpectedCloudViewerRoleAssignments' alert using it may not fire as intended.",
"summary": "missing openstack_assignments_per_role",
"description": "The metric 'openstack_assignments_per_role' is missing. " +
"'OpenstackLimesUnexpectedCloudViewerRoleAssignments' alert using it may not fire as intended.",
},
},
},
Expand Down
10 changes: 6 additions & 4 deletions test/fixtures/swift_openstack_absent_metrics_alert_rules.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,9 @@ var SwiftOSAbsentPromRule = monitoringv1.PrometheusRule{
For: "10m",
Labels: swiftLab,
Annotations: map[string]string{
"summary": "missing swift_dispersion_task_exit_code",
"description": "The metric 'swift_dispersion_task_exit_code' is missing. 'OpenstackSwiftHealthCheck' alert using it may not fire as intended.",
"summary": "missing swift_dispersion_task_exit_code",
"description": "The metric 'swift_dispersion_task_exit_code' is missing. " +
"'OpenstackSwiftHealthCheck' alert using it may not fire as intended.",
},
},
{
Expand All @@ -70,8 +71,9 @@ var SwiftOSAbsentPromRule = monitoringv1.PrometheusRule{
For: "10m",
Labels: swiftLab,
Annotations: map[string]string{
"summary": "missing swift_recon_task_exit_code",
"description": "The metric 'swift_recon_task_exit_code' is missing. 'OpenstackSwiftHealthCheck' alert using it may not fire as intended.",
"summary": "missing swift_recon_task_exit_code",
"description": "The metric 'swift_recon_task_exit_code' is missing. " +
"'OpenstackSwiftHealthCheck' alert using it may not fire as intended.",
},
},
},
Expand Down

0 comments on commit 9cac6b0

Please sign in to comment.