Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -136,11 +136,11 @@ data:

scrape_configs:

- job_name: 'cluster_metrics'
- job_name: 'simplyblock_metrics'
scrape_timeout: 30s
static_configs:
- targets: ['simplyblock-webappapi:5000']
honor_labels: true
metrics_path: '/api/v1/cluster/metrics'
metrics_path: '/api/v2/metrics'
{{- if .Values.tls.enabled }}
scheme: https
tls_config:
Expand All @@ -150,9 +150,8 @@ data:
key_file: /etc/prometheus/certs/tls.key
{{- end }}
{{- end }}
basic_auth:
username:
password:
authorization:
Comment thread
boddumanohar marked this conversation as resolved.
credentials_file: /var/run/secrets/kubernetes.io/serviceaccount/token
{{- if .Values.controlplane.foundationdb.exporter.enabled }}

- job_name: 'fdb_metrics'
Expand Down Expand Up @@ -266,8 +265,8 @@ data:
datasourceUid: PBFA97CFB590B2093
model:
disableTextWrap: false
editorMode: builder
expr: device_status_code
editorMode: code
expr: simplyblock_device_status{status="unavailable"}
fullMetaSearch: false
includeNullMetadata: true
instant: true
Expand All @@ -286,9 +285,8 @@ data:
conditions:
- evaluator:
params:
- 2
- 4
type: within_range
- 0
type: gt
operator:
type: and
query:
Expand Down Expand Up @@ -327,8 +325,8 @@ data:
datasourceUid: PBFA97CFB590B2093
model:
disableTextWrap: false
editorMode: builder
expr: device_status_code
editorMode: code
expr: simplyblock_device_status{status="read_only"}
fullMetaSearch: false
includeNullMetadata: true
instant: true
Expand All @@ -347,9 +345,8 @@ data:
conditions:
- evaluator:
params:
- 5
- 7
type: within_range
- 0
type: gt
operator:
type: and
query:
Expand Down Expand Up @@ -387,8 +384,8 @@ data:
datasourceUid: PBFA97CFB590B2093
model:
disableTextWrap: false
editorMode: builder
expr: cluster_status_code
editorMode: code
expr: simplyblock_cluster_status{status="degraded"}
fullMetaSearch: false
includeNullMetadata: true
instant: true
Expand All @@ -407,9 +404,8 @@ data:
conditions:
- evaluator:
params:
- 10
- 12
type: within_range
- 0
type: gt
operator:
type: and
query:
Expand Down Expand Up @@ -447,8 +443,8 @@ data:
datasourceUid: PBFA97CFB590B2093
model:
disableTextWrap: false
editorMode: builder
expr: cluster_status_code
editorMode: code
expr: simplyblock_cluster_status{status="suspended"}
fullMetaSearch: false
includeNullMetadata: true
instant: true
Expand All @@ -467,9 +463,8 @@ data:
conditions:
- evaluator:
params:
- 9
- 11
type: within_range
- 0
type: gt
operator:
type: and
query:
Expand Down Expand Up @@ -507,8 +502,8 @@ data:
datasourceUid: PBFA97CFB590B2093
model:
disableTextWrap: false
editorMode: builder
expr: snode_status_code
editorMode: code
expr: simplyblock_snode_status{status="unreachable"}
fullMetaSearch: false
includeNullMetadata: true
instant: true
Expand All @@ -527,9 +522,8 @@ data:
conditions:
- evaluator:
params:
- 19
- 21
type: within_range
- 0
type: gt
operator:
type: and
query:
Expand Down Expand Up @@ -567,8 +561,8 @@ data:
datasourceUid: PBFA97CFB590B2093
model:
disableTextWrap: false
editorMode: builder
expr: snode_status_code
editorMode: code
expr: simplyblock_snode_status{status="down"}
fullMetaSearch: false
includeNullMetadata: true
instant: true
Expand All @@ -587,9 +581,8 @@ data:
conditions:
- evaluator:
params:
- 39
- 41
type: within_range
- 0
type: gt
operator:
type: and
query:
Expand Down Expand Up @@ -627,8 +620,8 @@ data:
datasourceUid: PBFA97CFB590B2093
model:
disableTextWrap: false
editorMode: builder
expr: snode_health_check
editorMode: code
expr: simplyblock_snode_health_check
fullMetaSearch: false
includeNullMetadata: true
instant: true
Expand All @@ -647,9 +640,8 @@ data:
conditions:
- evaluator:
params:
- -1
- 1
type: within_range
- 1
type: lt
operator:
type: and
query:
Expand Down Expand Up @@ -688,7 +680,7 @@ data:
model:
disableTextWrap: false
editorMode: code
expr: cluster_size_prov_util / cluster_prov_cap_crit
expr: (simplyblock_cluster_size_provisioned_bytes / simplyblock_cluster_size_total_bytes) / simplyblock_cluster_provisioned_capacity_critical_threshold_ratio
fullMetaSearch: false
includeNullMetadata: true
instant: true
Expand Down Expand Up @@ -748,7 +740,7 @@ data:
model:
disableTextWrap: false
editorMode: code
expr: cluster_size_util / cluster_cap_crit
expr: (simplyblock_cluster_size_used_bytes / simplyblock_cluster_size_total_bytes) / simplyblock_cluster_capacity_critical_threshold_ratio
fullMetaSearch: false
includeNullMetadata: true
instant: true
Expand Down Expand Up @@ -807,8 +799,8 @@ data:
datasourceUid: PBFA97CFB590B2093
model:
disableTextWrap: false
editorMode: builder
expr: lvol_status_code
editorMode: code
expr: simplyblock_lvol_status{status="offline"}
fullMetaSearch: false
includeNullMetadata: true
instant: true
Expand All @@ -827,9 +819,8 @@ data:
conditions:
- evaluator:
params:
- 1
- 3
type: within_range
- 0
type: gt
operator:
type: and
query:
Expand Down Expand Up @@ -870,7 +861,7 @@ data:
editorMode: builder
expr: |
(node_filesystem_avail_bytes{mountpoint="/",fstype!~"tmpfs|overlay"} /
node_filesystem_size_bytes{mountpoint="/",fstype!~"tmpfs|overlay"}) * 100
node_filesystem_size_bytes{mountpoint="/",fstype!~"tmpfs|overlay"}) * 100
fullMetaSearch: false
includeNullMetadata: true
instant: true
Expand Down
Loading
Loading