You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You can use [Grafana Alloy](https://grafana.com/docs/alloy/latest/) to scrape metrics from SeaTable components and forward them to an existing [Prometheus server](https://prometheus.io/) using Prometheus' [remote-write](https://grafana.com/docs/alloy/latest/reference/components/prometheus/prometheus.remote_write/) functionality.
178
+
179
+
The following YAML manifest can serve as a starting point to deploy Alloy:
180
+
181
+
```yaml
182
+
services:
183
+
alloy:
184
+
image: grafana/alloy:v1.12.0
185
+
container_name: alloy
186
+
restart: unless-stopped
187
+
environment:
188
+
- PROMETHEUS_URL=${PROMETHEUS_URL:?Variable is not set or empty}
189
+
- PROMETHEUS_USERNAME=${PROMETHEUS_USERNAME:?Variable is not set or empty}
190
+
- PROMETHEUS_PASSWORD=${PROMETHEUS_PASSWORD:?Variable is not set or empty}
191
+
- SEATABLE_METRICS_USERNAME=${SEATABLE_METRICS_USERNAME:?Variable is not set or empty}
192
+
- SEATABLE_METRICS_PASSWORD=${SEATABLE_METRICS_PASSWORD:?Variable is not set or empty}
193
+
networks:
194
+
- o11y-net
195
+
volumes:
196
+
- ./config.alloy:/etc/alloy/config.alloy:ro
197
+
- /opt/alloy-data:/var/lib/alloy/data
198
+
command:
199
+
- run
200
+
- --server.http.listen-addr=0.0.0.0:12345
201
+
- --storage.path=/var/lib/alloy/data
202
+
- /etc/alloy/config.alloy
203
+
204
+
# Attach seatable-server container to o11y-net
205
+
# This allows Alloy to scrape metrics
206
+
seatable-server:
207
+
networks:
208
+
- o11y-net
209
+
210
+
networks:
211
+
o11y-net:
212
+
name: o11y-net
213
+
```
214
+
215
+
The following `config.alloy` config file should be created inside the same directory:
0 commit comments