feature:promethues新增component字段
This commit is contained in:
@@ -158,6 +158,10 @@ spec:
|
||||
action: replace
|
||||
target_label: serviceFunction
|
||||
regex: (.+)
|
||||
- source_labels: [__meta_kubernetes_pod_label_component]
|
||||
action: replace
|
||||
target_label: component
|
||||
regex: (.+)
|
||||
|
||||
- source_labels: [__meta_kubernetes_pod_phase]
|
||||
regex: Pending|Succeeded|Failed|Completed
|
||||
|
||||
@@ -21,6 +21,7 @@ spec:
|
||||
app: {{ .Release.Name }}-firewall
|
||||
vsysId: "{{ .Values.vsys_id }}"
|
||||
serviceFunction: {{ .Release.Name }}
|
||||
component: firewall
|
||||
annotations:
|
||||
prometheus.io/port: "9273"
|
||||
prometheus.io/scrape: "true"
|
||||
|
||||
@@ -5,7 +5,7 @@ metadata:
|
||||
name: {{ .Release.Name }}-proxy
|
||||
labels:
|
||||
app: {{ .Release.Name }}
|
||||
component: firewall
|
||||
component: proxy
|
||||
annotations:
|
||||
reloader.stakater.com/auto: "true"
|
||||
|
||||
@@ -22,6 +22,7 @@ spec:
|
||||
app: {{ .Release.Name }}-proxy
|
||||
vsysId: "{{ .Values.vsys_id }}"
|
||||
serviceFunction: {{ .Release.Name }}
|
||||
component: proxy
|
||||
annotations:
|
||||
prometheus.io/port: "9001"
|
||||
prometheus.io/scrape: "true"
|
||||
|
||||
@@ -22,6 +22,7 @@ spec:
|
||||
app: {{ .Release.Name }}-service-chaining
|
||||
vsysId: "{{ .Values.vsys_id }}"
|
||||
serviceFunction: {{ .Release.Name }}
|
||||
component: service-chaining
|
||||
annotations:
|
||||
prometheus.io/port: "9006"
|
||||
prometheus.io/scrape: "true"
|
||||
|
||||
@@ -22,6 +22,7 @@ spec:
|
||||
app: {{ .Release.Name }}-shaping
|
||||
vsysId: "{{ .Values.vsys_id }}"
|
||||
serviceFunction: {{ .Release.Name }}
|
||||
component: shaping
|
||||
annotations:
|
||||
prometheus.io/port: "9007"
|
||||
prometheus.io/scrape: "true"
|
||||
|
||||
Reference in New Issue
Block a user