Skip to content

Commit a1cf7a0

Browse files
committed
Update otel example: fix on selinux systems
1 parent fda4af3 commit a1cf7a0

3 files changed

Lines changed: 98 additions & 122 deletions

File tree

examples/telemetry/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
postgres-logs/

examples/telemetry/docker-compose.yml

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ services:
9696
POSTGRES_DB: sqlpage
9797
volumes:
9898
- ./postgres-init:/docker-entrypoint-initdb.d:ro
99-
- postgres-logs:/var/log/postgresql
99+
- ./postgres-logs:/var/log/postgresql:z
100100
healthcheck:
101101
test: ["CMD-SHELL", "pg_isready -U sqlpage"]
102102
interval: 2s
@@ -107,7 +107,7 @@ services:
107107
user: "0:0"
108108
volumes:
109109
- ./otel-collector.yaml:/etc/otelcol-contrib/config.yaml:ro
110-
- postgres-logs:/var/log/postgresql:ro
110+
- ./postgres-logs:/var/log/postgresql:ro,z
111111
ports:
112112
- "4317:4317"
113113
- "4318:4318"
@@ -155,13 +155,10 @@ services:
155155
- GF_DASHBOARDS_DEFAULT_HOME_DASHBOARD_PATH=/etc/grafana/provisioning/dashboards/sqlpage/sqlpage-home.json
156156
- GF_NEWS_NEWS_FEED_ENABLED=false
157157
volumes:
158-
- ./grafana/datasources.yaml:/etc/grafana/provisioning/datasources/datasources.yaml:ro
159-
- ./grafana/dashboards.yaml:/etc/grafana/provisioning/dashboards/dashboards.yaml:ro
160-
- ./grafana:/etc/grafana/provisioning/dashboards/sqlpage:ro
158+
- ./grafana/datasources.yaml:/etc/grafana/provisioning/datasources/datasources.yaml:ro,z
159+
- ./grafana/dashboards.yaml:/etc/grafana/provisioning/dashboards/dashboards.yaml:ro,z
160+
- ./grafana:/etc/grafana/provisioning/dashboards/sqlpage:ro,z
161161
depends_on:
162162
- tempo
163163
- loki
164164
- prometheus
165-
166-
volumes:
167-
postgres-logs:

0 commit comments

Comments
 (0)