Skip to content

Commit 8925a28

Browse files
committed
Add labels for the lightspeed-app-server service
Add labels for the lightspeed-app-server service that allows it to be discovered by metrics ScrapeConfig
1 parent e770335 commit 8925a28

3 files changed

Lines changed: 6 additions & 0 deletions

File tree

internal/controller/lcore_config.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,8 @@ func buildLCoreServiceConfig(_ *common_helper.Helper, _ *apiv1beta1.OpenStackLig
8383
"workers": 1,
8484
"color_log": false,
8585
"access_log": true,
86+
"metrics": "enabled",
87+
"service": OpenStackLightspeedAppServerServiceName,
8688
"tls_config": map[string]interface{}{
8789
"tls_certificate_path": OpenStackLightspeedTLSCertPath,
8890
"tls_key_path": OpenStackLightspeedTLSKeyPath,

test/kuttl/common/expected-configs/lightspeed-stack-update.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,9 @@ service:
8484
auth_enabled: true
8585
color_log: false
8686
host: 0.0.0.0
87+
metrics: enabled
8788
port: 8443
89+
service: lightspeed-app-server
8890
tls_config:
8991
tls_certificate_path: /etc/certs/lightspeed-tls/tls.crt
9092
tls_key_path: /etc/certs/lightspeed-tls/tls.key

test/kuttl/common/expected-configs/lightspeed-stack.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,9 @@ service:
8484
auth_enabled: true
8585
color_log: false
8686
host: 0.0.0.0
87+
metrics: enabled
8788
port: 8443
89+
service: lightspeed-app-server
8890
tls_config:
8991
tls_certificate_path: /etc/certs/lightspeed-tls/tls.crt
9092
tls_key_path: /etc/certs/lightspeed-tls/tls.key

0 commit comments

Comments
 (0)