Browse Source
Merge pull request #1538 from kmlebedev/grafana_seaweedfs_k8s
Grafana dashboard for seaweedfs k8s
pull/1540/head
Chris Lu
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
11 changed files with
2447 additions and
1 deletions
-
k8s/seaweedfs/templates/filer-service.yaml
-
k8s/seaweedfs/templates/filer-servicemonitor.yaml
-
k8s/seaweedfs/templates/filer-statefulset.yaml
-
k8s/seaweedfs/templates/s3-deployment.yaml
-
k8s/seaweedfs/templates/s3-service.yaml
-
k8s/seaweedfs/templates/s3-servicemonitor.yaml
-
k8s/seaweedfs/templates/volume-service.yaml
-
k8s/seaweedfs/templates/volume-servicemonitor.yaml
-
k8s/seaweedfs/templates/volume-statefulset.yaml
-
k8s/seaweedfs/values.yaml
-
other/metrics/grafana_seaweedfs_k8s.json
|
|
@ -17,6 +17,12 @@ spec: |
|
|
|
port: {{ .Values.filer.grpcPort }} |
|
|
|
targetPort: {{ .Values.filer.grpcPort }} |
|
|
|
protocol: TCP |
|
|
|
{{- if .Values.filer.metricsPort }} |
|
|
|
- name: "swfs-filer-metrics" |
|
|
|
port: {{ .Values.filer.metricsPort }} |
|
|
|
targetPort: {{ .Values.filer.metricsPort }} |
|
|
|
protocol: TCP |
|
|
|
{{- end }} |
|
|
|
selector: |
|
|
|
app: {{ template "seaweedfs.name" . }} |
|
|
|
component: filer |
|
|
@ -0,0 +1,18 @@ |
|
|
|
{{- if .Values.filer.metricsPort }} |
|
|
|
apiVersion: monitoring.coreos.com/v1 |
|
|
|
kind: ServiceMonitor |
|
|
|
metadata: |
|
|
|
name: {{ template "seaweedfs.name" . }}-filer |
|
|
|
namespace: {{ .Release.Namespace }} |
|
|
|
labels: |
|
|
|
app: {{ template "seaweedfs.name" . }} |
|
|
|
component: filer |
|
|
|
spec: |
|
|
|
endpoints: |
|
|
|
- interval: 30s |
|
|
|
port: swfs-filer-metrics |
|
|
|
scrapeTimeout: 5s |
|
|
|
selector: |
|
|
|
app: {{ template "seaweedfs.name" . }} |
|
|
|
component: filer |
|
|
|
{{- end }} |
|
|
@ -99,6 +99,9 @@ spec: |
|
|
|
{{- end }} |
|
|
|
filer \ |
|
|
|
-port={{ .Values.filer.port }} \ |
|
|
|
{{- if .Values.filer.metricsPort }} |
|
|
|
-metricsPort {{ .Values.filer.metricsPort }} \ |
|
|
|
{{- end }}} |
|
|
|
{{- if .Values.filer.redirectOnRead }} |
|
|
|
-redirectOnRead \ |
|
|
|
{{- end }} |
|
|
|
|
|
@ -71,6 +71,9 @@ spec: |
|
|
|
{{- end }} |
|
|
|
s3 \ |
|
|
|
-port={{ .Values.s3.port }} \ |
|
|
|
{{- if .Values.s3.metricsPort }} |
|
|
|
-metricsPort {{ .Values.s3.metricsPort }} \ |
|
|
|
{{- end }}} |
|
|
|
{{- if .Values.global.enableSecurity }} |
|
|
|
-cert.file=/usr/local/share/ca-certificates/client/tls.crt \ |
|
|
|
-key.file=/usr/local/share/ca-certificates/client/tls.key \ |
|
|
|
|
|
@ -12,6 +12,12 @@ spec: |
|
|
|
port: {{ .Values.s3.port }} |
|
|
|
targetPort: {{ .Values.s3.port }} |
|
|
|
protocol: TCP |
|
|
|
{{- if .Values.s3.metricsPort }} |
|
|
|
- name: "swfs-s3-metrics" |
|
|
|
port: {{ .Values.filer.s3 }} |
|
|
|
targetPort: {{ .Values.s3.metricsPort }} |
|
|
|
protocol: TCP |
|
|
|
{{- end }}} |
|
|
|
selector: |
|
|
|
app: {{ template "seaweedfs.name" . }} |
|
|
|
component: s3 |
|
|
@ -0,0 +1,18 @@ |
|
|
|
{{- if .Values.s3.metricsPort }} |
|
|
|
apiVersion: monitoring.coreos.com/v1 |
|
|
|
kind: ServiceMonitor |
|
|
|
metadata: |
|
|
|
name: {{ template "seaweedfs.name" . }}-s3 |
|
|
|
namespace: {{ .Release.Namespace }} |
|
|
|
labels: |
|
|
|
app: {{ template "seaweedfs.name" . }} |
|
|
|
component: s3 |
|
|
|
spec: |
|
|
|
endpoints: |
|
|
|
- interval: 30s |
|
|
|
port: swfs-s3-metrics |
|
|
|
scrapeTimeout: 5s |
|
|
|
selector: |
|
|
|
app: {{ template "seaweedfs.name" . }} |
|
|
|
component: s3 |
|
|
|
{{- end }}} |
|
|
@ -17,6 +17,12 @@ spec: |
|
|
|
port: {{ .Values.volume.grpcPort }} |
|
|
|
targetPort: {{ .Values.volume.grpcPort }} |
|
|
|
protocol: TCP |
|
|
|
{{- if .Values.volume.metricsPort }} |
|
|
|
- name: "swfs-volume-metrics" |
|
|
|
port: {{ .Values.volume.metricsPort }} |
|
|
|
targetPort: {{ .Values.volume.metricsPort }} |
|
|
|
protocol: TCP |
|
|
|
{{- end }}} |
|
|
|
selector: |
|
|
|
app: {{ template "seaweedfs.name" . }} |
|
|
|
component: volume |
|
|
@ -0,0 +1,18 @@ |
|
|
|
{{- if .Values.volume.metricsPort }} |
|
|
|
apiVersion: monitoring.coreos.com/v1 |
|
|
|
kind: ServiceMonitor |
|
|
|
metadata: |
|
|
|
name: {{ template "seaweedfs.name" . }}-volume |
|
|
|
namespace: {{ .Release.Namespace }} |
|
|
|
labels: |
|
|
|
app: {{ template "seaweedfs.name" . }} |
|
|
|
component: volume |
|
|
|
spec: |
|
|
|
endpoints: |
|
|
|
- interval: 30s |
|
|
|
port: swfs-volume-metrics |
|
|
|
scrapeTimeout: 5s |
|
|
|
selector: |
|
|
|
app: {{ template "seaweedfs.name" . }} |
|
|
|
component: volume |
|
|
|
{{- end }}} |
|
|
@ -76,6 +76,9 @@ spec: |
|
|
|
{{- end }} |
|
|
|
volume \ |
|
|
|
-port={{ .Values.volume.port }} \ |
|
|
|
{{- if .Values.volume.metricsPort }} |
|
|
|
-metricsPort {{ .Values.volume.metricsPort }} \ |
|
|
|
{{- end }}} |
|
|
|
-dir={{ .Values.volume.dir }} \ |
|
|
|
-max={{ .Values.volume.maxVolumes }} \ |
|
|
|
{{- if .Values.volume.rack }} |
|
|
|
|
|
@ -121,6 +121,7 @@ volume: |
|
|
|
restartPolicy: null |
|
|
|
port: 8080 |
|
|
|
grpcPort: 18080 |
|
|
|
metricsPort: 9327 |
|
|
|
ipBind: "0.0.0.0" |
|
|
|
replicas: 1 |
|
|
|
loggingOverrideLevel: null |
|
|
@ -209,6 +210,7 @@ filer: |
|
|
|
replicas: 1 |
|
|
|
port: 8888 |
|
|
|
grpcPort: 18888 |
|
|
|
metricsPort: 9327 |
|
|
|
loggingOverrideLevel: null |
|
|
|
# replication type is XYZ: |
|
|
|
# X number of replica in other data centers |
|
|
@ -313,6 +315,7 @@ s3: |
|
|
|
restartPolicy: null |
|
|
|
replicas: 1 |
|
|
|
port: 8333 |
|
|
|
metricsPort: 9327 |
|
|
|
loggingOverrideLevel: null |
|
|
|
|
|
|
|
# Suffix of the host name, {bucket}.{domainName} |
|
|
|