Skip to content
Snippets Groups Projects
Unverified Commit c664fae8 authored by micah's avatar micah
Browse files

Setup public_endpoint for loki

parent fc41df25
No related branches found
No related tags found
1 merge request!110Draft: Enable Loki as a replacement for Elasticsearch when `enable_loki` is set.
auth_enabled: false auth_enabled: false
server: server:
http_listen_address: 127.0.0.1
http_listen_port: 3100 http_listen_port: 3100
grpc_listen_address: 127.0.0.1
grpc_listen_port: 9095 grpc_listen_port: 9095
ingester: ingester:
......
...@@ -3,6 +3,6 @@ datasources: ...@@ -3,6 +3,6 @@ datasources:
- name: Loki - name: Loki
type: loki type: loki
access: proxy access: proxy
url: http://localhost:3100 url: http://log-collector.infra.bitmask.net:3100
jsonData: jsonData:
maxLines: 1000 maxLines: 1000
...@@ -125,6 +125,17 @@ prometheus: ...@@ -125,6 +125,17 @@ prometheus:
port: 9115 port: 9115
scheme: http scheme: http
enable_sso_proxy: true enable_sso_proxy: true
- name: loki
port: 3100
scheme: http
extra_nginx_config: |
location ^~ /api/datasources/proxy/\d+/loki/api/v1/tail {
proxy_pass http://be_loki_3100_prometheus;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header Host $host;
}
- name: grafana - name: grafana
port: 2929 port: 2929
scheme: https scheme: https
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment