@susemanager
@sle_minion
@scope_monitoring
@skip_if_github_validation
Feature: 0138 - Monitor MLM environment with Prometheus on a SLE Salt minion
Description: In order to monitor Uyuni server
As an authorized user
I want to enable Prometheus exporters
File name: min_monitoring.feature
Relative path: secondary/min_monitoring.feature
@susemanager
@sle_minion
@scope_monitoring
@skip_if_github_validation
Scenario: Apply Prometheus and Prometheus exporter formulas
Given
I am on the Systems overview page of this "sle_minion"
0s
When
I follow "Formulas" in the content area
0s
And
I should see a "Choose formulas:" text
0s
And
I should see a "Monitoring" text
0s
And
I check the "prometheus" formula
0s
And
I check the "prometheus-exporters" formula
0s
And
I click on "Save"
0s
Then
I wait until I see "Formula saved" text
0s
@susemanager
@sle_minion
@scope_monitoring
@skip_if_github_validation
Scenario: Configure Prometheus formula
When
I follow "Formulas" in the content area
0s
And
I follow "Prometheus" in the content area
0s
And
I click on "Expand All Sections"
0s
And
I enter "admin" as "Username"
0s
And
I enter "admin" as "Password"
0s
And
I click on "Save Formula"
0s
Then
I should see a "Formula saved" text
0s
@susemanager
@sle_minion
@scope_monitoring
@skip_if_github_validation
Scenario: Configure Prometheus exporter formula
When
I follow "Formulas" in the content area
0s
And
I follow "Prometheus Exporters" in the content area
0s
And
I click on "Expand All Sections"
0s
And
I should see a "Enable and configure Prometheus exporters for managed systems." text
0s
And
I check "node" exporter
0s
And
I check "apache" exporter
0s
And
I check "postgres" exporter
0s
And
I click on "Save"
0s
Then
I should see a "Formula saved" text
0s
@susemanager
@sle_minion
@scope_monitoring
@skip_if_github_validation
Scenario: Apply highstate for Prometheus exporters
When
I follow "States" in the content area
0s
And
I click on "Apply Highstate"
0s
Then
I should see a "Applying the highstate has been scheduled." text
0s
And
I wait until event "Apply highstate scheduled" is completed
0s
@susemanager
@sle_minion
@scope_monitoring
@skip_if_github_validation
Scenario: Wait for services
When
I wait until "prometheus" service is active on "sle_minion"
0s
And
I wait until "node" exporter service is active on "sle_minion"
0s
And
I wait until "apache" exporter service is active on "sle_minion"
0s
And
I wait until "postgres" exporter service is active on "sle_minion"
0s
@susemanager
@sle_minion
@scope_monitoring
@skip_if_github_validation
Scenario: Visit monitoring endpoints on the minion
When
I visit "Prometheus" endpoint of this "sle_minion"
0s
And
I visit "Prometheus node exporter" endpoint of this "sle_minion"
0s
And
I visit "Prometheus apache exporter" endpoint of this "sle_minion"
0s
And
I visit "Prometheus postgres exporter" endpoint of this "sle_minion"
0s
@susemanager
@sle_minion
@scope_monitoring
@skip_if_github_validation
Scenario: Cleanup: undo Prometheus and Prometheus exporter formulas
When
I follow "Formulas" in the content area
0s
And
I uncheck the "prometheus" formula
0s
And
I uncheck the "prometheus-exporters" formula
0s
And
I click on "Save"
0s
Then
I wait until I see "Formula saved" text
0s
@susemanager
@sle_minion
@scope_monitoring
@skip_if_github_validation
Scenario: Cleanup: apply highstate after test monitoring
And
I follow "States" in the content area
0s
And
I click on "Apply Highstate"
0s
Then
I should see a "Applying the highstate has been scheduled." text
0s
And
I wait until event "Apply highstate scheduled" is completed
0s