@scope_monitoring
@scope_res
@rhlike_minion
@skip_if_github_validation
Feature: 0124 - Monitor MLM environment with Prometheus on a Red Hat-like Salt minion
Description: In order to monitor Uyuni server
As an authorized user
I want to enable Prometheus exporters
File name: min_rhlike_monitoring.feature
Relative path: secondary/min_rhlike_monitoring.feature
@scope_monitoring
@scope_res
@rhlike_minion
Scenario: Apply Prometheus exporter formulas on the Red Hat-like minion
Given
I am on the Systems overview page of this "rhlike_minion"
00:00:02.208
When
I follow "Formulas" in the content area
00:00:00.082
Then
I should see a "Choose formulas:" text
00:00:00.066
And
I should see a "Monitoring" text
00:00:00.290
When
I check the "prometheus-exporters" formula
00:00:00.080
And
I click on "Save"
00:00:00.066
And
I wait until I see "Formula saved" text
00:00:00.652
@scope_monitoring
@scope_res
@rhlike_minion
Scenario: Configure Prometheus exporter formula on the Red Hat-like minion
When
I follow "Formulas" in the content area
00:00:00.063
And
I follow "Prometheus Exporters" in the content area
00:00:00.207
And
I click on "Expand All Sections"
00:00:00.312
Then
I should see a "Enable and configure Prometheus exporters for managed systems." text
00:00:00.116
When
I check "node" exporter
00:00:00.051
And
I check "apache" exporter
00:00:00.089
And
I check "postgres" exporter
00:00:00.087
And
I click on "Save"
00:00:00.067
Then
I should see a "Formula saved" text
00:00:01.195
@scope_monitoring
@scope_res
@rhlike_minion
@skip_if_github_validation
Scenario: Apply highstate for Prometheus exporters on the Red Hat-like minion
When
I follow "States" in the content area
00:00:00.078
And
I click on "Apply Highstate"
00:00:00.067
Then
I should see a "Applying the highstate has been scheduled." text
00:00:00.426
And
I wait until event "Apply highstate scheduled" is completed
00:00:39.051
@scope_monitoring
@scope_res
@rhlike_minion
@skip_if_github_validation
Scenario: Wait for service
When
I wait until "node" exporter service is active on "rhlike_minion"
00:00:00.503
And
I wait until "apache" exporter service is active on "rhlike_minion"
00:00:00.225
And
I wait until "postgres" exporter service is active on "rhlike_minion"
00:00:00.222
@scope_monitoring
@scope_res
@rhlike_minion
Scenario: Visit monitoring endpoints on the Red Hat-like minion
When
I visit "Prometheus node exporter" endpoint of this "rhlike_minion"
00:00:00.247
And
I visit "Prometheus apache exporter" endpoint of this "rhlike_minion"
00:00:00.233
And
I visit "Prometheus postgres exporter" endpoint of this "rhlike_minion"
00:00:00.236
@scope_monitoring
@scope_res
@rhlike_minion
Scenario: Cleanup: undo Prometheus exporter formulas on the Red Hat-like minion
When
I follow "Formulas" in the content area
00:00:00.082
And
I uncheck the "prometheus-exporters" formula
00:00:00.199
And
I click on "Save"
00:00:00.065
Then
I wait until I see "Formula saved" text
00:00:01.025
@scope_monitoring
@scope_res
@rhlike_minion
@skip_if_github_validation
Scenario: Cleanup: apply highstate after test monitoring on the Red Hat-like minion
When
I follow "States" in the content area
00:00:00.072
And
I click on "Apply Highstate"
00:00:00.059
Then
I should see a "Applying the highstate has been scheduled." text
00:00:00.341
And
I wait until event "Apply highstate scheduled" is completed
00:00:22.181