Skip to content

Commit

Permalink
[prometheus-json-exporter] open service configuration (prometheus-com…
Browse files Browse the repository at this point in the history
…munity#2414)

* [prometheus-json-exporter] open service configuration

Signed-off-by: gaoxiang <hs@38658>

* [prometheus-json-exporter] open service configuration

Signed-off-by: gaoxiang <hs@38658>

Signed-off-by: gaoxiang <hs@38658>
  • Loading branch information
gxg001 authored and Matiasmct committed May 16, 2023
1 parent f13b49f commit bcff35e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion charts/prometheus-json-exporter/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.3.0
version: 0.4.0

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down
4 changes: 2 additions & 2 deletions charts/prometheus-json-exporter/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ spec:
type: {{ .Values.service.type }}
ports:
- port: {{ .Values.service.port }}
targetPort: http
targetPort: {{ .Values.service.targetPort }}
protocol: TCP
name: http
name: {{ .Values.service.name }}
selector:
{{- include "prometheus-json-exporter.selectorLabels" . | nindent 4 }}
2 changes: 2 additions & 0 deletions charts/prometheus-json-exporter/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ securityContext: {}
service:
type: ClusterIP
port: 7979
targetPort: http
name: http

serviceMonitor:
## If true, a ServiceMonitor CRD is created for a prometheus operator
Expand Down

0 comments on commit bcff35e

Please sign in to comment.