File tree 4 files changed +92
-4
lines changed
charts/prometheus-openstack-exporter
4 files changed +92
-4
lines changed Original file line number Diff line number Diff line change 1
1
---
2
2
apiVersion : v1
3
3
name : prometheus-openstack-exporter
4
- version : 0.4.2
5
- appVersion : v1.2 .0
4
+ version : 0.4.3
5
+ appVersion : v1.6 .0
Original file line number Diff line number Diff line change 23
23
args :
24
24
- --endpoint-type
25
25
- {{ .Values.endpoint_type }}
26
+ {{- if .Values.multicloud.enabled }}
27
+ - --multi-cloud
28
+ {{- else }}
26
29
- {{ .Values.cloud }}
30
+ {{- end }}
27
31
{{- with .Values.extraArgs }}
28
32
{{- . | toYaml | nindent 8 }}
29
33
{{- end }}
Original file line number Diff line number Diff line change
1
+ {{- if .Values.multicloud.enabled }}
2
+ {{- $fullname := include "openstack-exporter.fullname" . }}
3
+ {{- $labels := include "openstack-exporter.labels" . }}
4
+ {{- range .Values.multicloud.clouds }}
5
+ ---
6
+ apiVersion : monitoring.coreos.com/v1
7
+ kind : ServiceMonitor
8
+ metadata :
9
+ name : {{ $fullname }}-{{ .name }}
10
+ namespace : {{ $.Release.Namespace }}
11
+ labels :
12
+ {{- $labels | indent 4 }}
13
+ spec :
14
+ endpoints :
15
+ - interval : {{ $.Values.serviceMonitor.interval }}
16
+ scrapeTimeout : {{ $.Values.serviceMonitor.scrapeTimeout }}
17
+ port : metrics
18
+ path : /probe
19
+ params :
20
+ cloud :
21
+ - {{ .name }}
22
+ include_services :
23
+ - {{ join "," .services }}
24
+ relabelings :
25
+ - action : replace
26
+ regex : (.*)
27
+ replacement : {{ .name }}
28
+ targetLabel : instance
29
+ jobLabel : jobLabel
30
+ namespaceSelector :
31
+ any : true
32
+ selector :
33
+ matchLabels :
34
+ {{- $labels | indent 6 }}
35
+ {{- end }}
36
+ {{- if .Values.multicloud.selfmonitor }}
37
+ ---
38
+ apiVersion : monitoring.coreos.com/v1
39
+ kind : ServiceMonitor
40
+ metadata :
41
+ name : {{ include "openstack-exporter.fullname" . }}
42
+ namespace : {{ .Release.Namespace }}
43
+ labels :
44
+ {{- include "openstack-exporter.labels" . | indent 4 }}
45
+ spec :
46
+ endpoints :
47
+ - interval : {{ .Values.serviceMonitor.interval }}
48
+ scrapeTimeout : {{ .Values.serviceMonitor.scrapeTimeout }}
49
+ port : metrics
50
+ jobLabel : jobLabel
51
+ namespaceSelector :
52
+ any : true
53
+ selector :
54
+ matchLabels :
55
+ {{- include "openstack-exporter.labels" . | indent 6 }}
56
+ {{- end }}
57
+ {{- else }}
1
58
---
2
59
apiVersion : monitoring.coreos.com/v1
3
60
kind : ServiceMonitor
21
78
any : true
22
79
selector :
23
80
matchLabels :
24
- {{ include "openstack-exporter.labels" . | indent 6 }}
81
+ {{ include "openstack-exporter.labels" . | indent 6 }}
82
+ {{- end }}
Original file line number Diff line number Diff line change 1
1
---
2
2
# Choose endpoint type (this will override the value of clouds.yaml)
3
3
endpoint_type : internal
4
+ # Ignored when multicloud.enabled: true
4
5
cloud : default
5
6
6
7
replicaCount : 1
7
8
8
9
image :
9
10
repository : quay.io/niedbalski/openstack-exporter-linux-amd64
10
- tag : v1.2 .0
11
+ tag : v1.6 .0
11
12
pullPolicy : Always
12
13
13
14
serviceMonitor :
14
15
interval : 1m
15
16
scrapeTimeout : 30s
16
17
18
+ multicloud :
19
+ # Enable multicloud (i.e. /probe?... targets)
20
+ # Doc: https://github.com/openstack-exporter/openstack-exporter#description
21
+ enabled : true
22
+ # Monitor the exporter's internal metrics (i.e. /metrics)
23
+ selfmonitor : true
24
+ # List of clouds to scrape, and the services to scrape from them
25
+ clouds :
26
+ - name : cloud1
27
+ services :
28
+ - volume
29
+ - name : cloud2
30
+ services :
31
+ - volume
32
+ - image
33
+ - identity
34
+ - compute
35
+ - network
36
+ - placement # NB this needs the openstack-exporter release > 1.4.0
37
+
17
38
# Add extra args to the exporter.
18
39
# Doc: https://github.com/openstack-exporter/openstack-exporter#command-line-options
19
40
# extraArgs:
@@ -43,3 +64,8 @@ clouds_yaml_config: |
43
64
project_domain_name: 'Default'
44
65
user_domain_name: 'Default'
45
66
auth_url: 'http://your-url-here:5000/v3'
67
+ # In case of multicloud.enabled
68
+ # cloud1:
69
+ # ...
70
+ # cloud2:
71
+ # ...
You can’t perform that action at this time.
0 commit comments