Skip to content

Commit

Permalink
v1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
majewsky committed Jan 4, 2023
1 parent 145b5e8 commit 4c07196
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# v1.0.0 (2023-01-04)

Initial release. We only used a rolling release up until this point.
8 changes: 8 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ package main

import (
"context"
"fmt"
"net/http"
"os"
"os/exec"
Expand All @@ -25,6 +26,7 @@ import (
"github.com/gorilla/mux"
"github.com/prometheus/client_golang/prometheus"
"github.com/prometheus/client_golang/prometheus/promhttp"
"github.com/sapcc/go-api-declarations/bininfo"
"github.com/sapcc/go-bits/httpapi"
"github.com/sapcc/go-bits/httpext"
"github.com/sapcc/go-bits/logg"
Expand All @@ -36,6 +38,7 @@ import (

var cli struct {
Debug bool `env:"DEBUG" help:"Enable debug mode."`
ShowVersion bool `name:"version" short:"v" help:"Report version string and exit."`
WebListenAddress string `name:"web.listen-address" default:"0.0.0.0:9520" help:"Exporter listening address."`

MaxFailures int `name:"collector.max-failures" default:"4" help:"Max allowed failures for a specific collector."`
Expand All @@ -57,6 +60,11 @@ var cli struct {

func main() {
kong.Parse(&cli)
if cli.ShowVersion {
fmt.Println(bininfo.VersionOr("unknown"))
return
}

reconCollectorEnabled := !(cli.NoReconMD5Collector) ||
cli.ReconDiskUsageCollector ||
cli.ReconDriveAuditCollector ||
Expand Down

0 comments on commit 4c07196

Please sign in to comment.