Konstantin Lebedev
4 years ago
11 changed files with 93 additions and 9 deletions
-
6k8s/seaweedfs/templates/filer-service.yaml
-
18k8s/seaweedfs/templates/filer-servicemonitor.yaml
-
3k8s/seaweedfs/templates/filer-statefulset.yaml
-
3k8s/seaweedfs/templates/s3-deployment.yaml
-
6k8s/seaweedfs/templates/s3-service.yaml
-
18k8s/seaweedfs/templates/s3-servicemonitor.yaml
-
6k8s/seaweedfs/templates/volume-service.yaml
-
18k8s/seaweedfs/templates/volume-servicemonitor.yaml
-
3k8s/seaweedfs/templates/volume-statefulset.yaml
-
3k8s/seaweedfs/values.yaml
-
16other/metrics/grafana_seaweedfs_k8s.json
@ -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 }} |
@ -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 }}} |
@ -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 }}} |
Write
Preview
Loading…
Cancel
Save
Reference in new issue