@@ -112,7 +112,7 @@ func TestGetPrometheusConfig(t *testing.T) {
112
112
MetricsPath : "/metric" ,
113
113
Params : url.Values {"foo" : []string {"bar" , "foobar" }},
114
114
ServiceDiscoveryConfigs : discovery.Configs {
115
- & discovery.StaticConfig {
115
+ discovery.StaticConfig {
116
116
{
117
117
Targets : []model.LabelSet {
118
118
{model .AddressLabel : model .LabelValue ("localhost:1234" )},
@@ -147,7 +147,7 @@ func TestGetPrometheusConfig(t *testing.T) {
147
147
Scheme : "https" ,
148
148
MetricsPath : "/metric" ,
149
149
ServiceDiscoveryConfigs : discovery.Configs {
150
- & discovery.StaticConfig {
150
+ discovery.StaticConfig {
151
151
{
152
152
Targets : []model.LabelSet {
153
153
{model .AddressLabel : model .LabelValue ("localhost:1234" )},
@@ -179,7 +179,7 @@ func TestGetPrometheusConfig(t *testing.T) {
179
179
MetricsPath : "/metrics" ,
180
180
Scheme : "https" ,
181
181
ServiceDiscoveryConfigs : discovery.Configs {
182
- & discovery.StaticConfig {
182
+ discovery.StaticConfig {
183
183
{
184
184
Targets : []model.LabelSet {
185
185
{model .AddressLabel : model .LabelValue ("localhost:1234" )},
@@ -220,7 +220,7 @@ func TestGetPrometheusConfig(t *testing.T) {
220
220
MetricsPath : "/metrics" ,
221
221
Scheme : "https" ,
222
222
ServiceDiscoveryConfigs : discovery.Configs {
223
- & discovery.StaticConfig {
223
+ discovery.StaticConfig {
224
224
{
225
225
Targets : []model.LabelSet {
226
226
{
@@ -299,7 +299,7 @@ func TestGetPrometheusConfigWrapper(t *testing.T) {
299
299
MetricsPath : "/metric" ,
300
300
Params : url.Values {"foo" : []string {"bar" , "foobar" }},
301
301
ServiceDiscoveryConfigs : discovery.Configs {
302
- & discovery.StaticConfig {
302
+ discovery.StaticConfig {
303
303
{
304
304
Targets : []model.LabelSet {
305
305
{model .AddressLabel : model .LabelValue (defaultEndpoint )},
@@ -342,7 +342,7 @@ func TestGetPrometheusConfigWrapper(t *testing.T) {
342
342
MetricsPath : "/metric" ,
343
343
Params : url.Values {"foo" : []string {"bar" , "foobar" }},
344
344
ServiceDiscoveryConfigs : discovery.Configs {
345
- & discovery.StaticConfig {
345
+ discovery.StaticConfig {
346
346
{
347
347
Targets : []model.LabelSet {
348
348
{model .AddressLabel : model .LabelValue (defaultEndpoint )},
@@ -379,7 +379,7 @@ func TestGetPrometheusConfigWrapper(t *testing.T) {
379
379
MetricsPath : "/metric" ,
380
380
Params : url.Values {"foo" : []string {"bar" , "foobar" }},
381
381
ServiceDiscoveryConfigs : discovery.Configs {
382
- & discovery.StaticConfig {
382
+ discovery.StaticConfig {
383
383
{
384
384
Targets : []model.LabelSet {
385
385
{model .AddressLabel : model .LabelValue (defaultEndpoint )},
@@ -416,7 +416,7 @@ func TestGetPrometheusConfigWrapper(t *testing.T) {
416
416
MetricsPath : "/metric" ,
417
417
Params : url.Values {"foo" : []string {"bar" , "foobar" }},
418
418
ServiceDiscoveryConfigs : discovery.Configs {
419
- & discovery.StaticConfig {
419
+ discovery.StaticConfig {
420
420
{
421
421
Targets : []model.LabelSet {
422
422
{model .AddressLabel : model .LabelValue (defaultEndpoint )},
0 commit comments