Skip to content

Commit

Permalink
[DEVOPS-40] Added prometheus_exporter to the platform modules.
Browse files Browse the repository at this point in the history
  • Loading branch information
steveworley committed Jan 17, 2024
1 parent b1afe94 commit 594b6f9
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"drupal/httpav": "^1.0",
"drupal/purge": "^3.5",
"drupal/fast_404": "^3.0",
"drupal/prometheus_exporter": "^1.0",
"drupal/govcms_akamai_purge": "^2.1",
"phpstan/extension-installer": "^1.1.0",
"spaze/phpstan-disallowed-calls": "^2.3.0",
Expand Down
3 changes: 3 additions & 0 deletions drupal/settings/all.settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -177,3 +177,6 @@ public function __toString() {
if (getenv('LAGOON')) {
$settings['trusted_host_patterns'][] = '.*';
}

// Enable the update_status collector for Prometheus Exporter.
$config['prometheus_exporter.settings']['collectors']['update_status']['enabled'] = TRUE;
2 changes: 2 additions & 0 deletions scripts/deploy/govcms-enable_modules
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ PLATFORM_MODULES=(
"lagoon_logs"
"environment_indicator"
"govcms_security"
"prometheus_exporter"
"prometheus_exporter_update"
)

MODULE_LIST=""
Expand Down
2 changes: 2 additions & 0 deletions tests/bats/validate/fixtures/profile-invalid.json
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,8 @@
"path": 0,
"path_alias": 0,
"permissions_by_term": 0,
"prometheus_exporter": 0,
"prometheus_exporter_update": 0,
"quickedit": 0,
"rdf": 0,
"real_aes": 0,
Expand Down
2 changes: 2 additions & 0 deletions tests/bats/validate/fixtures/profile-valid.json
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,8 @@
"path": 0,
"path_alias": 0,
"permissions_by_term": 0,
"prometheus_exporter": 0,
"prometheus_exporter_update": 0,
"quickedit": 0,
"rdf": 0,
"real_aes": 0,
Expand Down

0 comments on commit 594b6f9

Please sign in to comment.