File tree Expand file tree Collapse file tree 3 files changed +23
-30
lines changed
docker/prometheus/prometheus-libvirt-exporter Expand file tree Collapse file tree 3 files changed +23
-30
lines changed Original file line number Diff line number Diff line change @@ -5,41 +5,15 @@ LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build
5
5
6
6
{% import "macros.j2" as macros with context %}
7
7
8
- {{ macros.enable_extra_repos(['crb'] ) }}
9
-
10
8
{% block prometheus_libvirt_exporter_header %}{% endblock %}
11
9
12
- {% if base_package_type == 'rpm' %}
13
- {% set prometheus_libvirt_exporter_packages = [
14
- 'git' ,
15
- 'go' ,
16
- 'libvirt-devel' ,
17
- ] %}
18
- {% elif base_package_type == 'deb' %}
19
- {% set prometheus_libvirt_exporter_packages = [
20
- 'build-essential' ,
21
- 'git' ,
22
- 'golang-go' ,
23
- 'libvirt-dev' ,
24
- 'pkg-config' ,
25
- ] %}
26
- {% endif %}
27
-
28
10
{{ macros.install_packages(prometheus_libvirt_exporter_packages | customizable("packages")) }}
29
11
30
- {% block prometheus_libvirt_exporter_version %}
31
- ARG prometheus_libvirt_exporter_version=2.3.3
32
- ARG prometheus_libvirt_exporter_path=github.com/Tinkoff/libvirt-exporter
33
- {% endblock %}
34
-
35
12
{% block prometheus_libvirt_exporter_install %}
36
- ENV GOPATH=/build
37
- RUN go mod init libvirt-exporter \
38
- && cd ${GOPATH} \
39
- && go get -v ${prometheus_libvirt_exporter_path}@${prometheus_libvirt_exporter_version} \
40
- && go build ${prometheus_libvirt_exporter_path} \
41
- && mv /build/libvirt-exporter /opt \
42
- && rm -rf /build
13
+ ADD prometheus-libvirt-exporter-archive /prometheus-libvirt-exporter-source
14
+
15
+ RUN ln -s /prometheus-libvirt-exporter-source/* prometheus-libvirt-exporter \
16
+ && cp /prometheus-libvirt-exporter/prometheus-libvirt-exporter /opt/libvirt-exporter
43
17
44
18
{% endblock %}
45
19
Original file line number Diff line number Diff line change 309
309
'releases/download/v${version}/'
310
310
'elasticsearch_exporter'
311
311
'-${version}.linux-${debian_arch}.tar.gz' )},
312
+ 'prometheus-libvirt-exporter' : {
313
+ 'version' : '1.6.0' ,
314
+ 'type' : 'url' ,
315
+ 'sha256' : {
316
+ 'amd64' : '57f1e71ac5bd87f18a40b9089e9fb513dec44ced58328b3065879b279f967596' , # noqa: E501
317
+ 'arm64' : '8f474fbb515caf19fda92c839eece761738138c7c676d12d10aa0b8c29b3ef9d' }, # noqa: E501
318
+ 'location' : ('https://github.com/'
319
+ 'inovex/prometheus-libvirt-exporter/'
320
+ 'releases/download/v${version}/'
321
+ 'prometheus-libvirt-exporter'
322
+ '-${version}.linux-${debian_arch}.tar.gz' )},
312
323
'prometheus-memcached-exporter' : {
313
324
'version' : '0.14.2' ,
314
325
'type' : 'url' ,
Original file line number Diff line number Diff line change
1
+ ---
2
+ features :
3
+ - |
4
+ Replace Tinkoff/libvirt-exporter with inovex/prometheus-libvirt-exporter.
5
+ The Tinkoff/libvirt-exporter repository is archived. Latest
6
+ release in December 2022. The inovex/prometheus-libvirt-exporter repository is an
7
+ active fork of zhangjianweibj/prometheus-libvirt-exporter that will become
8
+ `a Prometheus community exporter in the future <https: //github.com/prometheus-community/community/issues/50>`_.
You can’t perform that action at this time.
0 commit comments