correct pushgateway port
This commit is contained in:
parent
8d0de141f0
commit
91db082199
|
@ -140,8 +140,8 @@
|
|||
"subdir": "prometheus-pushgateway"
|
||||
}
|
||||
},
|
||||
"version": "15e01d5677fc55b77a584f7d3e587fe9d7475a28",
|
||||
"sum": "8Zwq/4wN2+ue2Vl4a+OwElAPfi5o6sD/0Wc2yWCS1eg="
|
||||
"version": "7bb93ca3ddf3b83f1fdfe95d9bad415b57d0fe4b",
|
||||
"sum": "6nOJeHJExjYyTSovZvU6xbGjWS88oUfGnF1DAo+Q6tg="
|
||||
},
|
||||
{
|
||||
"name": "promgrafonnet",
|
||||
|
|
|
@ -9,7 +9,7 @@ spec:
|
|||
ports:
|
||||
- name: http
|
||||
port: 9091
|
||||
targetPort: http
|
||||
targetPort: metrics
|
||||
selector:
|
||||
app: prometheus-pushgateway
|
||||
type: ClusterIP
|
||||
|
|
|
@ -51,7 +51,7 @@ local k = import 'ksonnet/ksonnet.beta.4/k.libsonnet';
|
|||
local service = k.core.v1.service;
|
||||
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.mixin.metadata.withNamespace($._config.namespace) +
|
||||
|
|
Reference in a new issue