Skip to content

Commit

Permalink
sort imports
Browse files Browse the repository at this point in the history
Signed-off-by: Markus Blaschke <[email protected]>
  • Loading branch information
mblaschke committed Mar 13, 2022
1 parent 7c8c743 commit 4a07069
Show file tree
Hide file tree
Showing 9 changed files with 33 additions and 18 deletions.
3 changes: 2 additions & 1 deletion logger.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@ package main

import (
"fmt"
log "github.com/sirupsen/logrus"
"net/http"
"strings"

log "github.com/sirupsen/logrus"
)

func buildContextLoggerFromRequest(r *http.Request) *log.Entry {
Expand Down
16 changes: 9 additions & 7 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@ package main

import (
"fmt"
"net/http"
"os"
"path"
"runtime"
"strings"
"time"

"github.com/Azure/go-autorest/autorest"
"github.com/Azure/go-autorest/autorest/azure"
"github.com/Azure/go-autorest/autorest/azure/auth"
Expand All @@ -11,14 +18,9 @@ import (
"github.com/prometheus/client_golang/prometheus"
"github.com/prometheus/client_golang/prometheus/promhttp"
log "github.com/sirupsen/logrus"
"github.com/webdevops/azure-metrics-exporter/config"
"github.com/webdevops/go-prometheus-common/azuretracing"
"net/http"
"os"
"path"
"runtime"
"strings"
"time"

"github.com/webdevops/azure-metrics-exporter/config"
)

const (
Expand Down
4 changes: 3 additions & 1 deletion metrics/metrics.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
package metrics

import "github.com/prometheus/client_golang/prometheus"
import (
"github.com/prometheus/client_golang/prometheus"
)

const (
MetricHelpDefault = "Azure monitor insight metric"
Expand Down
3 changes: 2 additions & 1 deletion metrics/prober.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,9 @@ import (
"github.com/prometheus/client_golang/prometheus"
"github.com/remeh/sizedwaitgroup"
log "github.com/sirupsen/logrus"
"github.com/webdevops/azure-metrics-exporter/config"
"github.com/webdevops/go-prometheus-common/azuretracing"

"github.com/webdevops/azure-metrics-exporter/config"
)

const (
Expand Down
1 change: 1 addition & 0 deletions metrics/settings.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import (
"github.com/Azure/go-autorest/autorest/to"
iso8601 "github.com/ChannelMeter/iso8601duration"
log "github.com/sirupsen/logrus"

"github.com/webdevops/azure-metrics-exporter/config"
)

Expand Down
6 changes: 4 additions & 2 deletions probe_metrics_list.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,13 @@ import (
"context"
"crypto/sha1" // #nosec G505
"fmt"
"net/http"
"time"

"github.com/prometheus/client_golang/prometheus"
"github.com/prometheus/client_golang/prometheus/promhttp"

"github.com/webdevops/azure-metrics-exporter/metrics"
"net/http"
"time"
)

func probeMetricsListHandler(w http.ResponseWriter, r *http.Request) {
Expand Down
6 changes: 4 additions & 2 deletions probe_metrics_resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,13 @@ import (
"context"
"crypto/sha1" // #nosec G505
"fmt"
"net/http"
"time"

"github.com/prometheus/client_golang/prometheus"
"github.com/prometheus/client_golang/prometheus/promhttp"

"github.com/webdevops/azure-metrics-exporter/metrics"
"net/http"
"time"
)

func probeMetricsResourceHandler(w http.ResponseWriter, r *http.Request) {
Expand Down
6 changes: 4 additions & 2 deletions probe_metrics_resourcegraph.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,13 @@ import (
"context"
"crypto/sha1" // #nosec G505
"fmt"
"net/http"
"time"

"github.com/prometheus/client_golang/prometheus"
"github.com/prometheus/client_golang/prometheus/promhttp"

"github.com/webdevops/azure-metrics-exporter/metrics"
"net/http"
"time"
)

func probeMetricsResourceGraphHandler(w http.ResponseWriter, r *http.Request) {
Expand Down
6 changes: 4 additions & 2 deletions probe_metrics_scrape.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,13 @@ import (
"context"
"crypto/sha1" // #nosec G505
"fmt"
"net/http"
"time"

"github.com/prometheus/client_golang/prometheus"
"github.com/prometheus/client_golang/prometheus/promhttp"

"github.com/webdevops/azure-metrics-exporter/metrics"
"net/http"
"time"
)

func probeMetricsScrapeHandler(w http.ResponseWriter, r *http.Request) {
Expand Down

0 comments on commit 4a07069

Please sign in to comment.