Skip to content
Commits on Source (3)
......@@ -2,6 +2,14 @@
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
### [0.1.4](https://dev.solidev.net/solidev/stripmonitor/compare/v0.1.3...v0.1.4) (2021-12-06)
### Bug Fixes
* **helm:** add configmap sha256sum for pod metadata ([2bcf39e](https://dev.solidev.net/solidev/stripmonitor/commit/2bcf39e1288e31d5dd92fe841f600bc631c18980))
* **thresholds:** add checks for no match ([de9022f](https://dev.solidev.net/solidev/stripmonitor/commit/de9022fa75abd02c8648f69edcf7e1903bbcbec6))
### [0.1.3](https://dev.solidev.net/solidev/stripmonitor/compare/v0.1.2...v0.1.3) (2021-12-06)
......
0.1.3
\ No newline at end of file
0.1.4
\ No newline at end of file
......@@ -2,5 +2,5 @@ apiVersion: v2
name: stripmonitor
description: StripMonitor Helm chart
type: application
version: 0.1.3
appVersion: 0.1.3
version: 0.1.4
appVersion: 0.1.4
......@@ -13,11 +13,11 @@ spec:
{{- include "stripmonitor.selectorLabels" . | nindent 6 }}
template:
metadata:
{{- with .Values.podAnnotations }}
annotations:
{{- with .Values.podAnnotations }}
{{- toYaml . | nindent 8 }}
{{- end }}
checksum/config: {{ include (print $.Template.BasePath "/configmap.yaml") . | sha256sum }}
{{- end }}
labels:
{{- include "stripmonitor.selectorLabels" . | nindent 8 }}
spec:
......
......@@ -98,6 +98,17 @@ func (l *Led) processThresholds(m *Metric, res *checks.CheckResult) (*LedState,
}
}
}
// No label match, check for threshold present/absent
for _, tr := range trs {
if processThreshold(tr, nil) {
logrus.Debugf("Metric %s : found match for threshold %v", m.Name, tr)
return &LedState{
ColorName: tr.Color,
Title: l.Name + " " + m.Name,
Message: fmt.Sprintf("Current value : absent"),
}, nil
}
}
logrus.Debugf("Metric %s : no match", m.Name)
return &LedState{
ColorName: "black",
......