Skip to content

Commit

Permalink
adding loki
Browse files Browse the repository at this point in the history
  • Loading branch information
Bryce Coon committed Apr 11, 2024
1 parent 57f5525 commit 0c4afa2
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/brycerunner.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion kube-configs/grafana-datasource.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
27 changes: 27 additions & 0 deletions kube-configs/loki-config.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 0c4afa2

Please sign in to comment.