Expected behavior (what you expected to happen): Metrics appended via $METRICS_PATH should appear in prometheus results.
Actual behavior (what actually happened): From v1.4.2+, metrics are added successfully (confirmed by logs), however they are not returned by prometheus.
Steps to reproduce:
Add hook and deploy
Inside the container run curl 127.0.0.1:9115/metrics
Environment:
Shell-operator version: v1.4.2+
Kubernetes version: v1.27.7
Installation type (kubectl apply, helm chart, etc.): Helm chart
Anything else we should know?: This is working as expected in ghcr.io/flant/shell-operator:v1.4.1, but seems broken in v1.4.2 and v1.4.3.
Additional information for debugging (if necessary):
Expected behavior (what you expected to happen): Metrics appended via
$METRICS_PATH
should appear in prometheus results.Actual behavior (what actually happened): From
v1.4.2+
, metrics are added successfully (confirmed by logs), however they are not returned by prometheus.Steps to reproduce:
curl 127.0.0.1:9115/metrics
Environment:
Anything else we should know?: This is working as expected in
ghcr.io/flant/shell-operator:v1.4.1
, but seems broken inv1.4.2
andv1.4.3
.Additional information for debugging (if necessary):
Hook script
Logs