Merge "Replace some uses of obsolete /metrics.json with /metrics (haven't touched test files yet)."

This commit is contained in:
Julius Volz 2013-12-18 16:56:30 +01:00 committed by Gerrit Code Review
commit 7b013e6491
2 changed files with 3 additions and 3 deletions

View file

@ -72,7 +72,7 @@ message JobConfig {
// used for a job. // used for a job.
repeated TargetGroup target_group = 5; repeated TargetGroup target_group = 5;
// The HTTP resource path to fetch metrics from on targets. // The HTTP resource path to fetch metrics from on targets.
optional string metrics_path = 6 [default = "/metrics.json"]; optional string metrics_path = 6 [default = "/metrics"];
} }
// The top-level Prometheus configuration. // The top-level Prometheus configuration.

View file

@ -158,7 +158,7 @@ type JobConfig struct {
// used for a job. // used for a job.
TargetGroup []*TargetGroup `protobuf:"bytes,5,rep,name=target_group" json:"target_group,omitempty"` TargetGroup []*TargetGroup `protobuf:"bytes,5,rep,name=target_group" json:"target_group,omitempty"`
// The HTTP resource path to fetch metrics from on targets. // The HTTP resource path to fetch metrics from on targets.
MetricsPath *string `protobuf:"bytes,6,opt,name=metrics_path,def=/metrics.json" json:"metrics_path,omitempty"` MetricsPath *string `protobuf:"bytes,6,opt,name=metrics_path,def=/metrics" json:"metrics_path,omitempty"`
XXX_unrecognized []byte `json:"-"` XXX_unrecognized []byte `json:"-"`
} }
@ -168,7 +168,7 @@ func (*JobConfig) ProtoMessage() {}
const Default_JobConfig_ScrapeTimeout string = "10s" const Default_JobConfig_ScrapeTimeout string = "10s"
const Default_JobConfig_SdRefreshInterval string = "30s" const Default_JobConfig_SdRefreshInterval string = "30s"
const Default_JobConfig_MetricsPath string = "/metrics.json" const Default_JobConfig_MetricsPath string = "/metrics"
func (m *JobConfig) GetName() string { func (m *JobConfig) GetName() string {
if m != nil && m.Name != nil { if m != nil && m.Name != nil {