Problem:
Setting a custom value for prometheusScraping.port in values.yaml has no effect, as the variable isn't actually being used in the port definition in chat-deployment.yaml.
Solution:
Add the variable to port definitions in chat-deployment.yaml and fence it so the port only gets defined when prometheusScraping.enabled is true.
Also add a metrics port to the service, so prometheus can scrape it.
Problem: Setting a custom value for
prometheusScraping.port
invalues.yaml
has no effect, as the variable isn't actually being used in the port definition inchat-deployment.yaml
.Solution: Add the variable to port definitions in
chat-deployment.yaml
and fence it so the port only gets defined whenprometheusScraping.enabled
is true.Also add a
metrics
port to the service, so prometheus can scrape it.