Title
b

Bo

02/05/2023, 3:44 AM
Hi all, I am trying to build and run local quest db (source code checked out) and see prometheus metrics. Here are what I've done 1. Checkout to local computer 2. Un-comment
metrics.enabled=true
in
core/src/main/resources/io/questdb/site/conf/server.conf
to allow the feature 3. Build by
mvn clean package --batch-mode --quiet -DskipTests -P build-web-console,build-binaries
4. Run by
java -p core/target/questdb-6.7.1-SNAPSHOT.jar -m io.questdb/io.questdb.ServerMain -d ~/database_questdb
However, in the log, it still says below on the log
Metrics are disabled, health check endpoint will not consider unhandled errors
and localhost:9003 only sees
Status: Healthy
. Is there anything I am missing?
I took a short cut by setting metric.enabled to true by
this.metricsEnabled = getBoolean(properties, env, PropertyKey.METRICS_ENABLED, true); // used to be false
and I can see metrics running
curl localhost:9003/metrics
Here's the output
I feel like there's something I am missing from update server.conf and get the change into the jar
b

Bolek Ziobrowski

02/06/2023, 7:50 AM
Hi @Bo . It'd be better to revert code change and modify server.conf in instance directory. In this case it would be ~/database_questdb/conf/server.conf .
b

Bo

02/06/2023, 1:37 PM
Ah, that works, thanks @Bolek Ziobrowski