Fix grouping of import blocks

pull/1027/head
Fabian Reinartz 2015-08-22 09:42:45 +02:00
parent 6d0f58dcf3
commit 438e232c9b
25 changed files with 25 additions and 46 deletions

View File

@ -23,9 +23,8 @@ import (
"strings" "strings"
"time" "time"
"gopkg.in/yaml.v2"
"github.com/prometheus/common/model" "github.com/prometheus/common/model"
"gopkg.in/yaml.v2"
"github.com/prometheus/prometheus/util/strutil" "github.com/prometheus/prometheus/util/strutil"
) )

View File

@ -22,9 +22,8 @@ import (
"testing" "testing"
"time" "time"
"gopkg.in/yaml.v2"
"github.com/prometheus/common/model" "github.com/prometheus/common/model"
"gopkg.in/yaml.v2"
) )
var expectedConf = &Config{ var expectedConf = &Config{

View File

@ -23,9 +23,8 @@ import (
"time" "time"
"github.com/prometheus/client_golang/prometheus" "github.com/prometheus/client_golang/prometheus"
"github.com/prometheus/log"
"github.com/prometheus/common/model" "github.com/prometheus/common/model"
"github.com/prometheus/log"
"github.com/prometheus/prometheus/util/httputil" "github.com/prometheus/prometheus/util/httputil"
) )

View File

@ -17,9 +17,8 @@ import (
"errors" "errors"
"time" "time"
"golang.org/x/net/context"
"github.com/prometheus/common/model" "github.com/prometheus/common/model"
"golang.org/x/net/context"
"github.com/prometheus/prometheus/storage/local" "github.com/prometheus/prometheus/storage/local"
) )

View File

@ -22,11 +22,10 @@ import (
"strconv" "strconv"
"time" "time"
"github.com/prometheus/common/model"
"github.com/prometheus/log" "github.com/prometheus/log"
"golang.org/x/net/context" "golang.org/x/net/context"
"github.com/prometheus/common/model"
"github.com/prometheus/prometheus/storage/local" "github.com/prometheus/prometheus/storage/local"
"github.com/prometheus/prometheus/storage/metric" "github.com/prometheus/prometheus/storage/metric"
"github.com/prometheus/prometheus/util/stats" "github.com/prometheus/prometheus/util/stats"

View File

@ -20,9 +20,8 @@ import (
"strings" "strings"
"time" "time"
"github.com/prometheus/log"
"github.com/prometheus/common/model" "github.com/prometheus/common/model"
"github.com/prometheus/log"
"github.com/prometheus/prometheus/storage/metric" "github.com/prometheus/prometheus/storage/metric"
"github.com/prometheus/prometheus/util/strutil" "github.com/prometheus/prometheus/util/strutil"

View File

@ -22,6 +22,7 @@ import (
"time" "time"
"github.com/prometheus/common/model" "github.com/prometheus/common/model"
"github.com/prometheus/prometheus/storage/metric" "github.com/prometheus/prometheus/storage/metric"
) )

View File

@ -21,10 +21,9 @@ import (
"sync" "sync"
"time" "time"
"github.com/prometheus/log"
consul "github.com/hashicorp/consul/api" consul "github.com/hashicorp/consul/api"
"github.com/prometheus/common/model" "github.com/prometheus/common/model"
"github.com/prometheus/log"
"github.com/prometheus/prometheus/config" "github.com/prometheus/prometheus/config"
) )

View File

@ -22,9 +22,8 @@ import (
"github.com/miekg/dns" "github.com/miekg/dns"
"github.com/prometheus/client_golang/prometheus" "github.com/prometheus/client_golang/prometheus"
"github.com/prometheus/log"
"github.com/prometheus/common/model" "github.com/prometheus/common/model"
"github.com/prometheus/log"
"github.com/prometheus/prometheus/config" "github.com/prometheus/prometheus/config"
) )

View File

@ -21,12 +21,11 @@ import (
"strings" "strings"
"time" "time"
"github.com/prometheus/common/model"
"github.com/prometheus/log" "github.com/prometheus/log"
"gopkg.in/fsnotify.v1" "gopkg.in/fsnotify.v1"
"gopkg.in/yaml.v2" "gopkg.in/yaml.v2"
"github.com/prometheus/common/model"
"github.com/prometheus/prometheus/config" "github.com/prometheus/prometheus/config"
) )

View File

@ -27,6 +27,7 @@ import (
"github.com/prometheus/common/model" "github.com/prometheus/common/model"
"github.com/prometheus/log" "github.com/prometheus/log"
"github.com/prometheus/prometheus/config" "github.com/prometheus/prometheus/config"
"github.com/prometheus/prometheus/util/httputil" "github.com/prometheus/prometheus/util/httputil"
"github.com/prometheus/prometheus/util/strutil" "github.com/prometheus/prometheus/util/strutil"

View File

@ -21,11 +21,10 @@ import (
"sync" "sync"
"time" "time"
"github.com/prometheus/common/model"
"github.com/prometheus/log" "github.com/prometheus/log"
"github.com/samuel/go-zookeeper/zk" "github.com/samuel/go-zookeeper/zk"
"github.com/prometheus/common/model"
"github.com/prometheus/prometheus/config" "github.com/prometheus/prometheus/config"
"github.com/prometheus/prometheus/util/strutil" "github.com/prometheus/prometheus/util/strutil"
) )

View File

@ -18,9 +18,8 @@ import (
"strings" "strings"
"sync" "sync"
"github.com/prometheus/log"
"github.com/prometheus/common/model" "github.com/prometheus/common/model"
"github.com/prometheus/log"
"github.com/prometheus/prometheus/config" "github.com/prometheus/prometheus/config"
"github.com/prometheus/prometheus/retrieval/discovery" "github.com/prometheus/prometheus/retrieval/discovery"

View File

@ -24,9 +24,8 @@ import (
html_template "html/template" html_template "html/template"
"github.com/prometheus/client_golang/prometheus" "github.com/prometheus/client_golang/prometheus"
"github.com/prometheus/log"
"github.com/prometheus/common/model" "github.com/prometheus/common/model"
"github.com/prometheus/log"
"github.com/prometheus/prometheus/config" "github.com/prometheus/prometheus/config"
"github.com/prometheus/prometheus/notification" "github.com/prometheus/prometheus/notification"

View File

@ -21,9 +21,8 @@ import (
"strings" "strings"
"sync/atomic" "sync/atomic"
"github.com/prometheus/log"
"github.com/prometheus/common/model" "github.com/prometheus/common/model"
"github.com/prometheus/log"
"github.com/prometheus/prometheus/storage/local/codable" "github.com/prometheus/prometheus/storage/local/codable"
"github.com/prometheus/prometheus/storage/local/index" "github.com/prometheus/prometheus/storage/local/index"

View File

@ -17,7 +17,6 @@ import (
"time" "time"
"github.com/prometheus/client_golang/prometheus" "github.com/prometheus/client_golang/prometheus"
"github.com/prometheus/common/model" "github.com/prometheus/common/model"
"github.com/prometheus/prometheus/storage/metric" "github.com/prometheus/prometheus/storage/metric"

View File

@ -29,9 +29,8 @@ import (
"time" "time"
"github.com/prometheus/client_golang/prometheus" "github.com/prometheus/client_golang/prometheus"
"github.com/prometheus/log"
"github.com/prometheus/common/model" "github.com/prometheus/common/model"
"github.com/prometheus/log"
"github.com/prometheus/prometheus/storage/local/codable" "github.com/prometheus/prometheus/storage/local/codable"
"github.com/prometheus/prometheus/storage/local/index" "github.com/prometheus/prometheus/storage/local/index"

View File

@ -21,9 +21,8 @@ import (
"time" "time"
"github.com/prometheus/client_golang/prometheus" "github.com/prometheus/client_golang/prometheus"
"github.com/prometheus/log"
"github.com/prometheus/common/model" "github.com/prometheus/common/model"
"github.com/prometheus/log"
"github.com/prometheus/prometheus/storage/metric" "github.com/prometheus/prometheus/storage/metric"
) )

View File

@ -22,9 +22,8 @@ import (
"testing/quick" "testing/quick"
"time" "time"
"github.com/prometheus/log"
"github.com/prometheus/common/model" "github.com/prometheus/common/model"
"github.com/prometheus/log"
"github.com/prometheus/prometheus/storage/metric" "github.com/prometheus/prometheus/storage/metric"
"github.com/prometheus/prometheus/util/testutil" "github.com/prometheus/prometheus/util/testutil"

View File

@ -17,9 +17,8 @@ import (
"time" "time"
"github.com/prometheus/client_golang/prometheus" "github.com/prometheus/client_golang/prometheus"
"github.com/prometheus/log"
"github.com/prometheus/common/model" "github.com/prometheus/common/model"
"github.com/prometheus/log"
) )
const ( const (

View File

@ -16,12 +16,11 @@ package remote
import ( import (
"time" "time"
"github.com/prometheus/client_golang/prometheus"
"github.com/prometheus/common/model"
"github.com/prometheus/prometheus/storage/remote/influxdb" "github.com/prometheus/prometheus/storage/remote/influxdb"
"github.com/prometheus/prometheus/storage/remote/opentsdb" "github.com/prometheus/prometheus/storage/remote/opentsdb"
"github.com/prometheus/client_golang/prometheus"
"github.com/prometheus/common/model"
) )
// Storage collects multiple remote storage queues. // Storage collects multiple remote storage queues.

View File

@ -17,7 +17,6 @@ import (
"net/http" "net/http"
"github.com/prometheus/client_golang/prometheus" "github.com/prometheus/client_golang/prometheus"
"github.com/prometheus/common/model" "github.com/prometheus/common/model"
"github.com/prometheus/prometheus/promql" "github.com/prometheus/prometheus/promql"

View File

@ -24,9 +24,8 @@ import (
"strconv" "strconv"
"time" "time"
"github.com/prometheus/log"
"github.com/prometheus/common/model" "github.com/prometheus/common/model"
"github.com/prometheus/log"
"github.com/prometheus/prometheus/promql" "github.com/prometheus/prometheus/promql"
) )

View File

@ -10,9 +10,8 @@ import (
"time" "time"
"github.com/prometheus/client_golang/prometheus" "github.com/prometheus/client_golang/prometheus"
"golang.org/x/net/context"
"github.com/prometheus/common/model" "github.com/prometheus/common/model"
"golang.org/x/net/context"
"github.com/prometheus/prometheus/promql" "github.com/prometheus/prometheus/promql"
"github.com/prometheus/prometheus/storage/local" "github.com/prometheus/prometheus/storage/local"

View File

@ -12,9 +12,8 @@ import (
"testing" "testing"
"time" "time"
"golang.org/x/net/context"
"github.com/prometheus/common/model" "github.com/prometheus/common/model"
"golang.org/x/net/context"
"github.com/prometheus/prometheus/promql" "github.com/prometheus/prometheus/promql"
"github.com/prometheus/prometheus/storage/metric" "github.com/prometheus/prometheus/storage/metric"