The library provides Prometheus metrics types, collector and exposion formatter. The library isn't thread-safe for now. The next first pull request will support that. Can be use exposion formatted output with Zephyr Http server. Signed-off-by: Mustafa Abdullah Kus <mustafa.kus@sparsetechnology.com>
26 lines
626 B
Plaintext
26 lines
626 B
Plaintext
# Copyright(c) 2024 Sparse Technology, Mustafa Abdullah Kus
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
menuconfig PROMETHEUS
|
|
bool "Prometheus Client Library (Pull Method)"
|
|
depends on NET_SOCKETS
|
|
depends on HTTP_SERVER
|
|
help
|
|
Enable Prometheus client library
|
|
|
|
if PROMETHEUS
|
|
|
|
module = PROMETHEUS
|
|
module-dep = NET_LOG
|
|
module-str = Log level for PROMETHEUS
|
|
module-help = Enable debug message of PROMETHEUS client library.
|
|
source "subsys/net/Kconfig.template.log_config.net"
|
|
|
|
config PROMETHEUS_MAX_METRICS
|
|
int "Maximum number of metrics"
|
|
default 10
|
|
help
|
|
Maximum number of metrics that can be registered.
|
|
|
|
endif # PROMETHEUS
|