aboutsummaryrefslogtreecommitdiff
path: root/docker/prometheus
AgeCommit message (Collapse)AuthorFilesLines
2026-07-06Migrate to pyproject.tomlMichal Nasiadka15-340/+0
[tool.setuptools.data-files] does not support recursive directory installation. The old setup.cfg [files] worked because PBR's FilesConfig.expand_globs() used os.walk() to expand docker/*, but this hook is not triggered by the pbr.build PEP-517 backend. Move docker/ into kolla/ and use [tool.setuptools.package-data] instead. Update kolla_worker._get_images_dir() to check the kolla package directory first so both editable and regular installs work. Change-Id: I4fc452c03740ef22ebbb4e8d0d86c4f4783e2d09 Signed-off-by: Michal Nasiadka <mnasiadka@gmail.com>
2026-06-24kolla-build: fix build-date LABEL invalidating Docker layer cacheMichal Nasiadka14-14/+14
The build-date label was rendered into a LABEL instruction on line 3 of every Dockerfile template, immediately after FROM. Because Docker invalidates the cache for a changed instruction and all subsequent layers, a date change caused a full rebuild of every image on each new calendar day, even when nothing else had changed. Fix this by removing build-date from the Dockerfile templates and applying it as a --label argument at build time via image.labels. Labels passed on the build command line are not part of the Dockerfile cache key, so the date is still recorded in the image metadata without affecting layer caching. Change-Id: I8ef0d85bab1a999a4d09f7cbf0c088ca00fdcf77 Signed-off-by: Michal Nasiadka <mnasiadka@gmail.com>
2026-04-24Switch to binary release of OpenStack Network exporterDoug Szumski1-29/+8
We no longer need to build this from source: aharivel has kindly responded to our request to create a release: https://github.com/openstack-k8s-operators/openstack-network-exporter/releases Needed-By: I35b3bb10aec18a9377515e8c04d2542e712c0f12 Change-Id: Id30cab4e4bbac470f33354870fd941c3ea17815c Signed-off-by: Doug Szumski <doug@stackhpc.com>
2026-04-13Add Prometheus network exporterDoug Szumski1-0/+45
This exporter comes from https://github.com/openstack-k8s-operators and will replace the existing OVN exporter which was archived at the end of 2024. It can gather metrics from both OVN and OVS based OpenStack clouds. Change-Id: Idb070d5e5469abd472481f7e19614ee2a78c85d0 Signed-off-by: Doug Szumski <doug@stackhpc.com>
2026-03-25Prometheus: add valkey exporter imagePiotr Milewski1-0/+25
Adds a new prometheus-valkey-exporter image to support monitoring of Valkey instances. Change-Id: Id0ad47301e48fc4e2cb1f93865a5c5d58f521467 Signed-off-by: Piotr Milewski <vurmil@gmail.com>
2025-06-06Remove the OVN exporter for PrometheusDoug Szumski1-22/+0
Since this exporter is no longer developed, and is not used in Kolla Ansible, remove it immediately. A replacement has been proposed in change #951971. Change-Id: Ie47aed221d04bbb2b50ccfbd7c398e6ab6022442
2025-04-22Upgrade Prometheus to v3Piotr Parczewski1-4/+4
Needed-by: https://review.opendev.org/c/openstack/kolla-ansible/+/945611 Change-Id: I4113976db743d3c5c4ff62f2876e224888f05a36
2024-11-15Add mechanism for patching files in containersMichal Arbet13-0/+43
This patch adds a way to patch files in a Docker image built by Kolla. This is very useful for several reasons, specifically: - Custom modifications - The stable branch of some library has a fix but no pip package has been released - Eliminates the need to package your own pip packages - Eliminates the need to invent your own versioning to prevent upstream versioning - Eliminates the need to manage a pip server - In other words, it eliminates the need to get a wheel into the image and install it manually using any method not previously mentioned It is also highly desirable because, although Kolla can replace the source for a service with a custom URL for a tarball or its own Git repo, it cannot do this for dependencies pulled from pip. I would also like to point out that this is a feature with its own code path and works only if the user "inserts" a patch into the folder patches/docker-image/something.patch and creates an analogous series file for patch source code. Simply said, this code will never interfere with the upstream build process since this feature is not intended for use in upstream. It is rather meant for downstream users who know what they are doing. Now they just have an option to patch their images. Everything works on all layers of the Docker image and stores a report of applied patches which can then be seen in /etc. This mechanism is similar as debian patch quilt. Change-Id: I61d0790c5d4d070b7ea9e8c99c0a76ff5d22bf9d
2024-09-02Merge "Drop prometheus-msteams container images"Zuul1-19/+0
2024-08-27Remove incorrect renoBartosz Bezak1-4/+0
The cAdvisor update change [1] mistakenly added a reno to the wrong folder. Moving it back to the correct folder would accidentally add it to the master branch. Therefore, the reno is being removed. [1] https://review.opendev.org/c/openstack/kolla/+/704018 Change-Id: I876f3c88c5bcd3c0a7c776796e9870c8512f90e2
2024-08-23Drop prometheus-msteams container imagesBartosz Bezak1-19/+0
The prometheus-msteams project is no longer maintained [1]. As a result we are removing its associated container images from our repository. Users are encouraged to switch to the native Prometheus Alertmanager integration with Microsoft Teams [2], which offers ongoing support and features. [1] https://github.com/prometheus-msteams/prometheus-msteams/issues/343 [2] https://prometheus.io/docs/alerting/latest/configuration/#msteams_config Change-Id: I66421b14668722607b58865a2ad100204fd387f7
2024-08-07Fix build of prometheus-ovn-exporterMichal Arbet1-1/+1
This patch fixed build of prometheus-ovn-exporter when building with --image-name-prefix option. Closes-Bug: #2076249 Change-Id: I5ba67d6e4bbe1b6d6caa842715b56720a027dc76
2024-04-17prometheus: use inovex/prometheus-libvirt-exporterChristian Berendt1-30/+4
The Tinkoff/libvirt-exporter is archived. Latest release in December 2022. The inovex/prometheus-libvirt-exporter is an active fork that will most probably become a prometheus community exporter in the future [1]. Unfortunately this exporter is not 100% compatible with Tinkoff exporter that we are using currently [2]. [1]: https://github.com/prometheus-community/community/issues/50 [2]: https://github.com/inovex/prometheus-libvirt-exporter/issues/22 Change-Id: Icc8a3651d601ab45d448c9d252ca6155219d21cf
2024-02-21Move curl sources to sources.pyMichal Nasiadka12-137/+48
Move most curl sources to sources.py, so it can be automatically updated in future. This also makes overriding the versions/locations/sha256 easier. Change-Id: Ib3497fe96162ae190e5c113cacaaa3ef8334f590
2024-02-15Remove the Prometheus HAProxy exporter imageDoug Szumski1-23/+0
- The source code is no longer maintained [1] - HAProxy provides its own Prometheus metrics source [2] - In Kolla Ansible, we have merged support for using the built in metrics source [3] For these reasons, particularly the first, we should remove it immediately. [1] https://github.com/prometheus/haproxy_exporter [2] https://www.haproxy.com/blog/haproxy-exposes-a-prometheus-metrics-endpoint [3] https://review.opendev.org/c/openstack/kolla-ansible/+/877118 Change-Id: Ia30e0fc367841df3726562b57b57df0f6fbb3a81
2023-11-24Update Prometheus services to latest releasesBartosz Bezak12-18/+18
blackbox_exporter 0.22.0 -> 0.24.0 elasticsearch_exporter 1.5.0 -> 1.6.0 haproxy_exporter 0.13.0 -> 0.15.0 memcached_exporter 0.10.0 -> 0.13.0 mysqld_exporter 0.14.0 -> 0.15.0 node_exporter 1.4.0 -> 1.7.0 ovn_exporter 1.0.6 -> 1.0.7 prometheus 2.38.0 -> 2.48.0 prometheus_alertmanager 0.24.0 -> 0.26.0 prometheus_cadvisor 0.45.0 -> 0.47.2 prometheus_mtail v3.0.0-rc50 -> v3.0.0-rc52 prometheus_msteams 1.5.1 -> 1.5.2 Change-Id: If3f6ff059bedba5c92d97442d77e44aeecef71c4
2023-02-21prometheus: update ovn-exporter version to 1.0.6Matthew N Heler1-8/+8
Change-Id: I1c5af7cd496803dcabed2fe14a20be00c61e54e6
2022-12-22Change libvirt-exporter repo to TinkoffMikhail Kraynov1-2/+2
libvirt-exporter repo has been moved from AlexZzz (https://github.com/AlexZzz/libvirt-exporter) to Tinkoff organization and is maintained by this organization now. The old link redirects to the new one. This commit prevents unnecessary redirect and adds clarity. Change-Id: Ie810149de353e12655994ba9ef371c85dea7f7a8
2022-10-14Bump node_exporter to 1.4.0Pierre Riteau1-1/+7
Change-Id: I947a0b9155fea18a7781f694dbeafc49033fef8e
2022-09-27Move to CentOS Stream 9Marcin Juszkiewicz1-0/+2
OpenStack 'zed' requires Python 3.8+ so RHEL 8 family has to go. This changeset moves to CentOS Stream 9 while move to RockyLinux 9 is planned as final solution. CI moved to CentOS Stream 9 nodes. Depends-on: https://review.opendev.org/c/openstack/kolla-ansible/+/839715 Change-Id: I113b9984294cf8663d3fc0c8840320e1d40ea731
2022-09-02prometheus-ovn-exporter: use sha256sumMarcin Juszkiewicz1-1/+1
shasum requires 30M of Perl on CentOS 9 while sha256sum is already present. Change-Id: I9372ebc643fced497ab01480f4c7cd6caa65c282
2022-09-01Merge "prometheus: Add OVN exporter"Zuul1-0/+36
2022-08-30Bump prometheus services to latest versionwuchunyang11-43/+30
blackbox_exporter -> 0.22.0 prometheus_cadvisor -> 0.45.0 elasticsearch_exporter -> 1.5.0 haproxy_exporter -> 0.13.0 prometheus_libvirt_exporter -> 2.3.2 memcached_exporter_version -> 0.10.0 prometheus_msteams -> 1.5.1 prometheus_mtail -> v3.0.0-rc50 mysqld_exporter -> 0.14.0 node_exporter -> 1.3.1 prometheus -> 2.38.0 Change-Id: I3452e8904992bfb977dcae4084a0d98aab82e221
2022-08-25prometheus: Add OVN exporterMichał Nasiadka1-0/+36
Change-Id: I2a1d97421f53e63bb2e8d93dcdbc9b738e39670d
2022-06-22Bump prometheus-openstack-exporter version to 1.6.0Pierre Riteau1-5/+5
Change-Id: I4bd581c3ea422e1c9a075a71721413d47fdbdfe4 Depends-On: https://review.opendev.org/c/openstack/kolla-ansible/+/828902
2022-05-06prometheus-libvirt-exporter: fix build with newer GoMarcin Juszkiewicz1-1/+3
I have no idea how Go works. This change make build happen. Change-Id: I09ea136c7354143f45f856d5e8d8ed1192879622
2022-04-26Bump up Alertmanager versionSven Kieske1-1/+1
Change-Id: I793e35ef347c9d44b4e870cd3ca1bd459e557623
2022-04-21flatten images a bitMarcin Juszkiewicz1-2/+2
As we have one type of images now some RUN calls could be merged so we will have less layers in resulting images. Change-Id: I5178c58fbd8c65efe825dc249c0f1368ef0fe8e0
2022-04-11Adjust permissions on _extend_start files.Tim Shearer1-1/+1
Explicitly set the permissions on the kolla-toolbox kolla_extend_start file. Also, since all extend_start files are sourced rather than executed, the executable bits are now cleared throughout the project. Change-Id: I5c2deb4a2e33575d57c852089f856a9acc6818d0
2022-04-11drop infra_image_prefixMarcin Juszkiewicz14-14/+14
We have one install_type only now so that infra stuff is not needed anymore. Change-Id: I60d50ba7699d46d001eaef365fb84b0ce8e9b262
2022-03-11Unify curl use (customisation options)Maksim Malchuk11-23/+34
This change adds and unifies an ability to override hardcoded URLs for air-gapped environments via the usual blocks mechanism. Also, this change replaces ENV with ARG instruction for the variables used only in building images, and uses bash variable expansion where it possible. This change is a continuation of the I46b77978926fc2b578a68d1aaa944b2198af0685 Change-Id: I1fbad333b1bc95484e6f4c5145d5936a0e2db84f Signed-off-by: Maksim Malchuk <maksim.malchuk@gmail.com>
2022-03-10Merge "Add prometheus-msteams image"Zuul1-0/+24
2022-02-18Merge "Add Prometheus libvirt exporter image"Zuul1-0/+45
2022-02-17Add Prometheus libvirt exporter imageDoug Szumski1-0/+45
This adds a libvirt exporter image for use with Prometheus. Partially-Implements: blueprint libvirt-exporter Change-Id: Ice2af99a323496d3821762851b663899d15f569a
2021-12-16Bump up Alertmanager versionPiotr Parczewski1-4/+7
Yoga deserves a newer version than one from 2019. Change-Id: Ib7b45ea6ca0a465ce075ac2f2a0e7b8006ee6190
2021-10-08Add prometheus-msteams imagePierre Riteau1-0/+24
This can be used to forward Prometheus Alertmanager notifications to Microsoft Teams. Change-Id: I57ebdf734c4bf38045ca8f837dc7066cdeb16131
2021-09-16Merge "Upgrade prometheus elasticsearch exporter to 1.2.1"Zuul1-1/+1
2021-08-05Remove Prometheus v1 imagePiotr Parczewski1-23/+0
Following deprecation in Wallaby cycle, it's now time to remove it. Change-Id: I551b99e9bd5224433bd0ebc64e07f0ce83595ef8
2021-08-04Upgrade prometheus elasticsearch exporter to 1.2.1Gaël THEROND (Fl1nt)1-1/+1
Fix a few metrics bugs such as: - [BUGFIX] Fixed elasticsearch 7.13 node stats metrics. - [BUGFIX] Fixed snapshot stats metrics for some snapshot repository types. - [BUGFIX] json parse error if the snapshot json contains failures. - [BUGFIX] Remove credentials from URL in clusterinfo metrics. Change-Id: Ia45dc49ecdb5b599f7d969a3db4ec28d2f774f73 Closes-bug: #1935015
2021-07-06Fix prometheus-elasticsearch-exporter container.Gaël THEROND (Fl1nt)1-1/+1
* Replace current URL with the proper target. Change-Id: I0bb8b2429906e698858f6b699e4c4d8bacc2dd74 Closes-Bug: #1934763
2021-06-22Bump up cAdvisor's versionPiotr Parczewski1-3/+7
Change-Id: I987ea163e4c4e331e0e2c136b7f55890dd9d469b
2021-05-19[Security] Fix open redirect in PrometheusPiotr Parczewski1-1/+1
Bump up Prometheus to the oldest non affected version as per security advisory [1]. [1] https://github.com/prometheus/prometheus/security/advisories/GHSA-vx57-7f4q-fpc7 Change-Id: I505b0645dc3331264c8fc6762df1c6cb8bb2f2ed
2021-03-04Revert "Fix error when github return 302"Michal Nasiadka11-11/+11
This reverts commit 61def281d077f88051d1b1a14dfdbfabac036c8c. Reason for revert: --location was already in curlrc and it was unified in change I46b77978926fc2b578a68d1aaa944b2198af0685 Change-Id: I066d747400ede30037ff324ad55430af7c35dc18
2021-03-02Fix error when github return 302Sergei Chekanov11-11/+11
-L for curl: If the server reports that the requested page has moved to a different location (indicated with a Location: header and a 3XX response code), this option will make curl redo the request on the new place It fixes build error for me: INFO:kolla.common.utils.prometheus-v2-server: ---> Running in 693fd4095c77 INFO:kolla.common.utils.prometheus-v2-server:curl (https://github.com/prometheus/prometheus/releases/download/v2.23.0/prometheus-2.23.0.linux-amd64.tar.gz): response: 302, time: 0.166583, size: 640 INFO:kolla.common.utils.prometheus-v2-server: INFO:kolla.common.utils.prometheus-v2-server:gzip: stdin: not in gzip format INFO:kolla.common.utils.prometheus-v2-server: INFO:kolla.common.utils.prometheus-v2-server:tar: Child returned status 1 INFO:kolla.common.utils.prometheus-v2-server:tar: Error is not recoverable: exiting now Change-Id: I095ca6f34cc7c7bca485e9ec019cc52aeb8e3ff4
2020-12-22Merge "Bump prometheus-openstack-exporter version to 1.3.0"Zuul1-1/+1
2020-12-17Bump prometheus-openstack-exporter version to 1.3.0Jorge Niedbalski1-1/+1
Change-Id: Ie54703e6ecf6a3332ef6f769fa500091068ea155 Signed-off-by: Jorge Niedbalski <jnr@metaklass.org>
2020-12-14Add secondary Prometheus imagePiotr Parczewski1-0/+23
Non-backward compatible version 2.x of Prometheus added. It is supposed to replace 1.x version. Change-Id: I42972ae890a88f01fc34b7775077d68e45ade68a
2020-12-02Unify curl optionsMichał Nasiadka11-11/+11
Currently we use couple of curl options throughout Dockerfiles, this change adds all common options to curlrc (-sSLf) and removes usage of those in Dockerfiles. Change-Id: I46b77978926fc2b578a68d1aaa944b2198af0685
2020-11-03Bump up openstack exporter to 1.2.0Michal Nasiadka1-1/+1
Change-Id: I19edf083c2f96098773d1198796e60cb8679eb4d
2020-07-09introduce 'infra_image_prefix' for infra imagesMarcin Juszkiewicz12-12/+12
Defaults to 'image_prefix' for now but shows which images gets their names changed soon. Change-Id: I0608e8f62f28d6667b4c8753c47553e4cbf75503