Skip to content

Commit

Permalink
Update ports used for Prometheus
Browse files Browse the repository at this point in the history
  • Loading branch information
sgayangi authored and tharindu1st committed Mar 6, 2024
1 parent c4be1ed commit 826c877
Show file tree
Hide file tree
Showing 12 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion common-controller/internal/config/default_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ var defaultConfig = &Config{
Metrics: metrics{
Enabled: false,
Type: "prometheus",
Port: 18010,
Port: 18006,
},
},
}
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ data:
metricsEnabled=true
metricsReporter="prometheus"
[ballerinax.prometheus]
port=18008
port=18006
{{if .Values.wso2.apk.metrics.configDSBalHost}}
host="{{ .Values.wso2.apk.metrics.configDSBalHost}}"
{{else}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@ spec:
- containerPort: 9443
protocol: "TCP"
{{ if and .Values.wso2.apk.metrics .Values.wso2.apk.metrics.enabled }}
- containerPort: 18008
- containerPort: 18006
protocol: "TCP"
- containerPort: 18009
- containerPort: 18007
protocol: "TCP"
{{ end }}
readinessProbe:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ spec:
- containerPort: 18003
protocol: TCP
{{ if and .Values.wso2.apk.metrics .Values.wso2.apk.metrics.enabled }}
- containerPort: 18010
- containerPort: 18006
protocol: "TCP"
{{ end }}
{{ include "apk-helm.deployment.resources" .Values.wso2.apk.dp.commonController.deployment.resources | indent 10 }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ data:
[commoncontroller.metrics]
enabled = {{.Values.wso2.apk.metrics.enabled}}
type = "{{.Values.wso2.apk.metrics.type| default "prometheus" }}"
port = 18010
port = 18006
{{ end}}
[commoncontroller.server]
label = "ratelimiter"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ spec:
- containerPort: 18002
protocol: "TCP"
{{- if and .Values.wso2.apk.metrics .Values.wso2.apk.metrics.enabled}}
- containerPort: 18007
- containerPort: 18006
protocol: "TCP"
{{- end }}
{{ include "apk-helm.deployment.resources" .Values.wso2.apk.dp.gatewayRuntime.deployment.enforcer.resources | indent 10 }}
Expand Down Expand Up @@ -92,7 +92,7 @@ spec:
value: admin
- name: JAVA_OPTS
{{- if and .Values.wso2.apk.metrics .Values.wso2.apk.metrics.enabled }}
value: -Dhttpclient.hostnameVerifier=AllowAll -Xms512m -Xmx512m -XX:MaxRAMFraction=2 -Dapk.jmx.metrics.enabled=true -javaagent:/home/wso2/lib/jmx_prometheus_javaagent-0.20.0.jar=18007:/tmp/metrics/prometheus-jmx-config-enforcer.yml
value: -Dhttpclient.hostnameVerifier=AllowAll -Xms512m -Xmx512m -XX:MaxRAMFraction=2 -Dapk.jmx.metrics.enabled=true -javaagent:/home/wso2/lib/jmx_prometheus_javaagent-0.20.0.jar=18006:/tmp/metrics/prometheus-jmx-config-enforcer.yml
{{- else }}
value: -Dhttpclient.hostnameVerifier=AllowAll -Xms512m -Xmx512m -XX:MaxRAMFraction=2
{{- end }}
Expand Down
2 changes: 1 addition & 1 deletion helm-charts/templates/idp/idp-ds/idp-ds-configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ data:
metricsEnabled=true
metricsReporter="prometheus"
[ballerinax.prometheus]
port=18011
port=18006
{{if .Values.wso2.apk.metrics.idpDSBalHost}}
host="{{ .Values.wso2.apk.metrics.idpDSBalHost}}"
{{else}}
Expand Down
4 changes: 2 additions & 2 deletions helm-charts/templates/idp/idp-ds/idp-ds-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,9 @@ spec:
- containerPort: 9443
protocol: "TCP"
{{ if and .Values.wso2.apk.metrics .Values.wso2.apk.metrics.enabled }}
- containerPort: 18011
- containerPort: 18006
protocol: "TCP"
- containerPort: 18012
- containerPort: 18007
protocol: "TCP"
{{ end }}
readinessProbe:
Expand Down
2 changes: 1 addition & 1 deletion idp/idp-domain-service/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ release {
unSnapshotVersion.finalizedBy ":ballerina:commit_toml_files"
afterReleaseBuild.dependsOn ":docker:docker_push"
task build{
dependsOn("docker:build")
dependsOn("docker:buildDockerImage")
}
build.configure {
dependsOn(":docker:build")
Expand Down
2 changes: 1 addition & 1 deletion idp/idp-domain-service/docker/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -59,4 +59,4 @@ task buildDockerImage{
buildDockerImage.configure{
mustRunAfter(":ballerina:build")
dependsOn(":ballerina:build")
}
}
2 changes: 1 addition & 1 deletion idp/idp-domain-service/docker/idp/idp.sh
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,6 @@ $JAVACMD \
$JAVA_OPTS \
-classpath "$CLASSPATH" \
-Djava.io.tmpdir="$IDP_HOME/tmp" \
-javaagent:/home/wso2apk/jmx_prometheus_javaagent-0.20.0.jar=18012:/tmp/metrics/prometheus-jmx-config-idpds.yml \
-javaagent:/home/wso2apk/lib/jmx_prometheus_javaagent-0.20.0.jar=18007:/tmp/metrics/prometheus-jmx-config-idpds.yml \
-jar idp_domain_service.jar $*
status=$?
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,6 @@ $JAVACMD \
$JAVA_OPTS \
-classpath "$CLASSPATH" \
-Djava.io.tmpdir="$RUNTIME_HOME/tmp" \
-javaagent:/home/wso2apk/lib/jmx_prometheus_javaagent-0.20.0.jar=18009:/tmp/metrics/prometheus-jmx-config-configds.yml \
-javaagent:/home/wso2apk/lib/jmx_prometheus_javaagent-0.20.0.jar=18007:/tmp/metrics/prometheus-jmx-config-configds.yml \
-jar config_deployer_service.jar $*
status=$?

0 comments on commit 826c877

Please sign in to comment.