c941718a5f
* Docker blocks: Add loki blocks for loki releases - Loki did major API changes between 0.3 and 0.4 - Adding blocks to simplify Grafana datasource testing for different versions - keeing `loki` block pointing at loki master - Run all versions in parallel: ``` ./create_docker_compose.sh loki0.3 loki0.4 loki ``` - all versions have different hostnames and ports internally - datasource url depends on version so you can set them up as separate datasources: - master: http://localhost:3100/ - 0.3.0: http://localhost:3103/ - 0.4.0: http://localhost:3104/ * Add loki minor version datasources
28 lines
525 B
YAML
28 lines
525 B
YAML
server:
|
|
http_listen_port: 9080
|
|
grpc_listen_port: 0
|
|
|
|
positions:
|
|
filename: /tmp/positions.yaml
|
|
|
|
client:
|
|
url: http://loki0.4:3100/api/prom/push
|
|
|
|
scrape_configs:
|
|
- job_name: system
|
|
entry_parser: raw
|
|
static_configs:
|
|
- targets:
|
|
- localhost
|
|
labels:
|
|
job: varlogs
|
|
__path__: /var/log/*log
|
|
- job_name: grafana
|
|
entry_parser: raw
|
|
static_configs:
|
|
- targets:
|
|
- localhost
|
|
labels:
|
|
job: grafana
|
|
__path__: /var/log/grafana/*log
|