Skip to content

Consistently use "prism" namespace #66

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 24, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions chunk/chunk_store.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,29 +51,29 @@ const (

var (
dynamoRequestDuration = prometheus.NewHistogramVec(prometheus.HistogramOpts{
Namespace: "prometheus",
Namespace: "prism",
Name: "dynamo_request_duration_seconds",
Help: "Time spent doing DynamoDB requests.",
Buckets: []float64{.001, .0025, .005, .01, .025, .05, .1, .25, .5, 1},
}, []string{"operation", "status_code"})
dynamoRequestPages = prometheus.NewHistogram(prometheus.HistogramOpts{
Namespace: "prometheus",
Namespace: "prism",
Name: "dynamo_request_pages",
Help: "Number of pages by DynamoDB request",
Buckets: prometheus.ExponentialBuckets(1, 2.0, 5),
})
dynamoConsumedCapacity = prometheus.NewCounterVec(prometheus.CounterOpts{
Namespace: "prometheus",
Namespace: "prism",
Name: "dynamo_consumed_capacity_total",
Help: "The capacity units consumed by operation.",
}, []string{"operation"})
droppedMatches = prometheus.NewCounter(prometheus.CounterOpts{
Namespace: "prometheus",
Namespace: "prism",
Name: "dropped_matches_total",
Help: "The number of chunks fetched but later dropped for not matching.",
})
s3RequestDuration = prometheus.NewHistogramVec(prometheus.HistogramOpts{
Namespace: "prometheus",
Namespace: "prism",
Name: "s3_request_duration_seconds",
Help: "Time spent doing S3 requests.",
Buckets: []float64{.025, .05, .1, .25, .5, 1, 2},
Expand Down
14 changes: 7 additions & 7 deletions distributor.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,39 +91,39 @@ func NewDistributor(cfg DistributorConfig) (*Distributor, error) {
cfg: cfg,
clients: map[string]*IngesterClient{},
queryDuration: prometheus.NewHistogramVec(prometheus.HistogramOpts{
Namespace: "prometheus",
Namespace: "prism",
Name: "distributor_query_duration_seconds",
Help: "Time spent executing expression queries.",
Buckets: []float64{.005, .01, .025, .05, .1, .25, .5, 1, 2.5, 5, 10, 20, 30},
}, []string{"method", "status_code"}),
receivedSamples: prometheus.NewCounter(prometheus.CounterOpts{
Namespace: "prometheus",
Namespace: "prism",
Name: "distributor_received_samples_total",
Help: "The total number of received samples.",
}),
sendDuration: prometheus.NewHistogramVec(prometheus.HistogramOpts{
Namespace: "prometheus",
Namespace: "prism",
Name: "distributor_send_duration_seconds",
Help: "Time spent sending a sample batch to multiple replicated ingesters.",
Buckets: []float64{.001, .0025, .005, .01, .025, .05, .1, .25, .5, 1},
}, []string{"method", "status_code"}),
ingesterAppends: prometheus.NewCounterVec(prometheus.CounterOpts{
Namespace: "prometheus",
Namespace: "prism",
Name: "distributor_ingester_appends_total",
Help: "The total number of batch appends sent to ingesters.",
}, []string{"ingester"}),
ingesterAppendFailures: prometheus.NewCounterVec(prometheus.CounterOpts{
Namespace: "prometheus",
Namespace: "prism",
Name: "distributor_ingester_appends_total",
Help: "The total number of failed batch appends sent to ingesters.",
}, []string{"ingester"}),
ingesterQueries: prometheus.NewCounterVec(prometheus.CounterOpts{
Namespace: "prometheus",
Namespace: "prism",
Name: "distributor_ingester_queries_total",
Help: "The total number of queries sent to ingesters.",
}, []string{"ingester"}),
ingesterQueryFailures: prometheus.NewCounterVec(prometheus.CounterOpts{
Namespace: "prometheus",
Namespace: "prism",
Name: "distributor_ingester_appends_total",
Help: "The total number of failed queries sent to ingesters.",
}, []string{"ingester"}),
Expand Down