-
Notifications
You must be signed in to change notification settings - Fork 34
Implement centralised logging in ceph dashboard using Grafana Loki #48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -163,6 +163,24 @@ services: | |||||
| - ./docker/haproxy/cors.lua:/etc/haproxy/cors.lua | ||||||
| scale: -1 | ||||||
|
|
||||||
| loki: | ||||||
| image: grafana/loki:2.4.0 | ||||||
| volumes: | ||||||
| - ./docker/loki:/etc/loki | ||||||
| - ${CEPH_REPO_DIR}/build.ceph/out:/etc/logs | ||||||
| ports: | ||||||
| - "3100:3100" | ||||||
| command: '--config.file=/etc/loki/loki-config.yaml' | ||||||
|
|
||||||
| promtail: | ||||||
| image: grafana/promtail:2.4.0 | ||||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please add to the .env.example the appropriate entry for this variable:
Suggested change
|
||||||
| volumes: | ||||||
| - /var/log:/var/log | ||||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Do we really need to share the host whole log folder or can we share a more specific folder? |
||||||
| - ./docker/promtail:/etc/promtail | ||||||
| - ${CEPH_REPO_DIR}/build.ceph/out:/etc/logs | ||||||
| command: '--config.file=/etc/promtail/promtail-config.yaml' | ||||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Not sure if our version of docker-compose supports it, but what about using
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Our current version supports it: |
||||||
|
|
||||||
|
|
||||||
| volumes: | ||||||
| empty_volume: | ||||||
| grafana_data: | ||||||
|
|
||||||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,30 @@ | ||
| auth_enabled: false | ||
|
|
||
| server: | ||
| http_listen_port: 3100 | ||
| grpc_listen_port: 9096 | ||
|
|
||
| common: | ||
| path_prefix: /tmp/loki | ||
| storage: | ||
| filesystem: | ||
| chunks_directory: /tmp/loki/chunks | ||
| rules_directory: /tmp/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 | ||
|
|
||
| ruler: | ||
| alertmanager_url: http://localhost:9093 |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,19 @@ | ||
| server: | ||
| http_listen_port: 9080 | ||
| grpc_listen_port: 0 | ||
|
|
||
| positions: | ||
| filename: /tmp/positions.yaml | ||
|
|
||
| client: | ||
| url: http:localhost:3100/loki/api/v1/push | ||
|
|
||
| scrape_configs: | ||
| - job_name: system | ||
| static_configs: | ||
| - targets: | ||
| - localhost | ||
| labels: | ||
| job: grafana | ||
| __path__: /etc/logs/*log | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add to the
.env.examplethe appropriate entry for this variable: