-
Notifications
You must be signed in to change notification settings - Fork 9
/
const.go
52 lines (39 loc) · 1.75 KB
/
const.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
// 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.
package model
const (
// OpenStackType represents a OpenStack type
OpenStackType string = "openstack"
// PrometheusType is a Prometheus backend
PrometheusType = "prometheus"
FixedDelay = "fixed"
BackoffDelay = "backoff"
// DefaultCloudPrefix is the default etcd prefix for Cloud data
DefaultCloudPrefix = "/clouds"
DefaultHealerPrefix = "/healers"
DefaultHealerQuery = "up{job=~\".*compute-cadvisor.*|.*compute-node.*\"} < 1"
DefaultHealerInterval = "18s"
DefaultHealerDuration = "3m"
DefaultNResolverPrefix = "/nresolvers"
DefaultNResolverQuery = "node_uname_info"
DefaultNResolverInterval = "30s"
// DefaultScalerPrefix is the etcd default prefix for scaler
DefaultScalerPrefix = "/scalers"
// DefaultSchedulerPrefix is the etcd default prefix for scheduler
DefaultSchedulerPrefix = "/schedulers"
// DefaultSilencePrefix is default etcd prefix for Silences
DefaultSilencePrefix = "/silences"
DefaultSilenceValidationInterval = "30s"
DefaultSyncSilencesInterval = "60s"
DefaultSyncedSilenceName = "Auto sync silence from Alertmanger"
DefaultSyncSilencePrefix = "[faythe]"
// DefaultUserPrefix is default etcd prefix for Users
DefaultUsersPrefix = "/users"
// DefaultPoliciesPrefix is default etcd prefix for policies
// This prefix is a bit different than others, it doesn't start with a slash '/'
DefaultPoliciesPrefix = "policies"
)
const DefaultMaxNumberOfInstances int = 3