diff --git a/.github/workflows/brycerunner.yml b/.github/workflows/brycerunner.yml index 94965bb..5a3a158 100644 --- a/.github/workflows/brycerunner.yml +++ b/.github/workflows/brycerunner.yml @@ -34,6 +34,8 @@ jobs: kubectl -n bryce2 create configmap otel-config --from-file=otel-collector-config.yml # ./../BryceDocker/otel/otel.yml kubectl -n bryce2 delete configmap grafana-datasource-config || true kubectl -n bryce2 create configmap grafana-datasource-config --from-file=grafana-datasource.yml # ./../BryceDocker/grafana/provisioning/datasources/datasources.yml + kubectl -n bryce2 delete configmap loki-config || true + kubectl -n bryce2 create configmap loki-config --from-file=loki-config.yml cd .. # kubectl -n bryce2 create configmap blazor-web-postgres-init --from-file=TestTicket/20240215.01.21.01.sql diff --git a/kube-configs/grafana-datasource.yml b/kube-configs/grafana-datasource.yml index 089dce4..2cb3a69 100644 --- a/kube-configs/grafana-datasource.yml +++ b/kube-configs/grafana-datasource.yml @@ -18,7 +18,7 @@ datasources: type: loki uid: loki access: proxy - url: http://loki:3100 + url: http://loki-service:3100 basicAuth: false isDefault: false version: 1 diff --git a/kube-configs/loki-config.yml b/kube-configs/loki-config.yml new file mode 100644 index 0000000..77f9ba1 --- /dev/null +++ b/kube-configs/loki-config.yml @@ -0,0 +1,27 @@ +auth_enabled: false + +server: + http_listen_port: 3100 + grpc_listen_port: 9096 + +common: + path_prefix: /loki + storage: + filesystem: + chunks_directory: /loki/chunks + rules_directory: /loki/rules + replication_factor: 1 + ring: + # instance_addr: 127.0.0.1 + kvstore: + store: inmemory + +schema_config: + configs: + - from: 2020-10-24 + store: boltdb-shipper + object_store: filesystem + schema: v11 + index: + prefix: index_ + period: 24h \ No newline at end of file