diff --git a/monitoring/jsonnetfile.lock.json b/monitoring/jsonnetfile.lock.json index a896b98..f3848ac 100644 --- a/monitoring/jsonnetfile.lock.json +++ b/monitoring/jsonnetfile.lock.json @@ -140,8 +140,8 @@ "subdir": "prometheus-pushgateway" } }, - "version": "15e01d5677fc55b77a584f7d3e587fe9d7475a28", - "sum": "8Zwq/4wN2+ue2Vl4a+OwElAPfi5o6sD/0Wc2yWCS1eg=" + "version": "7bb93ca3ddf3b83f1fdfe95d9bad415b57d0fe4b", + "sum": "6nOJeHJExjYyTSovZvU6xbGjWS88oUfGnF1DAo+Q6tg=" }, { "name": "promgrafonnet", diff --git a/monitoring/manifests/prometheus-pushgateway-service.yaml b/monitoring/manifests/prometheus-pushgateway-service.yaml index 02edde4..8ce6797 100644 --- a/monitoring/manifests/prometheus-pushgateway-service.yaml +++ b/monitoring/manifests/prometheus-pushgateway-service.yaml @@ -9,7 +9,7 @@ spec: ports: - name: http port: 9091 - targetPort: http + targetPort: metrics selector: app: prometheus-pushgateway type: ClusterIP diff --git a/monitoring/vendor/prometheus-pushgateway/pushgateway.libsonnet b/monitoring/vendor/prometheus-pushgateway/pushgateway.libsonnet index 121ae2d..1b18e70 100644 --- a/monitoring/vendor/prometheus-pushgateway/pushgateway.libsonnet +++ b/monitoring/vendor/prometheus-pushgateway/pushgateway.libsonnet @@ -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) +