feat: enable log collection for prod environment
- Enable logIngest for chat and freeleaps services in prod - Add Loki datasource to Grafana for prod environment - Configure Loki log retention policy (30 days) - Enable table manager for automatic log cleanup
This commit is contained in:
parent
c9d13d533f
commit
31f959f7a9
@ -3760,9 +3760,9 @@ monitoring:
|
||||
# -- DEPRECATED Configuration for the table-manager. The table-manager is only necessary when using a deprecated
|
||||
# index type such as Cassandra, Bigtable, or DynamoDB, it has not been necessary since loki introduced self-
|
||||
# contained index types like 'boltdb-shipper' and 'tsdb'. This will be removed in a future helm chart.
|
||||
tableManager:
|
||||
tableManager:
|
||||
# -- Specifies whether the table-manager should be enabled
|
||||
enabled: false
|
||||
enabled: true
|
||||
image:
|
||||
# -- The Docker registry for the table-manager image. Overrides `loki.image.registry`
|
||||
registry: null
|
||||
@ -3817,6 +3817,6 @@ tableManager:
|
||||
# -- Tolerations for table-manager pods
|
||||
tolerations: []
|
||||
# -- Enable deletes by retention
|
||||
retention_deletes_enabled: false
|
||||
retention_deletes_enabled: true
|
||||
# -- Set retention period
|
||||
retention_period: 0
|
||||
retention_period: 30d
|
||||
|
||||
@ -1165,7 +1165,15 @@ grafana:
|
||||
|
||||
## Configure additional grafana datasources (passed through tpl)
|
||||
## ref: http://docs.grafana.org/administration/provisioning/#datasources
|
||||
additionalDataSources: []
|
||||
additionalDataSources:
|
||||
- name: Loki
|
||||
type: loki
|
||||
url: http://loki-gateway.freeleaps-logging-system
|
||||
access: proxy
|
||||
editable: false
|
||||
jsonData:
|
||||
maxLines: 1000
|
||||
timeout: 30
|
||||
# - name: prometheus-sample
|
||||
# access: proxy
|
||||
# basicAuth: true
|
||||
|
||||
@ -8,6 +8,11 @@ dashboard:
|
||||
name: freeleaps-prod-chat-dashboard
|
||||
title: Chat Service Dashboard (PROD)
|
||||
metricsPrefix: freeleaps_chat
|
||||
logIngest:
|
||||
enabled: true
|
||||
lokiEndpoint: http://loki-gateway.freeleaps-logging-system
|
||||
logPathPattern: /app/log/chat/*.log
|
||||
logPath: /app/log/chat
|
||||
chat:
|
||||
replicas: 1
|
||||
image:
|
||||
|
||||
@ -8,6 +8,11 @@ dashboard:
|
||||
name: freeleaps-prod-backend-dashboard
|
||||
title: Backend Service Dashboard (PROD)
|
||||
metricsPrefix: freeleaps_backend
|
||||
logIngest:
|
||||
enabled: true
|
||||
lokiEndpoint: http://loki-gateway.freeleaps-logging-system
|
||||
logPathPattern: /app/log/freeleaps/*.log
|
||||
logPath: /app/log/freeleaps
|
||||
freeleaps:
|
||||
replicas: 1
|
||||
image:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user