Hi all first time posting here.
I have 3 different servers. This is the setup I want to achieve:
- Server1 (51.25.365.12): promtail
- Server2 (126.96.36.199): promtail
- Server3 (188.8.131.52): promtail, loki and grafana
All the promtail services’ should send the data to loki running on Server3. How will this be possible? Please share the config files for all promtail and loki yaml files.
I have tried to modified the promtail script to:
server: http_listen_port: 9080 grpc_listen_port: 0 positions: filename: /tmp/positions.yaml clients: - url: http://184.108.40.206:3100/loki/api/v1/push scrape_configs: - job_name: system static_configs: - targets: - localhost labels: job: devlogs __path__: /home/ubuntu/john/python/logs/*log
I made no changes to the loki config.yaml file but when I connect the loki as a data connection it does not show any data.
Note: The IPs are not actual IPs of the servers’.