Skip to content

Commit

Permalink
fix: metrics values in uwsgi (MAPCO-4009) (#57)
Browse files Browse the repository at this point in the history
* fix: metrics values in uwsgi

* fix: metrics helm indentation
  • Loading branch information
nitzanmorr authored Feb 28, 2024
1 parent fe84a50 commit 7b6ddc0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 11 deletions.
3 changes: 2 additions & 1 deletion helm/config/mapProxyUwsgi.ini
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
[uwsgi]
{{- $metrics := (include "common.metrics.merged" .) | fromYaml }}
; based on https://github.com/kartoza/docker-mapproxy/blob/master/build_data/uwsgi.ini
chdir = /mapproxy
pyargv = /mapproxy.yaml
Expand Down Expand Up @@ -40,7 +41,7 @@ chmod-socket = 664
uid = 1000
gid = 0
http-socket = :{{ .Values.mapproxy.uwsgi.httpSocket }}
{{ if .Values.mapproxy.env.metrics.enabled }}
{{ if $metrics.enabled }}
stats = :{{ .Values.mapproxy.uwsgi.statsServer.stats }}
stats-http = true
stats-min = {{ .Values.mapproxy.uwsgi.statsServer.statsMinify }}
Expand Down
15 changes: 5 additions & 10 deletions helm/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -81,11 +81,11 @@ tracing:
url: ""
# samplingRatioDenominator: 1000
metrics:
enabled: false
url: ""
prometheus:
scrape: false
port: 9117
enabled: false
url: ""
prometheus:
scrape: false
port: 9117

# add pod annotations
# example:
Expand Down Expand Up @@ -172,11 +172,6 @@ mapproxy:
logPrettyPrintEnabled: false
responseCompressionEnabled: true
requestPayloadLimit: 1mb
metrics:
prometheus:
scrape: false
port: 9117
enabled: false

initContainer:
image:
Expand Down

0 comments on commit 7b6ddc0

Please sign in to comment.