@scope_monitoring
@scope_res
@deblike_minion
@skip_if_github_validation
Feature: 0127 - Monitor MLM environment with Prometheus on a Debian-like Salt minion
Description: In order to monitor Uyuni server
As an authorized user
I want to enable Prometheus exporters
File name: min_deblike_monitoring.feature
Relative path: secondary/min_deblike_monitoring.feature
@scope_monitoring
@scope_res
@deblike_minion
Scenario: Apply Prometheus exporter formulas on the Debian-like minion
Given
I am on the Systems overview page of this "deblike_minion"
00:00:01.702
When
I follow "Formulas" in the content area
00:00:00.082
Then
I should see a "Choose formulas:" text
00:00:00.069
And
I should see a "Monitoring" text
00:00:00.443
When
I check the "prometheus-exporters" formula
00:00:00.094
And
I click on "Save"
00:00:00.076
And
I wait until I see "Formula saved" text
00:00:00.971
@scope_monitoring
@scope_res
@deblike_minion
Scenario: Configure Prometheus exporter formula on the Debian-like minion
When
I follow "Formulas" in the content area
00:00:00.076
And
I follow "Prometheus Exporters" in the content area
00:00:00.430
And
I click on "Expand All Sections"
00:00:00.279
Then
I should see a "Enable and configure Prometheus exporters for managed systems." text
00:00:00.117
When
I check "node" exporter
00:00:00.050
And
I check "apache" exporter
00:00:00.108
And
I check "postgres" exporter
00:00:00.122
And
I click on "Save"
00:00:00.112
Then
I should see a "Formula saved" text
00:00:01.277
@scope_monitoring
@scope_res
@deblike_minion
@skip_if_github_validation
Scenario: Apply highstate for Prometheus exporters on the Debian-like minion
When
I follow "States" in the content area
00:00:00.104
And
I click on "Apply Highstate"
00:00:00.074
Then
I should see a "Applying the highstate has been scheduled." text
00:00:00.389
And
I wait until event "Apply highstate scheduled" is completed
00:01:28.621
@scope_monitoring
@scope_res
@deblike_minion
@skip_if_github_validation
Scenario: Wait for services
When
I wait until "node" exporter service is active on "deblike_minion"
00:00:00.925
And
I wait until "apache" exporter service is active on "deblike_minion"
00:00:00.211
And
I wait until "postgres" exporter service is active on "deblike_minion"
00:00:00.209
@scope_monitoring
@scope_res
@deblike_minion
Scenario: Visit monitoring endpoints on the Debian-like minion
And
I visit "Prometheus node exporter" endpoint of this "deblike_minion"
00:00:00.263
And
I visit "Prometheus apache exporter" endpoint of this "deblike_minion"
00:00:00.210
And
I visit "Prometheus postgres exporter" endpoint of this "deblike_minion"
00:00:00.213
@scope_monitoring
@scope_res
@deblike_minion
Scenario: Cleanup: undo Prometheus exporter formulas on the Debian-like minion
When
I follow "Formulas" in the content area
00:00:00.098
And
I uncheck the "prometheus-exporters" formula
00:00:00.142
And
I click on "Save"
00:00:00.080
Then
I wait until I see "Formula saved" text
00:00:01.164
@scope_monitoring
@scope_res
@deblike_minion
@skip_if_github_validation
Scenario: Cleanup: apply highstate after test monitoring on the Debian-like minion
When
I follow "States" in the content area
00:00:00.091
And
I click on "Apply Highstate"
00:00:00.078
Then
I should see a "Applying the highstate has been scheduled." text
00:00:00.533
And
I wait until event "Apply highstate scheduled" is completed
00:00:22.386