Add SQLite version to build details and startup log message (#22208)
Stelios Fragkakis committed
Apr 15, 2026 at 08:50 UTC
5e5f64031a9641feba0fbaf1042491b191ca4a93
2 files changed
+12
-1
src/daemon/buildinfo.c
+10
@@ -56,6 +56,7 @@ typedef enum __attribute__((packed)) {
56
BIB_FEATURE_TIERING,
57
BIB_FEATURE_ML,
58
BIB_FEATURE_ALLOCATOR,
59
+ BIB_DB_SQLITE,
60
BIB_DB_DBENGINE,
61
BIB_DB_ALLOC,
62
BIB_DB_RAM,
@@ -551,6 +552,14 @@ static struct {
552
.json = "allocator",
553
.value = NULL,
554
},
555
+ [BIB_DB_SQLITE] = {
556
+ .category = BIC_DATABASE,
557
+ .type = BIT_STRING,
558
+ .analytics = NULL,
559
+ .print = "sqlite",
560
+ .json = "sqlite",
561
+ .value = "unknown",
562
+ },
563
[BIB_DB_DBENGINE] = {
564
.category = BIC_DATABASE,
565
.type = BIT_BOOLEAN,
@@ -1223,6 +1232,7 @@ __attribute__((constructor)) void initialize_build_info(void) {
1232
build_info_set_value(BIB_FEATURE_ALLOCATOR, "system");
1233
#endif
1234
1235
+ build_info_set_value(BIB_DB_SQLITE, sqlite3_libversion());
1236
1237
#ifdef ENABLE_DBENGINE
1238
build_info_set_status(BIB_DB_DBENGINE, true);
src/daemon/main.c
+2
-1
@@ -1174,8 +1174,9 @@ int netdata_main(int argc, char **argv) {
1174
add_agent_event(EVENT_AGENT_START_TIME, (int64_t ) (ready_ut - started_ut));
1175
usec_t median_start_time = get_agent_event_time_median(EVENT_AGENT_START_TIME);
1176
netdata_log_info(
1177
- "NETDATA STARTUP: completed in %llu ms (median start up time is %llu ms). "
1177
+ "NETDATA STARTUP: version '%s', sqlite '%s', completed in %llu ms (median start up time is %llu ms). "
1178
"Enjoy X-Ray Vision for your infrastructure!",
1179
+ NETDATA_VERSION, sqlite3_libversion(),
1180
(ready_ut - started_ut) / USEC_PER_MS, median_start_time / USEC_PER_MS);
1181
1182
cleanup_agent_event_log();