2026-01-05 07:46:21 -05:00
|
|
|
// Copyright The Prometheus Authors
|
2017-07-09 00:34:50 -04:00
|
|
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
|
// you may not use this file except in compliance with the License.
|
|
|
|
|
// You may obtain a copy of the License at
|
|
|
|
|
//
|
|
|
|
|
// http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
|
//
|
|
|
|
|
// Unless required by applicable law or agreed to in writing, software
|
|
|
|
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
|
// See the License for the specific language governing permissions and
|
|
|
|
|
// limitations under the License.
|
|
|
|
|
|
2021-08-25 10:35:30 -04:00
|
|
|
//go:build !windows
|
2017-07-09 00:34:50 -04:00
|
|
|
|
|
|
|
|
package config
|
|
|
|
|
|
|
|
|
|
const ruleFilesConfigFile = "testdata/rules_abs_path.good.yml"
|
2017-07-09 01:43:33 -04:00
|
|
|
|
2017-07-09 00:34:50 -04:00
|
|
|
var ruleFilesExpectedConf = &Config{
|
2024-12-11 06:01:15 -05:00
|
|
|
loaded: true,
|
|
|
|
|
|
2017-07-09 00:34:50 -04:00
|
|
|
GlobalConfig: DefaultGlobalConfig,
|
2024-04-01 11:34:35 -04:00
|
|
|
Runtime: DefaultRuntimeConfig,
|
2025-06-04 16:52:39 -04:00
|
|
|
OTLPConfig: DefaultOTLPConfig,
|
2017-07-09 00:34:50 -04:00
|
|
|
RuleFiles: []string{
|
|
|
|
|
"testdata/first.rules",
|
|
|
|
|
"testdata/rules/second.rules",
|
|
|
|
|
"/absolute/third.rules",
|
|
|
|
|
},
|
|
|
|
|
}
|