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 (
"code.google.com/p/gorest"
"errors"
"github.com/matttproud/prometheus/rules"
"github.com/matttproud/prometheus/rules/ast"
"github.com/prometheus/prometheus/rules"
"github.com/prometheus/prometheus/rules/ast"
"sort"
"time"
)

View File

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

View File

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

View File

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

View File

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

View File

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

14
main.go
View File

@ -16,14 +16,14 @@ package main
import (
"code.google.com/p/gorest"
"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/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"
"net/http"
"os"

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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