correct pushgateway port

This commit is contained in:
Tobias Brunner 2020-02-16 20:01:03 +01:00
parent 8d0de141f0
commit 91db082199
3 changed files with 4 additions and 4 deletions

View file

@ -140,8 +140,8 @@
"subdir": "prometheus-pushgateway" "subdir": "prometheus-pushgateway"
} }
}, },
"version": "15e01d5677fc55b77a584f7d3e587fe9d7475a28", "version": "7bb93ca3ddf3b83f1fdfe95d9bad415b57d0fe4b",
"sum": "8Zwq/4wN2+ue2Vl4a+OwElAPfi5o6sD/0Wc2yWCS1eg=" "sum": "6nOJeHJExjYyTSovZvU6xbGjWS88oUfGnF1DAo+Q6tg="
}, },
{ {
"name": "promgrafonnet", "name": "promgrafonnet",

View file

@ -9,7 +9,7 @@ spec:
ports: ports:
- name: http - name: http
port: 9091 port: 9091
targetPort: http targetPort: metrics
selector: selector:
app: prometheus-pushgateway app: prometheus-pushgateway
type: ClusterIP type: ClusterIP

View file

@ -51,7 +51,7 @@ local k = import 'ksonnet/ksonnet.beta.4/k.libsonnet';
local service = k.core.v1.service; local service = k.core.v1.service;
local servicePort = k.core.v1.service.mixin.spec.portsType; local servicePort = k.core.v1.service.mixin.spec.portsType;
local pushgatewayPort = servicePort.newNamed('http', $._config.pushgateway.port, 'http'); local pushgatewayPort = servicePort.newNamed('http', $._config.pushgateway.port, 'metrics');
service.new($._config.pushgateway.name, $.pushgateway.deployment.spec.selector.matchLabels, pushgatewayPort) + service.new($._config.pushgateway.name, $.pushgateway.deployment.spec.selector.matchLabels, pushgatewayPort) +
service.mixin.metadata.withNamespace($._config.namespace) + service.mixin.metadata.withNamespace($._config.namespace) +