Get Monitor
Retrieve detailed configuration for a specific monitor by its UUID, including queries, thresholds, display settings, and evaluation parameters.
Last updated
curl -L \
--url 'https://api.groundcover.com/api/monitors/xxxx-xxxx-xxx-xxxx-xxxx' \
--header 'Authorization: Bearer <YOUR_API_KEY>' \
--header 'Accept: application/json'title: 'PVC usage above threshold (90%)'
display:
header: PV usage above 90% threshold - {{ labels.cluster }}, {{ labels.name }}
contextHeaderLabels:
- cluster
- namespace
- env
severity: S2
measurementType: state
model:
queries:
- name: threshold_input_query
dataType: metrics
expression: >
avg by (cluster, env, name, namespace) (
groundcover_pvc_usage_percent{name!~"object-storage-cache-groundcover-incloud-clickhouse-shard.*"}
)
datasourceType: prometheus
queryType: instant
rollup:
function: avg
time: 5m
thresholds:
- name: threshold_1
inputName: threshold_input_query
operator: gt
values:
- 90
noDataState: OK
evaluationInterval:
interval: 1m0s
pendingFor: 1m0stitle: gRPC API Errors Monitor
display:
header: gRPC API Error {{ labels.status_code }}
resourceHeaderLabels:
- span_name
- role
contextHeaderLabels:
- env
- cluster
- namespace
- workload
severity: S3
measurementType: event
model:
queries:
- name: threshold_input_query
dataType: traces
expression: >
span_type:grpc status_code:!=0 status:error source:ebpf
| stats by (env, cluster, namespace, workload, status_code, span_name, role) count() errors_total
instantRollup: 1 minutes
thresholds:
- name: threshold_1
inputName: threshold_input_query
operator: gt
values:
- 0
executionErrorState: OK
noDataState: OK
evaluationInterval:
interval: 1m
pendingFor: 0s