Skip to content

Commit

Permalink
FIX: fix startup params and k8s health-check
Browse files Browse the repository at this point in the history
  • Loading branch information
ihatemodels committed May 21, 2024
1 parent d1fa1af commit 5cde7bd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 2 additions & 2 deletions deploy/k8s/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,11 @@ spec:
# e.g.: exporter comes up with _some_ metrics even if invalid API key...
livenessProbe:
httpGet:
path: /metrics
path: /
port: metrics-http
readinessProbe:
httpGet:
path: /metrics
path: /
port: metrics-http
# See main readme; some configuration options can be set via env-vars
##
Expand Down
4 changes: 0 additions & 4 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,6 @@ func main() {
collectorsSwitches := options.CollectorsSwitches()
collectorOptionFuncs := []collector.Option{}

// convert this to if statments to make it easier to read
// and to avoid the nested switch statements
// also, the switch statements are not needed here
//
if !collectorsSwitches.Unbound {
collectorOptionFuncs = append(collectorOptionFuncs, collector.WithoutUnboundCollector())
level.Info(logger).Log("msg", "unbound collector disabled")
Expand Down

0 comments on commit 5cde7bd

Please sign in to comment.