-
Notifications
You must be signed in to change notification settings - Fork 80
/
values.yaml
120 lines (106 loc) · 3.29 KB
/
values.yaml
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
# Copyright (c) 2020, 2022, Oracle and/or its affiliates.
# Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.
rbac:
create: true
podSecurityPolicy:
enabled: false
serviceAccounts:
pushgateway:
create: false
pushgateway:
enabled: false
alertmanager:
enabled: true
## Use a ClusterRole (and ClusterRoleBinding)
## - If set to false - we define a Role and RoleBinding in the defined namespaces ONLY
## This makes alertmanager work - for users who do not have ClusterAdmin privs, but wants alertmanager to operate on their own namespaces, instead of clusterwide.
useClusterRole: true
## Set to a rolename to use existing role - skipping role creating - but still doing serviceaccount and rolebinding to the rolename set here.
useExistingRole: false
persistentVolume:
existingClaim: pvc-alertmanager
service:
type: NodePort
nodePort: 32000
image:
# repository: quay.io/prometheus/alertmanager
# tag: v0.23.0
pullPolicy: IfNotPresent
securityContext:
runAsUser: 65534
runAsNonRoot: true
runAsGroup: 65534
nodeExporter:
enabled: false
server:
persistentVolume:
existingClaim: pvc-prometheus
service:
type: NodePort
nodePort: 30000
securityContext:
runAsUser: 0
runAsNonRoot: false
global:
evaluation_interval: 1m
scrape_interval: 10s
scrape_timeout: 5s
image:
# repository: quay.io/prometheus/prometheus
# tag: v2.31.1
pullPolicy: IfNotPresent
alertmanagerFiles:
alertmanager.yml:
global:
resolve_timeout: 5m
route:
group_by: ['alertname']
group_wait: 10s
group_interval: 10s
repeat_interval: 1h
receiver: 'logging-webhook'
receivers:
- name: 'logging-webhook'
webhook_configs:
- url: 'http://webhook.webhook.svc.cluster.local:8080/log'
serverFiles:
alerts:
groups:
- name: node_rules
rules:
- alert: ClusterWarning
for: 15s
expr: sum by(weblogic_domainUID, weblogic_clusterName) (up{weblogic_domainUID=~'.+'}) == 1
labels:
severity: page
annotations:
description: 'Some WLS cluster has only one running server for more than 1 minutes.'
summary: 'Some wls cluster is in warning state.'
extraScrapeConfigs: |
- job_name: 'wls-domain1'
kubernetes_sd_configs:
- role: pod
relabel_configs:
- source_labels: [__meta_kubernetes_namespace, __meta_kubernetes_pod_label_weblogic_domainUID, __meta_kubernetes_pod_label_weblogic_clusterName]
action: keep
regex: weblogic;domain1;cluster-1
- source_labels: [__meta_kubernetes_pod_annotation_prometheus_io_path]
action: replace
target_label: __metrics_path__
regex: (.+)
- source_labels: [__address__, __meta_kubernetes_pod_annotation_prometheus_io_port]
action: replace
regex: ([^:]+)(?::\d+)?;(\d+)
replacement: $1:$2
target_label: __address__
- action: labelmap
regex: __meta_kubernetes_pod_label_(.+)
- source_labels: [__meta_kubernetes_pod_name]
action: replace
target_label: pod
- source_labels: [__meta_kubernetes_namespace]
action: replace
target_label: namespace
basic_auth:
username: weblogic
password: welcome1