Package: openmldb-exporter
OpenMLDB ExporterFeaturesOpenMLDBPrometheus Exporter exposing metricsOpenMLDBmixin provides well-configured examples forPrometheusserver andGrafanadashboardRequirementsA runnable OpenMLDB instance that is accessible from your networkOpenMLDB version >= 0.5.0Python >= 3.8Quick StartYou can run openmdlb-exporter from docker, or install and run directly from PyPI.Use dockerdockerrunghcr.io/4paradigm/openmldb-exporter\--config.zk_root=<openmldb_zk_addr>\--config.zk_path=<openmldb_zk_path>Install and Run from PyPIpipinstallopenmldb-exporter# startopenmldb-exporter\--config.zk_root=<openmldb_zk_addr>\--config.zk_path=<openmldb_zk_path>And replace<openmdlb_zk_addr>and<openmldb_zk_path>to correct value. Afterwards, you can check metrics with curl:curlhttp://<IP>:8000/metrics<IP>is docker container IP, or127.0.0.1if installing from PyPI.Example output# HELP openmldb_connected_seconds_total duration for a component conncted time in seconds# TYPE openmldb_connected_seconds_total counteropenmldb_connected_seconds_total{endpoint="172.17.0.15:9520",role="tablet"}208834.70900011063openmldb_connected_seconds_total{endpoint="172.17.0.15:9521",role="tablet"}208834.70700001717openmldb_connected_seconds_total{endpoint="172.17.0.15:9522",role="tablet"}208834.71399998665openmldb_connected_seconds_total{endpoint="172.17.0.15:9622",role="nameserver"}208833.70000004768openmldb_connected_seconds_total{endpoint="172.17.0.15:9623",role="nameserver"}208831.70900011063openmldb_connected_seconds_total{endpoint="172.17.0.15:9624",role="nameserver"}208829.7230000496# HELP openmldb_connected_seconds_created duration for a component conncted time in seconds# TYPE openmldb_connected_seconds_created gaugeopenmldb_connected_seconds_created{endpoint="172.17.0.15:9520",role="tablet"}1.6501813860467942e+09openmldb_connected_seconds_created{endpoint="172.17.0.15:9521",role="tablet"}1.6501813860495396e+09openmldb_connected_seconds_created{endpoint="172.17.0.15:9522",role="tablet"}1.650181386050323e+09openmldb_connected_seconds_created{endpoint="172.17.0.15:9622",role="nameserver"}1.6501813860512116e+09openmldb_connected_seconds_created{endpoint="172.17.0.15:9623",role="nameserver"}1.650181386051238e+09openmldb_connected_seconds_created{endpoint="172.17.0.15:9624",role="nameserver"}1.6501813860512598e+09ConfigurationYou can view the help from:openmldb-exporter-h--config.zk_rootand--config.zk_pathare mandatory.Available optionsusage: openmldb-exporter [-h] [--log.level LOG.LEVEL] [--web.listen-address WEB.LISTEN_ADDRESS]
                        [--web.telemetry-path WEB.TELEMETRY_PATH] [--config.zk_root CONFIG.ZK_ROOT]
                        [--config.zk_path CONFIG.ZK_PATH] [--config.interval CONFIG.INTERVAL]

OpenMLDB exporter

optional arguments:
 -h, --help            show this help message and exit
 --log.level LOG.LEVEL
                       config log level, default WARN
 --web.listen-address WEB.LISTEN_ADDRESS
                       process listen port, default 8000
 --web.telemetry-path WEB.TELEMETRY_PATH
                       Path under which to expose metrics, default metrics
 --config.zk_root CONFIG.ZK_ROOT
                       endpoint to zookeeper, default 127.0.0.1:6181
 --config.zk_path CONFIG.ZK_PATH
                       root path in zookeeper for OpenMLDB, default /
 --config.interval CONFIG.INTERVAL
                       interval in seconds to pull metrics periodically, default 30.0DevelopmentExtra RequirementsSame inRequirementspoetryas build toolRunSetup python dependencies:poetryinstallStart openmldb exporterpoetryrunopenmldb-exporterPass in necessary flags afteropenmldb-exporter. Runpoetry run openmldb-exporter --helpto get the help info.CompatibilityOpenMLDB Exporter versionOpenMLDB supported versionExplaination>= 0.9.0>= 0.8.4OpenMLDB removed deploy response time in database since 0.8.4< 0.9.0>= 0.5.0, < 0.8.4Release History0.9.0FeaturesBREAKINGsupport OpenMLDB 0.8.4. OpenMLDB 0.8.4 removed deploy response time, please use openmldb-exporter >= 0.9.0. RefCompatibilityinfo aboveChoresupdate deps0.8.2Choresdeps: restrict OpenMLDB version < 0.8.40.8.1Featuresupdate openmldb-exporter docker imageChoresdoc and workflow updates0.8.0FeaturesUpgrade OpenMLDB SDK to v0.8improve test code0.7.1FeaturesUpgrade OpenMLDB SDK to v0.7Upgrade prometheus client to 0.160.6.0FeaturesDepends on OpenMLDB SDK v0.6