Merge "Upgrade Prometheus to v3"

This commit is contained in:
Zuul
2025-04-24 08:36:06 +00:00
committed by Gerrit Code Review
3 changed files with 19 additions and 8 deletions

View File

@ -3,12 +3,12 @@ FROM {{ namespace }}/{{ image_prefix }}prometheus-base:{{ tag }}
LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build_date }}"
{% endblock %}
{% block prometheus_v2_server_header %}{% endblock %}
{% block prometheus_server_header %}{% endblock %}
{% import "macros.j2" as macros with context %}
{% block prometheus_v2_server_install %}
ADD prometheus-v2-server-archive /prometheus-server-source
{% block prometheus_server_install %}
ADD prometheus-server-archive /prometheus-server-source
RUN ln -s /prometheus-server-source/* prometheus-server \
&& mkdir -p /opt/prometheus \
@ -18,7 +18,7 @@ RUN ln -s /prometheus-server-source/* prometheus-server \
{{ macros.kolla_patch_sources() }}
{% block prometheus_v2_server_footer %}{% endblock %}
{% block prometheus_server_footer %}{% endblock %}
{% block footer %}{% endblock %}
USER prometheus

View File

@ -394,12 +394,12 @@ SOURCES = {
'releases/download/v${version}/'
'ovn-exporter'
'_${version}_linux_${debian_arch}.tar.gz')},
'prometheus-v2-server': {
'version': '2.55.1',
'prometheus-server': {
'version': '3.2.1',
'type': 'url',
'sha256': {
'amd64': '19700bdd42ec31ee162e4079ebda4cd0a44432df4daa637141bdbea4b1cd8927', # noqa: E501
'arm64': 'af43368bc6379c3c8bd5ac0b82208060bba22267bf01ad3ab5df56ad5725bf88'}, # noqa: E501
'amd64': 'a622e3007c9109a7f470e1433cbd29bf392596715cf7eea8b81b37fa9d26b7be', # noqa: E501
'arm64': 'f2dec3178f1181c1b795b275750d056e71ead13f7fbfe08b76834c4ec20b748e'}, # noqa: E501
'location': ('https://github.com/'
'prometheus/prometheus/'
'releases/download/v${version}/'

View File

@ -0,0 +1,11 @@
---
features:
- |
Updates Prometheus version to v3.2.1. Also, switches back to
the ``prometheus-server`` generic image name by removing the ``v2`` part.
upgrade:
- |
Prometheus will be upgraded from v2 to v3 - which introduces minor breaking
changes. Make sure there's version 2.5.5 or later running before attempting
an upgrade. Read the official migration guide for more details:
https://prometheus.io/docs/prometheus/3.0/migration/.