Merge branch 'master' of github.com:prometheus/prometheus

This commit is contained in:
Matt T. Proud 2013-01-27 19:37:14 +01:00
commit 567e2948d3
46 changed files with 91 additions and 91 deletions

View File

@ -3,8 +3,8 @@ package api
import ( import (
"code.google.com/p/gorest" "code.google.com/p/gorest"
"errors" "errors"
"github.com/matttproud/prometheus/rules" "github.com/prometheus/prometheus/rules"
"github.com/matttproud/prometheus/rules/ast" "github.com/prometheus/prometheus/rules/ast"
"sort" "sort"
"time" "time"
) )

View File

@ -3,7 +3,7 @@ package config
import ( import (
"errors" "errors"
"fmt" "fmt"
"github.com/matttproud/prometheus/model" "github.com/prometheus/prometheus/model"
"time" "time"
) )

View File

@ -2,7 +2,7 @@ package config
import ( import (
"fmt" "fmt"
"github.com/matttproud/prometheus/model" "github.com/prometheus/prometheus/model"
"log" "log"
"regexp" "regexp"
"strconv" "strconv"

View File

@ -14,12 +14,12 @@
package config package config
import ( import (
"testing" "testing"
) )
func TestLoadFromFile(t *testing.T) { func TestLoadFromFile(t *testing.T) {
_, err := LoadFromFile("file-does-not-exist.conf") _, err := LoadFromFile("file-does-not-exist.conf")
if err == nil { if err == nil {
t.Error(err) t.Error(err)
} }
} }

View File

@ -3,7 +3,7 @@
package config package config
import "fmt" import "fmt"
import "github.com/matttproud/prometheus/model" import "github.com/prometheus/prometheus/model"
//line parser.y:8 //line parser.y:8
type yySymType struct { type yySymType struct {

View File

@ -2,7 +2,7 @@ package config
import ( import (
"fmt" "fmt"
"github.com/matttproud/prometheus/model" "github.com/prometheus/prometheus/model"
"strings" "strings"
) )

14
main.go
View File

@ -16,14 +16,14 @@ package main
import ( import (
"code.google.com/p/gorest" "code.google.com/p/gorest"
"flag" "flag"
"github.com/matttproud/prometheus/api"
"github.com/matttproud/prometheus/config"
"github.com/matttproud/prometheus/retrieval"
"github.com/matttproud/prometheus/retrieval/format"
"github.com/matttproud/prometheus/rules"
"github.com/matttproud/prometheus/rules/ast"
"github.com/matttproud/prometheus/storage/metric/leveldb"
"github.com/prometheus/client_golang" "github.com/prometheus/client_golang"
"github.com/prometheus/prometheus/api"
"github.com/prometheus/prometheus/config"
"github.com/prometheus/prometheus/retrieval"
"github.com/prometheus/prometheus/retrieval/format"
"github.com/prometheus/prometheus/rules"
"github.com/prometheus/prometheus/rules/ast"
"github.com/prometheus/prometheus/storage/metric/leveldb"
"log" "log"
"net/http" "net/http"
"os" "os"

View File

@ -18,7 +18,7 @@ import (
"crypto/md5" "crypto/md5"
"encoding/hex" "encoding/hex"
"errors" "errors"
dto "github.com/matttproud/prometheus/model/generated" dto "github.com/prometheus/prometheus/model/generated"
"io" "io"
"sort" "sort"
"time" "time"

View File

@ -15,7 +15,7 @@ package format
import ( import (
"fmt" "fmt"
"github.com/matttproud/prometheus/utility/test" "github.com/prometheus/prometheus/utility/test"
"net/http" "net/http"
"testing" "testing"
) )

View File

@ -14,7 +14,7 @@
package format package format
import ( import (
"github.com/matttproud/prometheus/model" "github.com/prometheus/prometheus/model"
"io" "io"
) )

View File

@ -16,7 +16,7 @@ package format
import ( import (
"encoding/json" "encoding/json"
"fmt" "fmt"
"github.com/matttproud/prometheus/model" "github.com/prometheus/prometheus/model"
"io" "io"
"io/ioutil" "io/ioutil"
"time" "time"

View File

@ -16,8 +16,8 @@ package format
import ( import (
"container/list" "container/list"
"fmt" "fmt"
"github.com/matttproud/prometheus/model" "github.com/prometheus/prometheus/model"
"github.com/matttproud/prometheus/utility/test" "github.com/prometheus/prometheus/utility/test"
"io/ioutil" "io/ioutil"
"strings" "strings"
"testing" "testing"

View File

@ -14,7 +14,7 @@
package format package format
import ( import (
"github.com/matttproud/prometheus/model" "github.com/prometheus/prometheus/model"
) )
// Result encapsulates the outcome from processing a given sample from a // Result encapsulates the outcome from processing a given sample from a

View File

@ -14,7 +14,7 @@
package retrieval package retrieval
import ( import (
"github.com/matttproud/prometheus/utility/test" "github.com/prometheus/prometheus/utility/test"
"testing" "testing"
"time" "time"
) )

View File

@ -14,9 +14,9 @@ package retrieval
import ( import (
"fmt" "fmt"
"github.com/matttproud/prometheus/model"
"github.com/matttproud/prometheus/retrieval/format"
"github.com/prometheus/client_golang/metrics" "github.com/prometheus/client_golang/metrics"
"github.com/prometheus/prometheus/model"
"github.com/prometheus/prometheus/retrieval/format"
"net/http" "net/http"
"time" "time"
) )

View File

@ -15,9 +15,9 @@ package retrieval
import ( import (
"container/heap" "container/heap"
"github.com/matttproud/prometheus/config" "github.com/prometheus/prometheus/config"
"github.com/matttproud/prometheus/model" "github.com/prometheus/prometheus/model"
"github.com/matttproud/prometheus/retrieval/format" "github.com/prometheus/prometheus/retrieval/format"
"log" "log"
"time" "time"
) )

View File

@ -14,8 +14,8 @@
package retrieval package retrieval
import ( import (
"github.com/matttproud/prometheus/retrieval/format" "github.com/prometheus/prometheus/retrieval/format"
"github.com/matttproud/prometheus/utility/test" "github.com/prometheus/prometheus/utility/test"
"testing" "testing"
"time" "time"
) )

View File

@ -2,7 +2,7 @@ package retrieval
import ( import (
"container/heap" "container/heap"
"github.com/matttproud/prometheus/retrieval/format" "github.com/prometheus/prometheus/retrieval/format"
"log" "log"
"time" "time"
) )

View File

@ -15,7 +15,7 @@ package retrieval
import ( import (
"container/heap" "container/heap"
"github.com/matttproud/prometheus/utility/test" "github.com/prometheus/prometheus/utility/test"
"testing" "testing"
"time" "time"
) )

View File

@ -3,7 +3,7 @@ package ast
import ( import (
"errors" "errors"
"fmt" "fmt"
"github.com/matttproud/prometheus/model" "github.com/prometheus/prometheus/model"
"log" "log"
"math" "math"
"sort" "sort"

View File

@ -3,7 +3,7 @@ package ast
import ( import (
"errors" "errors"
"fmt" "fmt"
"github.com/matttproud/prometheus/model" "github.com/prometheus/prometheus/model"
"time" "time"
) )

View File

@ -2,8 +2,8 @@ package ast
import ( import (
"flag" "flag"
"github.com/matttproud/prometheus/model" "github.com/prometheus/prometheus/model"
"github.com/matttproud/prometheus/storage/metric" "github.com/prometheus/prometheus/storage/metric"
"time" "time"
) )

View File

@ -3,8 +3,8 @@ package rules
import ( import (
"errors" "errors"
"fmt" "fmt"
"github.com/matttproud/prometheus/model" "github.com/prometheus/prometheus/model"
"github.com/matttproud/prometheus/rules/ast" "github.com/prometheus/prometheus/rules/ast"
"regexp" "regexp"
"strconv" "strconv"
"time" "time"

View File

@ -10,7 +10,7 @@ import (
"sort" "sort"
) )
import ( import (
"github.com/matttproud/prometheus/model" "github.com/prometheus/prometheus/model"
"strconv" "strconv"
) )

View File

@ -3,7 +3,7 @@ package rules
import ( import (
"errors" "errors"
"fmt" "fmt"
"github.com/matttproud/prometheus/rules/ast" "github.com/prometheus/prometheus/rules/ast"
"io" "io"
"os" "os"
"strings" "strings"

View File

@ -14,8 +14,8 @@
package rules package rules
import ( import (
"github.com/matttproud/prometheus/config" "github.com/prometheus/prometheus/config"
"github.com/matttproud/prometheus/rules/ast" "github.com/prometheus/prometheus/rules/ast"
"log" "log"
"time" "time"
) )

View File

@ -3,8 +3,8 @@
package rules package rules
import "fmt" import "fmt"
import "github.com/matttproud/prometheus/model" import "github.com/prometheus/prometheus/model"
import "github.com/matttproud/prometheus/rules/ast" import "github.com/prometheus/prometheus/rules/ast"
//line parser.y:9 //line parser.y:9
type yySymType struct { type yySymType struct {

View File

@ -2,8 +2,8 @@ package rules
import ( import (
"fmt" "fmt"
"github.com/matttproud/prometheus/model" "github.com/prometheus/prometheus/model"
"github.com/matttproud/prometheus/rules/ast" "github.com/prometheus/prometheus/rules/ast"
"time" "time"
) )

View File

@ -2,8 +2,8 @@ package rules
import ( import (
"fmt" "fmt"
"github.com/matttproud/prometheus/rules/ast" "github.com/prometheus/prometheus/rules/ast"
"github.com/matttproud/prometheus/storage/metric/leveldb" "github.com/prometheus/prometheus/storage/metric/leveldb"
"io/ioutil" "io/ioutil"
"os" "os"
"strings" "strings"

View File

@ -1,9 +1,9 @@
package rules package rules
import ( import (
"github.com/matttproud/prometheus/model" "github.com/prometheus/prometheus/model"
"github.com/matttproud/prometheus/rules/ast" "github.com/prometheus/prometheus/rules/ast"
"github.com/matttproud/prometheus/storage/metric" "github.com/prometheus/prometheus/storage/metric"
"time" "time"
) )

View File

@ -14,7 +14,7 @@
package metric package metric
import ( import (
"github.com/matttproud/prometheus/model" "github.com/prometheus/prometheus/model"
"time" "time"
) )

View File

@ -16,11 +16,11 @@ package leveldb
import ( import (
"code.google.com/p/goprotobuf/proto" "code.google.com/p/goprotobuf/proto"
"errors" "errors"
"github.com/matttproud/prometheus/coding" "github.com/prometheus/prometheus/coding"
"github.com/matttproud/prometheus/coding/indexable" "github.com/prometheus/prometheus/coding/indexable"
"github.com/matttproud/prometheus/model" "github.com/prometheus/prometheus/model"
dto "github.com/matttproud/prometheus/model/generated" dto "github.com/prometheus/prometheus/model/generated"
"github.com/matttproud/prometheus/utility" "github.com/prometheus/prometheus/utility"
"log" "log"
) )

View File

@ -14,7 +14,7 @@
package leveldb package leveldb
import ( import (
"github.com/matttproud/prometheus/storage/metric" "github.com/prometheus/prometheus/storage/metric"
"testing" "testing"
) )

View File

@ -16,9 +16,9 @@ package leveldb
import ( import (
"code.google.com/p/goprotobuf/proto" "code.google.com/p/goprotobuf/proto"
"fmt" "fmt"
"github.com/matttproud/prometheus/model" "github.com/prometheus/prometheus/model"
dto "github.com/matttproud/prometheus/model/generated" dto "github.com/prometheus/prometheus/model/generated"
"github.com/matttproud/prometheus/utility/test" "github.com/prometheus/prometheus/utility/test"
"io/ioutil" "io/ioutil"
"math" "math"
"math/rand" "math/rand"

View File

@ -14,8 +14,8 @@
package leveldb package leveldb
import ( import (
index "github.com/matttproud/prometheus/storage/raw/index/leveldb" index "github.com/prometheus/prometheus/storage/raw/index/leveldb"
storage "github.com/matttproud/prometheus/storage/raw/leveldb" storage "github.com/prometheus/prometheus/storage/raw/leveldb"
"io" "io"
"log" "log"
) )

View File

@ -15,10 +15,10 @@ package leveldb
import ( import (
"code.google.com/p/goprotobuf/proto" "code.google.com/p/goprotobuf/proto"
"github.com/matttproud/prometheus/coding" "github.com/prometheus/prometheus/coding"
"github.com/matttproud/prometheus/coding/indexable" "github.com/prometheus/prometheus/coding/indexable"
"github.com/matttproud/prometheus/model" "github.com/prometheus/prometheus/model"
dto "github.com/matttproud/prometheus/model/generated" dto "github.com/prometheus/prometheus/model/generated"
"time" "time"
) )

View File

@ -15,12 +15,12 @@ package leveldb
import ( import (
"code.google.com/p/goprotobuf/proto" "code.google.com/p/goprotobuf/proto"
"github.com/matttproud/prometheus/coding" "github.com/prometheus/prometheus/coding"
"github.com/matttproud/prometheus/coding/indexable" "github.com/prometheus/prometheus/coding/indexable"
"github.com/matttproud/prometheus/model" "github.com/prometheus/prometheus/model"
dto "github.com/matttproud/prometheus/model/generated" dto "github.com/prometheus/prometheus/model/generated"
"github.com/matttproud/prometheus/storage/metric" "github.com/prometheus/prometheus/storage/metric"
"github.com/matttproud/prometheus/utility" "github.com/prometheus/prometheus/utility"
"time" "time"
) )

View File

@ -14,7 +14,7 @@
package leveldb package leveldb
import ( import (
"github.com/matttproud/prometheus/model" "github.com/prometheus/prometheus/model"
"io/ioutil" "io/ioutil"
"os" "os"
"testing" "testing"

View File

@ -15,9 +15,9 @@ package leveldb
import ( import (
"fmt" "fmt"
"github.com/matttproud/prometheus/model" "github.com/prometheus/prometheus/model"
"github.com/matttproud/prometheus/storage/metric" "github.com/prometheus/prometheus/storage/metric"
"github.com/matttproud/prometheus/utility/test" "github.com/prometheus/prometheus/utility/test"
"io/ioutil" "io/ioutil"
"os" "os"
"testing" "testing"

View File

@ -14,8 +14,8 @@
package leveldb package leveldb
import ( import (
index "github.com/matttproud/prometheus/storage/raw/index/leveldb" index "github.com/prometheus/prometheus/storage/raw/index/leveldb"
storage "github.com/matttproud/prometheus/storage/raw/leveldb" storage "github.com/prometheus/prometheus/storage/raw/leveldb"
) )
type LevelDBMetricPersistence struct { type LevelDBMetricPersistence struct {

View File

@ -14,7 +14,7 @@
package index package index
import ( import (
"github.com/matttproud/prometheus/coding" "github.com/prometheus/prometheus/coding"
) )
type MembershipIndex interface { type MembershipIndex interface {

View File

@ -14,7 +14,7 @@
package leveldb package leveldb
import ( import (
"github.com/matttproud/prometheus/storage/raw/index" "github.com/prometheus/prometheus/storage/raw/index"
"testing" "testing"
) )

View File

@ -14,9 +14,9 @@
package leveldb package leveldb
import ( import (
"github.com/matttproud/prometheus/coding" "github.com/prometheus/prometheus/coding"
dto "github.com/matttproud/prometheus/model/generated" dto "github.com/prometheus/prometheus/model/generated"
"github.com/matttproud/prometheus/storage/raw/leveldb" "github.com/prometheus/prometheus/storage/raw/leveldb"
) )
var ( var (

View File

@ -14,7 +14,7 @@
package raw package raw
import ( import (
"github.com/matttproud/prometheus/coding" "github.com/prometheus/prometheus/coding"
) )
type Pair struct { type Pair struct {

View File

@ -14,7 +14,7 @@
package leveldb package leveldb
import ( import (
"github.com/matttproud/prometheus/storage/raw" "github.com/prometheus/prometheus/storage/raw"
"testing" "testing"
) )

View File

@ -15,8 +15,8 @@ package leveldb
import ( import (
"github.com/jmhodges/levigo" "github.com/jmhodges/levigo"
"github.com/matttproud/prometheus/coding" "github.com/prometheus/prometheus/coding"
"github.com/matttproud/prometheus/storage/raw" "github.com/prometheus/prometheus/storage/raw"
"io" "io"
) )