Skip to content

Commit

Permalink
- manifest and config
Browse files Browse the repository at this point in the history
  • Loading branch information
elipe17 committed Nov 1, 2024
1 parent 7166ef7 commit a958077
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 15 deletions.
22 changes: 7 additions & 15 deletions tdrs-backend/plg/promtail/config.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
server:
http_listen_port: 9080
http_listen_port: 8080
grpc_listen_port: 0
log_level: info
log_level: debug

positions:
filename: /tmp/positions.yaml
Expand All @@ -10,17 +10,9 @@ clients:
- url: http://loki.apps.internal:8080/loki/api/v1/push

scrape_configs:
- job_name: {{ system_env_name }}
static_configs:
- targets:
- localhost
- job_name: syslog-rfc5424
syslog:
listen_address: 0.0.0.0:5514
idle_timeout: 60s
labels:
job: {{ system_env_name }}
__path__: /var/log/*log
- job_name: {{ backend_env_name }}
static_configs:
- targets:
- localhost
labels:
job: {{ backend_env_name }}
__path__: /tmp/django.log
job: syslog-rfc5424
14 changes: 14 additions & 0 deletions tdrs-backend/plg/promtail/manifest.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
version: 1
applications:
- name: promtail
memory: 128M
disk_quota: 7G
routes:
- route: promtail.apps.internal
instances: 1
command: |
wget https://github.com/grafana/loki/releases/download/v3.1.1/promtail-linux-amd64.zip
unzip -a promtail-linux-amd64.zip && rm -rf promtail-linux-amd64.zip
./promtail-linux-amd64 -config.file=/home/vcap/app/config.yml
buildpacks:
- https://github.com/cloudfoundry/binary-buildpack

0 comments on commit a958077

Please sign in to comment.