File tree Expand file tree Collapse file tree 9 files changed +48
-47
lines changed
components/monitoring/prometheus
production/base/monitoringstack
staging/base/monitoringstack Expand file tree Collapse file tree 9 files changed +48
-47
lines changed Original file line number Diff line number Diff line change 42
42
audience : # added by overlays
43
43
tokenUrl : https://sso.redhat.com/auth/realms/redhat-external/protocol/openid-connect/token
44
44
url : # added by overlays
45
- writeRelabelConfigs :
46
- - action : LabelKeep
47
- regex : " "
45
+ # writeRelabelConfigs: # added by overlays
48
46
---
49
47
# Grant permission to Federate In-Cluster Prometheus
50
48
apiVersion : rbac.authorization.k8s.io/v1
80
78
app.kubernetes.io/managed-by : observability-operator
81
79
app.kubernetes.io/name : appstudio-federate-ms-prometheus
82
80
endpoints :
83
- - params :
84
- ' match[] ' : [] # scrape only required metrics from in-cluster prometheus
81
+ - params : {} # added by overlays
85
82
relabelings :
86
83
# override the target's address by the prometheus-k8s service name.
87
84
- action : replace
Original file line number Diff line number Diff line change 1
1
---
2
2
- op : replace
3
- path : /spec/endpoints/0/params/match[]
4
- value : # scrape only required metrics from in-cluster prometheus
3
+ path : /spec/endpoints/0/params
4
+ value :
5
+ ' match[] ' : # scrape only required metrics from in-cluster prometheus
5
6
- ' {__name__="pipeline_service_schedule_overhead_percentage_sum"}'
6
7
- ' {__name__="pipeline_service_schedule_overhead_percentage_count"}'
7
8
- ' {__name__="pipeline_service_execution_overhead_percentage_sum"}'
Original file line number Diff line number Diff line change 7
7
target :
8
8
name : appstudio-federate-smon
9
9
kind : ServiceMonitor
10
- - path : endpoints-params-match .yaml
10
+ - path : endpoints-params.yaml
11
11
target :
12
12
name : appstudio-federate-smon
13
13
kind : ServiceMonitor
@@ -19,7 +19,7 @@ patches:
19
19
target :
20
20
name : appstudio-federate-ms
21
21
kind : MonitoringStack
22
- - path : writeRelabelConfigs-regex .yaml
22
+ - path : writeRelabelConfigs.yaml
23
23
target :
24
24
name : appstudio-federate-ms
25
25
kind : MonitoringStack
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ ---
2
+ - op : replace
3
+ path : /spec/prometheusConfig/remoteWrite/0/writeRelabelConfigs
4
+ value :
5
+ - action : LabelKeep
6
+ regex : " __name__|source_environment|source_cluster|namespace|app|pod|container|\
7
+ label_pipelines_appstudio_openshift_io_type|health_status|dest_namespace|\
8
+ controller|service|reason|phase|type|resource|resourcequota|le|app|image|\
9
+ commit_hash|job|operation|tokenName|rateLimited|state|persistentvolumeclaim|\
10
+ storageclass|volumename|release_reason|instance|result|deployment_reason|\
11
+ validation_reason|strategy|succeeded|target|name|method|code|sp|le|\
12
+ unexpected_status|failure|hostname|label_app_kubernetes_io_managed_by|status|\
13
+ pipeline|pipelinename|pipelinerun|schedule|check|grpc_service|grpc_code|\
14
+ grpc_method|lease|lease_holder|deployment|platform|mode|cpu|role|node|kind|\
15
+ verb|request_kind|tested_cluster|resource_type|exported_job|http_method|\
16
+ http_route|http_status_code|gin_errors|rule_result|rule_execution_cause|\
17
+ policy_name|policy_background_mode|rule_type|policy_type|policy_validation_mode|\
18
+ resource_request_operation|resource_kind|policy_change_type|event_type"
Original file line number Diff line number Diff line change 1
1
---
2
2
- op : replace
3
- path : /spec/endpoints/0/params/match[]
4
- value : # scrape only required metrics from in-cluster prometheus
3
+ path : /spec/endpoints/0/params
4
+ value :
5
+ ' match[] ' : # scrape only required metrics from in-cluster prometheus
5
6
- ' {__name__="pipeline_service_schedule_overhead_percentage_sum"}'
6
7
- ' {__name__="pipeline_service_schedule_overhead_percentage_count"}'
7
8
- ' {__name__="pipeline_service_execution_overhead_percentage_sum"}'
Original file line number Diff line number Diff line change 7
7
target :
8
8
name : appstudio-federate-smon
9
9
kind : ServiceMonitor
10
- - path : endpoints-params-match .yaml
10
+ - path : endpoints-params.yaml
11
11
target :
12
12
name : appstudio-federate-smon
13
13
kind : ServiceMonitor
@@ -19,7 +19,7 @@ patches:
19
19
target :
20
20
name : appstudio-federate-ms
21
21
kind : MonitoringStack
22
- - path : writeRelabelConfigs-regex .yaml
22
+ - path : writeRelabelConfigs.yaml
23
23
target :
24
24
name : appstudio-federate-ms
25
25
kind : MonitoringStack
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ ---
2
+ - op : replace
3
+ path : /spec/prometheusConfig/remoteWrite/0/writeRelabelConfigs
4
+ value :
5
+ - action : LabelKeep
6
+ regex : " __name__|source_environment|source_cluster|namespace|app|pod|container|\
7
+ label_pipelines_appstudio_openshift_io_type|health_status|dest_namespace|\
8
+ controller|service|reason|phase|type|resource|resourcequota|le|app|image|\
9
+ commit_hash|job|operation|tokenName|rateLimited|state|persistentvolumeclaim|\
10
+ storageclass|volumename|release_reason|instance|result|deployment_reason|\
11
+ validation_reason|strategy|succeeded|target|name|method|code|sp|le|\
12
+ unexpected_status|failure|hostname|label_app_kubernetes_io_managed_by|status|\
13
+ pipeline|pipelinename|pipelinerun|schedule|check|grpc_service|grpc_code|\
14
+ grpc_method|lease|lease_holder|deployment|platform|mode|cpu|role|node|kind|\
15
+ verb|request_kind|tested_cluster|resource_type|exported_job|http_method|\
16
+ http_route|http_status_code|gin_errors|rule_result|rule_execution_cause|\
17
+ policy_name|policy_background_mode|rule_type|policy_type|policy_validation_mode|\
18
+ resource_request_operation|resource_kind|policy_change_type|event_type"
You can’t perform that action at this time.
0 commit comments