Merge pull request #1523 from prometheus/cleanup

Remove unused code leftovers
This commit is contained in:
Brian Brazil 2016-04-03 01:28:44 +01:00
commit 6453f64000
7 changed files with 0 additions and 22 deletions

View file

@ -8,10 +8,6 @@ import (
"golang.org/x/net/context"
)
var noop = testStmt(func(context.Context) error {
return nil
})
func TestQueryConcurrency(t *testing.T) {
engine := NewEngine(nil, nil)
defer engine.Stop()

View file

@ -925,8 +925,6 @@ func (p *parser) offset() time.Duration {
// [<metric_identifier>] <label_matchers>
//
func (p *parser) vectorSelector(name string) *VectorSelector {
const ctx = "metric selector"
var matchers metric.LabelMatchers
// Parse label matching if any.
if t := p.peek(); t.typ == itemLeftBrace {

View file

@ -36,7 +36,6 @@ const (
// Constants for instrumentation.
namespace = "prometheus"
interval = "interval"
)
var (

View file

@ -28,8 +28,6 @@ import (
)
const (
nerveNodePrefix = "member_"
nerveLabelPrefix = model.MetaLabelPrefix + "nerve_"
nervePathLabel = nerveLabelPrefix + "path"
nerveEndpointLabelPrefix = nerveLabelPrefix + "endpoint"

View file

@ -30,8 +30,6 @@ import (
)
const (
serversetNodePrefix = "member_"
serversetLabelPrefix = model.MetaLabelPrefix + "serverset_"
serversetStatusLabel = serversetLabelPrefix + "status"
serversetPathLabel = serversetLabelPrefix + "path"

View file

@ -14,7 +14,6 @@
package retrieval
import (
"errors"
"fmt"
"io"
"net/http"
@ -37,9 +36,6 @@ const (
scrapeHealthMetricName = "up"
scrapeDurationMetricName = "scrape_duration_seconds"
// Capacity of the channel to buffer samples during ingestion.
ingestedSamplesCap = 256
// Constants for instrumentation.
namespace = "prometheus"
interval = "interval"
@ -47,8 +43,6 @@ const (
)
var (
errSkippedScrape = errors.New("scrape skipped due to throttled ingestion")
targetIntervalLength = prometheus.NewSummaryVec(
prometheus.SummaryOpts{
Namespace: namespace,

View file

@ -21,7 +21,6 @@ import (
"math"
"net/http"
"net/url"
"regexp"
"time"
"github.com/prometheus/common/log"
@ -36,10 +35,6 @@ const (
contentTypeJSON = "application/json"
)
var (
illegalCharsRE = regexp.MustCompile(`[^a-zA-Z0-9_\-./]`)
)
// Client allows sending batches of Prometheus samples to OpenTSDB.
type Client struct {
url string