Skip to content

Instantly share code, notes, and snippets.

@rootsec1
Last active October 28, 2022 13:40
Show Gist options
  • Select an option

  • Save rootsec1/f2b1d0b930fb10a1e235cfdc3f1fe067 to your computer and use it in GitHub Desktop.

Select an option

Save rootsec1/f2b1d0b930fb10a1e235cfdc3f1fe067 to your computer and use it in GitHub Desktop.

Revisions

  1. rootsec1 revised this gist Oct 28, 2022. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion promtail-custom-config.yaml
    Original file line number Diff line number Diff line change
    @@ -23,4 +23,4 @@ scrape_configs:
    - localhost
    labels:
    job: backend-eb
    __path__: /Users/rootsec1/Code/Backend/weekday-backend-eb/log/*.log
    __path__: /var/app/current/log/*.log
  2. rootsec1 created this gist Oct 28, 2022.
    26 changes: 26 additions & 0 deletions promtail-custom-config.yaml
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,26 @@
    server:
    http_listen_port: 9080
    grpc_listen_port: 0

    positions:
    filename: /tmp/positions.yaml

    client:
    url: https://312367:eyJrIjoiYTlkZjU5N2VmZjMxMDBmMmEwNjYxYTM3OGI4MmYwZDlmNzU2NzU5NiIsIm4iOiJQcmltYXJ5IEFQSSBLZXkiLCJpZCI6NzMzNjc0fQ==@logs-prod-014.grafana.net/api/prom/push

    scrape_configs:
    - job_name: system
    static_configs:
    - targets:
    - localhost
    labels:
    job: varlogs
    __path__: /var/log/*.log

    - job_name: backend-eb
    static_configs:
    - targets:
    - localhost
    labels:
    job: backend-eb
    __path__: /Users/rootsec1/Code/Backend/weekday-backend-eb/log/*.log