├── .bumpversion.cfg ├── .github └── workflows │ ├── release.yaml │ └── test.yaml ├── .gitignore ├── LICENSE ├── README.md ├── docs ├── admin1.png ├── debug-guide.md ├── metrics.txt └── redis-architecture.md ├── poetry.lock ├── prometheus_http_sd ├── __init__.py ├── app.py ├── cli.py ├── config.py ├── const.py ├── decorator.py ├── dispather.py ├── exceptions.py ├── mem_perf.py ├── metrics.py ├── redis │ ├── __init__.py │ ├── cache.py │ ├── queue.py │ ├── server.py │ └── worker.py ├── sd.py ├── targets.py ├── templates │ └── admin.html ├── validate.py └── version.py ├── pyproject.toml └── test ├── app_root ├── a.yaml ├── cached_target │ └── a.py ├── echo_target │ ├── sleep2_target.py │ ├── sleep_target.py │ └── target.py └── error │ └── error.py ├── conftest.py ├── test_app.py ├── test_generator ├── root │ ├── empty │ │ └── node.json │ ├── json │ │ └── target.json │ └── yaml │ │ └── target.yaml └── test_generator.py ├── test_ignore ├── good_root │ ├── .hidden.json │ ├── .shoud_ignore │ │ └── a.txt │ ├── .should_ignore_file.txt │ ├── _utils │ │ └── utils.py │ ├── gateway │ │ ├── nginx │ │ │ ├── edge.py │ │ │ └── targets.json │ │ └── targets.json │ ├── queue │ │ ├── _queue_utils │ │ │ └── utils.py │ │ ├── kafka.py │ │ └── zookeeper.json │ └── victoriametrics.json └── test_genrator_ignore.py ├── test_timeout ├── test_selector.py └── test_timeout.py └── test_validate ├── root_dir ├── bad.yaml ├── good.yaml ├── py_should_run_test_func │ └── a.py └── should_ignore │ ├── a.yaml │ └── b.yaml └── test_validate.py /.bumpversion.cfg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laixintao/prometheus-http-sd/HEAD/.bumpversion.cfg -------------------------------------------------------------------------------- /.github/workflows/release.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laixintao/prometheus-http-sd/HEAD/.github/workflows/release.yaml -------------------------------------------------------------------------------- /.github/workflows/test.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laixintao/prometheus-http-sd/HEAD/.github/workflows/test.yaml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laixintao/prometheus-http-sd/HEAD/.gitignore -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laixintao/prometheus-http-sd/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laixintao/prometheus-http-sd/HEAD/README.md -------------------------------------------------------------------------------- /docs/admin1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laixintao/prometheus-http-sd/HEAD/docs/admin1.png -------------------------------------------------------------------------------- /docs/debug-guide.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laixintao/prometheus-http-sd/HEAD/docs/debug-guide.md -------------------------------------------------------------------------------- /docs/metrics.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laixintao/prometheus-http-sd/HEAD/docs/metrics.txt -------------------------------------------------------------------------------- /docs/redis-architecture.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laixintao/prometheus-http-sd/HEAD/docs/redis-architecture.md -------------------------------------------------------------------------------- /poetry.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laixintao/prometheus-http-sd/HEAD/poetry.lock -------------------------------------------------------------------------------- /prometheus_http_sd/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /prometheus_http_sd/app.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laixintao/prometheus-http-sd/HEAD/prometheus_http_sd/app.py -------------------------------------------------------------------------------- /prometheus_http_sd/cli.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laixintao/prometheus-http-sd/HEAD/prometheus_http_sd/cli.py -------------------------------------------------------------------------------- /prometheus_http_sd/config.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laixintao/prometheus-http-sd/HEAD/prometheus_http_sd/config.py -------------------------------------------------------------------------------- /prometheus_http_sd/const.py: -------------------------------------------------------------------------------- 1 | TEST_ENV_NAME = "PROMETHEUS_HTTP_SD_IS_TEST" 2 | -------------------------------------------------------------------------------- /prometheus_http_sd/decorator.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laixintao/prometheus-http-sd/HEAD/prometheus_http_sd/decorator.py -------------------------------------------------------------------------------- /prometheus_http_sd/dispather.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laixintao/prometheus-http-sd/HEAD/prometheus_http_sd/dispather.py -------------------------------------------------------------------------------- /prometheus_http_sd/exceptions.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laixintao/prometheus-http-sd/HEAD/prometheus_http_sd/exceptions.py -------------------------------------------------------------------------------- /prometheus_http_sd/mem_perf.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laixintao/prometheus-http-sd/HEAD/prometheus_http_sd/mem_perf.py -------------------------------------------------------------------------------- /prometheus_http_sd/metrics.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laixintao/prometheus-http-sd/HEAD/prometheus_http_sd/metrics.py -------------------------------------------------------------------------------- /prometheus_http_sd/redis/__init__.py: -------------------------------------------------------------------------------- 1 | """Redis integration modules for caching and job queuing.""" 2 | -------------------------------------------------------------------------------- /prometheus_http_sd/redis/cache.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laixintao/prometheus-http-sd/HEAD/prometheus_http_sd/redis/cache.py -------------------------------------------------------------------------------- /prometheus_http_sd/redis/queue.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laixintao/prometheus-http-sd/HEAD/prometheus_http_sd/redis/queue.py -------------------------------------------------------------------------------- /prometheus_http_sd/redis/server.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laixintao/prometheus-http-sd/HEAD/prometheus_http_sd/redis/server.py -------------------------------------------------------------------------------- /prometheus_http_sd/redis/worker.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laixintao/prometheus-http-sd/HEAD/prometheus_http_sd/redis/worker.py -------------------------------------------------------------------------------- /prometheus_http_sd/sd.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laixintao/prometheus-http-sd/HEAD/prometheus_http_sd/sd.py -------------------------------------------------------------------------------- /prometheus_http_sd/targets.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laixintao/prometheus-http-sd/HEAD/prometheus_http_sd/targets.py -------------------------------------------------------------------------------- /prometheus_http_sd/templates/admin.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laixintao/prometheus-http-sd/HEAD/prometheus_http_sd/templates/admin.html -------------------------------------------------------------------------------- /prometheus_http_sd/validate.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laixintao/prometheus-http-sd/HEAD/prometheus_http_sd/validate.py -------------------------------------------------------------------------------- /prometheus_http_sd/version.py: -------------------------------------------------------------------------------- 1 | VERSION = "3.0.2" 2 | -------------------------------------------------------------------------------- /pyproject.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laixintao/prometheus-http-sd/HEAD/pyproject.toml -------------------------------------------------------------------------------- /test/app_root/a.yaml: -------------------------------------------------------------------------------- 1 | [] 2 | -------------------------------------------------------------------------------- /test/app_root/cached_target/a.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laixintao/prometheus-http-sd/HEAD/test/app_root/cached_target/a.py -------------------------------------------------------------------------------- /test/app_root/echo_target/sleep2_target.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laixintao/prometheus-http-sd/HEAD/test/app_root/echo_target/sleep2_target.py -------------------------------------------------------------------------------- /test/app_root/echo_target/sleep_target.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laixintao/prometheus-http-sd/HEAD/test/app_root/echo_target/sleep_target.py -------------------------------------------------------------------------------- /test/app_root/echo_target/target.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laixintao/prometheus-http-sd/HEAD/test/app_root/echo_target/target.py -------------------------------------------------------------------------------- /test/app_root/error/error.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laixintao/prometheus-http-sd/HEAD/test/app_root/error/error.py -------------------------------------------------------------------------------- /test/conftest.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laixintao/prometheus-http-sd/HEAD/test/conftest.py -------------------------------------------------------------------------------- /test/test_app.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laixintao/prometheus-http-sd/HEAD/test/test_app.py -------------------------------------------------------------------------------- /test/test_generator/root/empty/node.json: -------------------------------------------------------------------------------- 1 | [] 2 | -------------------------------------------------------------------------------- /test/test_generator/root/json/target.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laixintao/prometheus-http-sd/HEAD/test/test_generator/root/json/target.json -------------------------------------------------------------------------------- /test/test_generator/root/yaml/target.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laixintao/prometheus-http-sd/HEAD/test/test_generator/root/yaml/target.yaml -------------------------------------------------------------------------------- /test/test_generator/test_generator.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laixintao/prometheus-http-sd/HEAD/test/test_generator/test_generator.py -------------------------------------------------------------------------------- /test/test_ignore/good_root/.hidden.json: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/test_ignore/good_root/.shoud_ignore/a.txt: -------------------------------------------------------------------------------- 1 | foo 2 | -------------------------------------------------------------------------------- /test/test_ignore/good_root/.should_ignore_file.txt: -------------------------------------------------------------------------------- 1 | bar 2 | -------------------------------------------------------------------------------- /test/test_ignore/good_root/_utils/utils.py: -------------------------------------------------------------------------------- 1 | def foo(): 2 | return "bar" 3 | -------------------------------------------------------------------------------- /test/test_ignore/good_root/gateway/nginx/edge.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laixintao/prometheus-http-sd/HEAD/test/test_ignore/good_root/gateway/nginx/edge.py -------------------------------------------------------------------------------- /test/test_ignore/good_root/gateway/nginx/targets.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laixintao/prometheus-http-sd/HEAD/test/test_ignore/good_root/gateway/nginx/targets.json -------------------------------------------------------------------------------- /test/test_ignore/good_root/gateway/targets.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laixintao/prometheus-http-sd/HEAD/test/test_ignore/good_root/gateway/targets.json -------------------------------------------------------------------------------- /test/test_ignore/good_root/queue/_queue_utils/utils.py: -------------------------------------------------------------------------------- 1 | def hello(): 2 | return "world" 3 | -------------------------------------------------------------------------------- /test/test_ignore/good_root/queue/kafka.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laixintao/prometheus-http-sd/HEAD/test/test_ignore/good_root/queue/kafka.py -------------------------------------------------------------------------------- /test/test_ignore/good_root/queue/zookeeper.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laixintao/prometheus-http-sd/HEAD/test/test_ignore/good_root/queue/zookeeper.json -------------------------------------------------------------------------------- /test/test_ignore/good_root/victoriametrics.json: -------------------------------------------------------------------------------- 1 | [] 2 | -------------------------------------------------------------------------------- /test/test_ignore/test_genrator_ignore.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laixintao/prometheus-http-sd/HEAD/test/test_ignore/test_genrator_ignore.py -------------------------------------------------------------------------------- /test/test_timeout/test_selector.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laixintao/prometheus-http-sd/HEAD/test/test_timeout/test_selector.py -------------------------------------------------------------------------------- /test/test_timeout/test_timeout.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laixintao/prometheus-http-sd/HEAD/test/test_timeout/test_timeout.py -------------------------------------------------------------------------------- /test/test_validate/root_dir/bad.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laixintao/prometheus-http-sd/HEAD/test/test_validate/root_dir/bad.yaml -------------------------------------------------------------------------------- /test/test_validate/root_dir/good.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laixintao/prometheus-http-sd/HEAD/test/test_validate/root_dir/good.yaml -------------------------------------------------------------------------------- /test/test_validate/root_dir/py_should_run_test_func/a.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laixintao/prometheus-http-sd/HEAD/test/test_validate/root_dir/py_should_run_test_func/a.py -------------------------------------------------------------------------------- /test/test_validate/root_dir/should_ignore/a.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | - labels: 3 | a:b 4 | -------------------------------------------------------------------------------- /test/test_validate/root_dir/should_ignore/b.yaml: -------------------------------------------------------------------------------- 1 | abc 2 | -------------------------------------------------------------------------------- /test/test_validate/test_validate.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laixintao/prometheus-http-sd/HEAD/test/test_validate/test_validate.py --------------------------------------------------------------------------------