blob: 2916867a4eee33256c862cf23270a92df49a3808 [file] [log] [blame]
#!/bin/sh
# Copyright 2022-present Open Networking Foundation
#
# SPDX-License-Identifier: Apache-2.0
set -xe
IMGPATH={{ .Values.config.imagePath }}
{{- if .Values.config.coreDump.enabled }}
cp /sdcore/metrics /tmp/coredump/
{{- end }}
cd /metricfunc
cat config/metricscfg.conf
echo $PWD
GOTRACEBACK=crash /metricfunc/bin/metricfunc -metrics config/metricscfg.conf