【翻译】Prometheus 2.7.0 新特性

Prometheus 2.7.0 版本已发布,此版本恢复了 Docker 文件设置,引入了基于大小的块保留策略,并对 PromQL 添加了子查询支持。此外,还改进了服务发现功能,增强了 API 和 UI 的 CORS 控制,以及进行了多项 bug 修复。

Prometheus 2.7.0 现在(2019.01.28)已经发布,在上个月的 2.6.0 之后又进行了一些修正和改进。

首先,在 2.6.0 中对的 Docker 文件更改被还原回 2.5.0 中的设置,因为它产生了意外的影响。如果您已经更新了 2.6.0 更改的设置,那么您可能希望使用 2.7.0 进行恢复。

TSDB 为 blocks 添加了实验性 size-based 的保留,time-based 的保留也适用。我还对某些选择器进行了性能改进,虽然这并不是普罗米修斯的技术性变化,但 tsdbutil 现在有了一个 analyze 子命令,可以帮助确定哪些内容占用了空间并造成了混乱。

PromQL 添加了子查询支持,因此对于特殊查询,您不再需要遵循 PromQL 中的组合范围向量函数。除了其他每个规则组指标外,现在还有一个rule_group_rules_loaded指标。

对于服务发现,Azure现在可以进行托管身份验证,还可以获得租户和订阅ID元数据。OpenStack现在支持应用程序凭据。Consul added service 标记地址元数据 ,Consul gained servic 标记地址元数据 。

在API/UI方面,现在可以控制允许哪些CORS源。

还有许多改进、bug修复和其他更改,可以查看 release notes 来获取更多的信息。

原文链接

#异步相关依赖 aiofiles==24.1.0 aiohappyeyeballs==2.4.6 aiohttp==3.11.12 aioprometheus==23.12.0 aiosignal==1.3.2 async-timeout==4.0.3 frozenlist==1.5.0 multidict==6.1.0 yarl==1.18.3 #数据处理与可视化 altair==4.2.2 contourpy==1.3.1 cycler==0.12.1 matplotlib==3.10.0 numpy==1.24.4 pandas==1.5.3 pillow==10.4.0 pyparsing==3.2.1 scipy==1.15.3 seaborn==0.13.2 tabulate==0.9.0 #Web 框架与接口 anyio==4.8.0 fastapi==0.109.2 fastapi-mcp==0.3.4 fastjsonschema==2.21.1 h11==0.14.0 httpcore==1.0.7 httptools==0.6.4 httpx==0.27.2 httpx-sse==0.4.0 pydantic==2.7.4 pydantic_core==2.18.4 pydantic-extra-types==2.10.2 pydantic-settings==2.9.1 starlette>=0.36.3,<0.37.0 sse-starlette==1.8.2 uvicorn==0.34.0 websockets==14.2 #LangChain 生态(100% 无冲突,Python 3.10 验证通过) #核心调整:降低 langchain 主版本至 0.2.16,同步匹配子库版本,避免 core 版本交叉冲突 langchain==0.2.16 # 降至 0.2.16(依赖 core≥0.2.36<0.3.0,兼容范围更广) langchain-community==0.2.18 # 与 langchain==0.2.16 匹配,依赖 core≥0.2.36<0.3.0 langchain-core==0.2.43 # 保持 0.2.x 最高稳定版,同时满足所有子库要求 langchain-experimental==0.0.64 # 降至 0.0.64(0.0.65 依赖更高 core,0.0.64 兼容 core≥0.2.36) langchain-openai==0.2.4 # 降至 0.2.4(依赖 core≥0.2.36<0.3.0,与 core==0.2.43 完美兼容) langchain-text-splitters==0.2.3 # 降至 0.2.3(0.2.4 依赖 core≥0.2.43,此处保持版本统一) langchainhub==0.1.19 # 无 core 版本冲突,保持不变 langsmith==0.1.147 # 无 core 版本冲突,保持不变 #文档处理与解析 beautifulsoup4==4.13.3 docx2txt==0.8 et_xmlfile==2.0.0 favicon==0.7.0 filetype==1.2.0 lxml==5.3.1 markdown-it-py==3.0.0 markdownify==0.14.1 markdownlit==0.0.7 openpyxl==3.1.4 pydub==0.25.1 PyMuPDF==1.23.26 PyMuPDFb==1.23.22 pypdf==5.3.0 python-docx==1.1.2 soupsieve==2.6 unstructured==0.11.8 unstructured-client==0.25.9 #模型与推理相关(适配 Python 3.10) faiss-cpu==1.7.4 huggingface-hub==0.32.1 modelscope==1.18.0 onnxruntime==1.15.1 openai==1.61.1 safetensors==0.5.3 tiktoken==0.8.0 torch==2.7.0 torchvision==0.22.0 xinference-client==1.6.0 xoscar==0.7.2 #数据库与存储 PyMySQL==1.1.1 pyarrow==19.0.0 SQLAlchemy==2.0.38 #工具类与辅助依赖(Python 3.10 兼容) annotated-types==0.7.0 backoff==2.2.1 backports.tarfile==1.2.0 bcrypt==4.3.0 blinker==1.9.0 Brotli==1.1.0 build==1.2.2.post1 CacheControl==0.14.2 cachetools==5.5.1 certifi==2025.1.31 cffi==1.17.1 chardet==5.2.0 charset-normalizer==3.4.1 cleo==2.1.0 click==8.1.8 cloudpickle==3.1.1 colorama==0.4.6 coloredlogs==15.0.1 crashtest==0.4.1 cryptography==44.0.0 dataclasses-json==0.6.7 deepdiff==8.2.0 deprecation==2.1.0 distlib==0.3.9 distro==1.9.0 dnspython==2.7.0 dulwich==0.22.7 ecdsa==0.19.1 elastic-transport==8.17.0 elasticsearch==8.4.3 email_validator==2.2.0 emoji==2.14.1 entrypoints==0.4 exceptiongroup==1.2.2 Faker==36.1.0 ffmpy==0.5.0 filelock==3.17.0 flatbuffers==25.2.10 fonttools==4.56.0 fsspec==2025.5.1 gitdb==4.0.12 GitPython==3.1.44 greenlet==3.1.1 groovy==0.1.2 h2==4.2.0 hpack==4.1.0 htbuilder==0.9.0 humanfriendly==10.0 hyperframe==6.1.0 idna==3.10 importlib_metadata==8.6.1 installer==0.7.0 itsdangerous==2.2.0 jaraco.classes==3.4.0 jaraco.context==6.0.1 jaraco.functools==4.1.0 jieba==0.42.1 Jinja2==3.1.5 jiter==0.8.2 joblib==1.4.2 jsonpatch==1.33 jsonpath-python==1.0.6 jsonpointer==3.0.0 jsonschema==4.23.0 jsonschema-specifications==2024.10.1 keyring==25.6.0 kiwisolver==1.4.8 langdetect==1.0.9 loguru==0.7.3 Markdown==3.7 MarkupSafe==3.0.2 marshmallow==3.26.1 mcp==1.9.0 mdurl==0.1.2 memoization==0.4.0 more-itertools==10.6.0 mpmath==1.3.0 msgpack==1.1.0 mypy-extensions==1.0.0 nest-asyncio==1.6.0 networkx==3.1 nltk==3.8.1 numexpr==2.10.2 nvidia-ml-py==12.575.51 opencv-python==4.10.0.84 orderly-set==5.3.0 orjson==3.10.15 packaging==23.2 passlib==1.7.4 pathlib==1.0.1 pika==1.3.2 pip==25.0 pkginfo==1.12.0 platformdirs==4.3.6 poetry==2.0.1 poetry-core==2.0.1 prometheus_client==0.21.1 propcache==0.2.1 protobuf==4.25.6 psutil==7.0.0 pyahocorasick==2.1.0 pyasn1==0.4.8 pyclipper==1.3.0.post6 pycparser==2.22 pydeck==0.9.1 Pygments==2.19.1 PyJWT==2.8.0 pymdown-extensions==10.14.3 pynvml==12.0.0 pypandoc==1.15 pyproject_hooks==1.2.0 pyreadline3==3.5.4 python-dateutil==2.9.0.post0 python-decouple==3.8 python-dotenv==1.0.1 python-iso639==2025.2.8 python-jose==3.4.0 python-magic==0.4.27 python-multipart==0.0.20 pytz==2025.1 PyYAML==6.0.2 quantile-python==1.1 rank-bm25==0.2.2 RapidFuzz==3.12.1 rapidocr-onnxruntime==1.3.25 referencing==0.36.2 regex==2024.11.6 requests==2.31.0 requests-toolbelt==1.0.0 rich==13.9.4 rpds-py==0.22.0 rsa==4.9.1 ruamel.yaml==0.18.6 ruamel.yaml.clib==0.2.12 ruff==0.11.11 semantic-version==2.10.0 setproctitle==1.3.6 setuptools==75.8.0 shapely==2.0.7 shellingham==1.5.4 simplejson==3.19.3 six==1.17.0 smmap==5.0.2 sniffio==1.3.1 socksio==1.0.0 st-annotated-text==4.0.2 streamlit==1.34.0 streamlit-aggrid==1.0.5 streamlit-antd-components==0.3.1 streamlit-camera-input-live==0.2.0 streamlit-card==1.0.2 streamlit-chatbox==1.1.8 streamlit-embedcode==0.1.2 streamlit-extras==0.4.2 streamlit-faker==0.0.3 streamlit-feedback==0.1.4 streamlit-image-coordinates==0.1.9 streamlit-keyup==0.3.0 streamlit_modal==0.1.0 streamlit-option-menu==0.3.12 streamlit-paste-button==0.1.2 streamlit-toggle-switch==1.0.2 streamlit-vertical-slider==2.5.5 strsimpy==0.2.1 sympy==1.13.3 tblib==3.1.0 tenacity==8.5.0 toml==0.10.2 tomli==2.2.1 tomlkit==0.13.2 toolz==1.0.0 tornado==6.4.2 tqdm==4.67.1 trove-classifiers==2025.1.15.22 typer==0.15.4 types-requests==2.32.0.20241016 typing_extensions==4.12.2 typing-inspect==0.9.0 typing-inspection==0.4.0 tzdata==2025.1 ujson==5.10.0 urllib3==2.3.0 validators==0.34.0 virtualenv==20.29.2 watchdog==6.0.0 watchfiles==1.0.4 win32_setctime==1.2.0 wrapt==1.17.2 zipp==3.21.0 以上依赖 出现不兼容 环境Python 3.10.0 liunx
09-11
(base) liuze@OpenStack-Compute:~$ pip list Package Version Build ----------------------------- -------------------- ----- absl-py 2.3.1 acvl-utils 0.2 aiohttp 3.8.1 aiosignal 1.2.0 alabaster 0.7.12 anaconda-client 1.9.0 anaconda-navigator 2.1.4 anaconda-project 0.10.2 anyio 3.5.0 appdirs 1.4.4 argon2-cffi 21.3.0 argon2-cffi-bindings 21.2.0 arrow 1.2.2 astroid 2.6.6 astropy 5.0.4 asttokens 2.0.5 async-timeout 4.0.1 atomicwrites 1.4.0 attrs 21.4.0 Automat 20.2.0 autopep8 1.5.7 Babel 2.9.1 backcall 0.2.0 backports.functools-lru-cache 1.6.4 backports.tarfile 1.2.0 backports.tempfile 1.0 backports.weakref 1.0.post1 batchgenerators 0.25.1 batchgeneratorsv2 0.3.0 bcrypt 3.2.0 beautifulsoup4 4.11.1 binaryornot 0.4.4 bitarray 2.4.1 bkcharts 0.2 black 19.10b0 bleach 4.1.0 blessed 1.20.0 blosc2 2.5.1 bokeh 2.4.2 boto3 1.21.32 botocore 1.24.32 Bottleneck 1.3.4 brotlipy 0.7.0 cachetools 4.2.2 causal-conv1d 1.0.0 certifi 2021.10.8 cffi 1.15.0 chardet 4.0.0 charset-normalizer 2.0.4 click 8.0.4 cloudpickle 2.0.0 clyent 1.2.2 cmake 4.0.3 colorama 0.4.4 colorcet 2.0.6 conda 4.12.0 conda-build 3.21.8 conda-content-trust 0+unknown conda-pack 0.6.0 conda-package-handling 1.8.1 conda-repo-cli 1.0.4 conda-token 0.3.0 conda-verify 3.4.2 connected-components-3d 3.24.0 constantly 15.1.0 contextlib2 21.6.0 cookiecutter 1.7.3 cryptography 3.4.8 cssselect 1.1.0 cycler 0.11.0 Cython 0.29.28 cytoolz 0.11.0 daal 2021.4.0 daal4py 2021.5.0 dask 2022.2.1 datashader 0.13.0 datashape 0.5.4 debugpy 1.5.1 decorator 5.1.1 defusedxml 0.7.1 dicom2nifti 2.4.11 diff-match-patch 20200713 distributed 2022.2.1 docopt 0.6.2 docutils 0.17.1 dynamic-network-architectures 0.2 einops 0.8.1 entrypoints 0.4 et-xmlfile 1.1.0 executing 0.8.3 fastjsonschema 2.15.1 fft-conv-pytorch 1.2.0 filelock 3.6.0 flake8 3.9.2 Flask 1.1.2 fonttools 4.25.0 frozenlist 1.2.0 fsspec 2025.7.0 future 0.18.2 gensim 4.1.2 glob2 0.7 gmpy2 2.1.2 google-api-core 1.25.1 google-auth 1.33.0 google-cloud-core 1.7.1 google-cloud-storage 1.31.0 google-crc32c 1.1.2 google-resumable-media 1.3.1 googleapis-common-protos 1.53.0 gpustat 1.1 graphviz 0.21 greenlet 1.1.1 grpcio 1.42.0 h5py 3.6.0 HeapDict 1.0.1 hf-xet 1.1.5 holoviews 1.14.8 huggingface-hub 0.34.3 hvplot 0.7.3 hyperlink 21.0.0 idna 3.3 imagecodecs 2021.8.26 imageio 2.37.0 imagesize 1.3.0 importlib-metadata 4.11.3 incremental 21.3.0 inflection 0.5.1 iniconfig 1.1.1 intake 0.6.5 intervaltree 3.1.0 ipykernel 6.9.1 ipython 8.2.0 ipython-genutils 0.2.0 ipywidgets 7.6.5 isort 5.9.3 itemadapter 0.3.0 itemloaders 1.0.4 itsdangerous 2.0.1 jdcal 1.4.1 jedi 0.18.1 jeepney 0.7.1 Jinja2 2.11.3 jinja2-time 0.2.0 jmespath 0.10.0 joblib 1.1.0 json5 0.9.6 jsonpickle 0.9.6 jsonschema 4.4.0 jupyter 1.0.0 jupyter-client 6.1.12 jupyter-console 6.4.0 jupyter-core 4.9.2 jupyter-server 1.13.5 jupyterlab 3.3.2 jupyterlab-pygments 0.1.2 jupyterlab-server 2.10.3 jupyterlab-widgets 1.0.0 keyring 23.4.0 kiwisolver 1.3.2 lazy_loader 0.4 lazy-object-proxy 1.6.0 libarchive-c 2.9 linecache2 1.0.0 lit 18.1.8 llvmlite 0.43.0 locket 0.2.1 lxml 4.8.0 mamba-ssm 1.0.1 Markdown 3.3.4 MarkupSafe 2.0.1 matplotlib 3.5.1 matplotlib-inline 0.1.2 mccabe 0.6.1 MedPy 0.4.0 mistune 0.8.4 mkl-fft 1.3.1 mkl-random 1.2.2 mkl-service 2.4.0 ml-collections 0.1.1 mock 4.0.3 mpmath 1.2.1 msgpack 1.0.2 multidict 5.2.0 multipledispatch 0.6.0 munch 2.5.0 munkres 1.1.4 mypy-extensions 0.4.3 navigator-updater 0.2.1 nbclassic 0.3.5 nbclient 0.5.13 nbconvert 6.4.4 nbformat 5.3.0 ndindex 1.10.0 nest-asyncio 1.5.5 networkx 3.2.1 nibabel 2.5.1 ninja 1.11.1.4 nltk 3.7 nnunetv2 2.3 nose 1.3.7 notebook 6.4.8 numba 0.60.0 numexpr 2.8.1 numpy 1.23.5 numpydoc 1.2 nvidia-cublas-cu11 11.10.3.66 nvidia-cublas-cu12 12.4.5.8 nvidia-cuda-cupti-cu11 11.7.101 nvidia-cuda-cupti-cu12 12.4.127 nvidia-cuda-nvrtc-cu11 11.7.99 2 nvidia-cuda-nvrtc-cu12 12.4.127 nvidia-cuda-runtime-cu11 11.7.99 nvidia-cuda-runtime-cu12 12.4.127 nvidia-cudnn-cu11 8.5.0.96 2 nvidia-cudnn-cu12 9.1.0.70 nvidia-cufft-cu11 10.9.0.58 nvidia-cufft-cu12 11.2.1.3 nvidia-curand-cu11 10.2.10.91 nvidia-curand-cu12 10.3.5.147 nvidia-cusolver-cu11 11.4.0.1 2 nvidia-cusolver-cu12 11.6.1.9 nvidia-cusparse-cu11 11.7.4.91 nvidia-cusparse-cu12 12.3.1.170 nvidia-cusparselt-cu12 0.6.2 nvidia-ml-py 11.525.112 nvidia-nccl-cu11 2.14.3 nvidia-nccl-cu12 2.21.5 nvidia-nvjitlink-cu12 12.4.127 nvidia-nvtx-cu11 11.7.91 nvidia-nvtx-cu12 12.4.127 objprint 0.2.3 olefile 0.46 opencv-python 4.11.0.86 openpyxl 3.0.9 packaging 21.3 pandas 1.4.2 pandocfilters 1.5.0 panel 0.13.0 param 1.12.0 parsel 1.6.0 parso 0.8.3 partd 1.2.0 pathlib 1.0.1 pathspec 0.7.0 patsy 0.5.2 pep8 1.7.1 pexpect 4.8.0 pickleshare 0.7.5 Pillow 9.5.0 pip 25.1 pkginfo 1.8.2 plotly 5.6.0 pluggy 1.0.0 poyo 0.5.0 prometheus-client 0.13.1 prompt-toolkit 3.0.20 Protego 0.1.16 protobuf 6.31.1 psutil 5.8.0 ptyprocess 0.7.0 pure-eval 0.2.2 py 1.11.0 py-cpuinfo 9.0.0 pyasn1 0.4.8 pyasn1-modules 0.2.8 pycodestyle 2.7.0 pycosat 0.6.3 pycparser 2.21 pyct 0.4.6 pycurl 7.44.1 pydicom 2.4.4 PyDispatcher 2.0.5 pydocstyle 6.1.1 pyerfa 2.0.0 pyflakes 2.3.1 Pygments 2.11.2 PyHamcrest 2.0.2 PyJWT 2.1.0 pylint 2.9.6 pyls-spyder 0.4.0 pyodbc 4.0.32 pyOpenSSL 21.0.0 pyparsing 3.0.4 PyQt5 5.12.3 PyQt5-Qt5 5.15.16 1 PyQt5_sip 12.17.0 PyQtWebEngine 5.12.1 pyrsistent 0.18.0 PySocks 1.7.1 pytest 7.1.1 python-dateutil 2.8.2 python-gdcm 3.0.24.1 python-lsp-black 1.0.0 python-lsp-jsonrpc 1.0.0 python-lsp-server 1.2.4 python-slugify 5.0.2 python-snappy 0.6.0 pytz 2021.3 pyviz-comms 2.0.2 PyWavelets 1.3.0 pyxdg 0.27 PyYAML 6.0 pyzmq 22.3.0 QDarkStyle 3.0.2 qstylizer 0.1.10 QtAwesome 1.0.3 qtconsole 5.3.0 QtPy 2.0.1 queuelib 1.5.0 regex 2022.3.15 requests 2.27.1 requests-file 1.5.1 rope 0.22.0 rsa 4.7.2 Rtree 0.9.7 ruamel.yaml 0.18.10 ruamel.yaml.clib 0.2.12 ruamel-yaml-conda 0.15.100 s3transfer 0.5.0 sacred 0.7.5 safetensors 0.5.3 scikit-image 0.24.0 scikit-learn 1.0.2 scikit-learn-intelex 2021.20220215.212715 scipy 1.13.1 Scrapy 2.6.1 seaborn 0.11.2 SecretStorage 3.3.1 Send2Trash 1.8.0 service-identity 18.1.0 setuptools 60.0.0 simpleitk 2.5.2 sip 4.19.13 six 1.16.0 smart-open 5.1.0 sniffio 1.2.0 snowballstemmer 2.2.0 sortedcollections 2.1.0 sortedcontainers 2.4.0 soupsieve 2.3.1 Sphinx 4.4.0 sphinxcontrib-applehelp 1.0.2 sphinxcontrib-devhelp 1.0.2 sphinxcontrib-htmlhelp 2.0.0 sphinxcontrib-jsmath 1.0.1 sphinxcontrib-qthelp 1.0.3 sphinxcontrib-serializinghtml 1.1.5 spyder 5.1.5 spyder-kernels 2.1.3 SQLAlchemy 1.4.32 stack-data 0.2.0 statsmodels 0.13.2 submitit 1.5.3 sympy 1.13.1 tables 3.6.1 tabulate 0.8.9 tbb 2021.13.1 tblib 1.7.0 tenacity 8.0.1 tensorboardX 2.6.4 termcolor 3.1.0 terminado 0.13.1 testpath 0.5.0 text-unidecode 1.3 textdistance 4.2.1 thop 0.1.1.post2209072238 threadpoolctl 2.2.0 three-merge 0.1.1 tifffile 2024.8.30 timm 0.4.12 tinycss 0.4 tldextract 3.2.0 tokenizers 0.21.4 toml 0.10.2 tomli 1.2.2 toolz 0.11.2 torch 2.0.0 torchvision 0.15.1 tornado 6.1 tqdm 4.64.0 traceback2 1.4.0 traitlets 5.1.1 transformers 4.54.1 triton 2.0.0 Twisted 22.2.0 typed-ast 1.4.3 typing_extensions 4.14.1 ujson 5.1.0 Unidecode 1.2.0 unittest2 1.1.0 urllib3 1.26.9 w3lib 1.21.0 watchdog 2.1.6 wcwidth 0.2.5 webencodings 0.5.1 websocket-client 0.58.0 Werkzeug 2.0.3 wheel 0.45.1 widgetsnbextension 3.5.2 wrapt 1.12.1 wurlitzer 3.0.2 xarray 0.20.1 xlrd 2.0.1 XlsxWriter 3.0.3 yacs 0.1.8 yapf 0.31.0 yarl 1.6.3 zict 2.0.0 zipp 3.7.0 zope.interface 5.4.0是否有和当前python3.10冲突的包
08-26
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值