Skip to content

Commit

Permalink
Update env name
Browse files Browse the repository at this point in the history
  • Loading branch information
dyedwiper committed Jul 29, 2024
1 parent 194d7e6 commit 244c440
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ansible/roles/tldraw-server/templates/configmap.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ data:
API_HOST: "http://api-svc:3030"
WS_PATH_PREFIX: "/tldraw-server"
LOG: "^(yjs|@y|server)"
PROMETHEUS_METRICS_ENABLED: true
FEATURE_PROMETHEUS_METRICS_ENABLED: true
PROMETHEUS_METRICS_ROUTE: /metrics
PROMETHEUS_METRICS_PORT: 9090

2 changes: 1 addition & 1 deletion src/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ const port = number.parseInt(env.getConf('port') || '3345');
const redisPrefix = env.getConf('redis-prefix') || 'y';
const store = await initStorage();

if (env.getConf('prometheus-metrics-enabled') === 'true') {
if (env.getConf('feature-prometheus-metrics-enabled') === 'true') {
exposeMetricsToPrometheus();
}

Expand Down

0 comments on commit 244c440

Please sign in to comment.