Fix arm-exporter proxy listen port

This commit is contained in:
CarlosEDP 2019-02-05 16:52:36 -02:00
parent 4902887205
commit 645ac5333f
3 changed files with 11 additions and 11 deletions

View File

@ -22,7 +22,7 @@ local kp = (import 'kube-prometheus/kube-prometheus.libsonnet') +
local proxy = local proxy =
container.new('kube-rbac-proxy', $._config.imageRepos.kubeRbacProxy + ':' + $._config.versions.kubeRbacProxy) + container.new('kube-rbac-proxy', $._config.imageRepos.kubeRbacProxy + ':' + $._config.versions.kubeRbacProxy) +
container.withArgs([ container.withArgs([
'--secure-listen-address=$(IP):9243', '--secure-listen-address=:9243',
'--upstream=http://127.0.0.1:9243/', '--upstream=http://127.0.0.1:9243/',
]) + ]) +
container.withPorts(containerPort.new(9243) + containerPort.withHostPort(9243) + containerPort.withName('https')) + container.withPorts(containerPort.new(9243) + containerPort.withHostPort(9243) + containerPort.withName('https')) +

View File

@ -25,7 +25,7 @@ spec:
cpu: 50m cpu: 50m
memory: 50Mi memory: 50Mi
- args: - args:
- --secure-listen-address=$(IP):9243 - --secure-listen-address=:9243
- --upstream=http://127.0.0.1:9243/ - --upstream=http://127.0.0.1:9243/
image: carlosedp/kube-rbac-proxy:v0.4.1 image: carlosedp/kube-rbac-proxy:v0.4.1
name: kube-rbac-proxy name: kube-rbac-proxy

View File

@ -6392,7 +6392,7 @@ items:
"editable": true, "editable": true,
"gnetId": 162, "gnetId": 162,
"graphTooltip": 1, "graphTooltip": 1,
"id": 13, "id": 7,
"links": [ "links": [
], ],
@ -7864,10 +7864,10 @@ items:
"steppedLine": false, "steppedLine": false,
"targets": [ "targets": [
{ {
"expr": "topk(10,sum(rate(container_network_transmit_bytes_total{name=\u007e\".+\"}[5m])) by (name))", "expr": "topk(10,sum(rate(container_network_transmit_bytes_total{pod_name=\u007e\".+\"}[5m])) by (pod_name))",
"format": "time_series", "format": "time_series",
"intervalFactor": 2, "intervalFactor": 2,
"legendFormat": "{{ name }}", "legendFormat": "{{ pod_name }}",
"refId": "A", "refId": "A",
"step": 240 "step": 240
}, },
@ -7893,7 +7893,7 @@ items:
"tooltip": { "tooltip": {
"msResolution": true, "msResolution": true,
"shared": true, "shared": true,
"sort": 1, "sort": 2,
"value_type": "cumulative" "value_type": "cumulative"
}, },
"transparent": false, "transparent": false,
@ -7985,19 +7985,19 @@ items:
"steppedLine": false, "steppedLine": false,
"targets": [ "targets": [
{ {
"expr": "topk(10,sum(rate(container_network_receive_bytes_total{name=\u007e\".+\"}[5m])) by (name))", "expr": "topk(10,sum(rate(container_network_receive_bytes_total{pod_name=\u007e\".+\"}[5m])) by (pod_name))",
"format": "time_series", "format": "time_series",
"intervalFactor": 2, "intervalFactor": 2,
"legendFormat": "{{name}}", "legendFormat": "{{pod_name}}",
"refId": "A", "refId": "A",
"step": 240 "step": 240
}, },
{ {
"expr": "- rate(container_network_transmit_bytes_total{name=\u007e\".+\"}[$interval])", "expr": "- rate(container_network_transmit_bytes_total{pod_name=\u007e\".+\"}[$interval])",
"format": "time_series", "format": "time_series",
"hide": true, "hide": true,
"intervalFactor": 2, "intervalFactor": 2,
"legendFormat": "{{name}}", "legendFormat": "{{pod_name}}",
"refId": "B", "refId": "B",
"step": 10 "step": 10
} }
@ -8014,7 +8014,7 @@ items:
"tooltip": { "tooltip": {
"msResolution": true, "msResolution": true,
"shared": true, "shared": true,
"sort": 1, "sort": 2,
"value_type": "cumulative" "value_type": "cumulative"
}, },
"transparent": false, "transparent": false,