File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -36,7 +36,11 @@ export PROM_PASS=xxxx
3636
3737## Bitwarden feature
3838
39- Start the programm with ` -bw ` .
39+ Start the programm with ` -bw ` or set env var
40+
41+ ```
42+ export CLUSTERCHECK_BW=1
43+ ```
4044
4145In this version the programm expect an item on a Bitwarden service containing username/password for HTTP Basic Auth on
4246Prometheus API
Original file line number Diff line number Diff line change @@ -231,8 +231,9 @@ func main() {
231231
232232 username := os .Getenv ("PROM_USER" )
233233 password := os .Getenv ("PROM_PASS" )
234+ clcBW := os .Getenv ("CLUSTERCHECK_BW" )
234235
235- if * bitwarden == true {
236+ if * bitwarden == true || clcBW != "" {
236237 // doing bitwarden stuff here to get prometheus credentials
237238 itemName := "Prometheus Agent RemoteWrite"
238239 jsonData , err := getBitwardenItemJSON (itemName )
@@ -298,7 +299,7 @@ func main() {
298299
299300 icon .TextSize = 32
300301 text := canvas .NewText (statusText , color .White )
301- text .TextSize = 24
302+ text .TextSize = 18
302303 text .Alignment = fyne .TextAlignLeading
303304
304305 metricLines = append (metricLines , container .NewHBox (icon , text ))
You can’t perform that action at this time.
0 commit comments