Skip to content

Instantly share code, notes, and snippets.

@muhamad-ridwant-tech
Last active June 13, 2024 03:57
Show Gist options
  • Save muhamad-ridwant-tech/01b65f310dff945a7674fe49d9af9b02 to your computer and use it in GitHub Desktop.
Save muhamad-ridwant-tech/01b65f310dff945a7674fe49d9af9b02 to your computer and use it in GitHub Desktop.
server:
http_listen_port: 9080
grpc_listen_port: 0
positions:
filename: /tmp/positions.yaml
clients:
- url: http://Loki-Server:3100/loki/api/v1/push #Connect to Loki Server
scrape_configs:
- job_name: horizon-log
static_configs:
- targets:
- localhost #Promtail target is localhost
labels:
instance: Server-Test-01 #Label identifier for instance (hostname -f)
env: TEST #Environment label
job: horizon-log #Job label
__path__: /var/log/containers/horizon/horizon.log # Path to Log Files
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment