Runbook: Connecting to the Datastore
Runbook: Connecting to the Datastore
Overview
This runbook guides you through connecting to the NVSentinel MongoDB datastore to query health events and troubleshoot data-related issues.
Prerequisites:
kubectlaccess to the clustermongosh(MongoDB Shell) installed locally- Access to the
nvsentinelnamespace
Procedure
1. Verify MongoDB is Running
Check the MongoDB pods:
All pods should be in Running state. The default deployment has 3 replicas: mongodb-0, mongodb-1, mongodb-2.
2. Connect Using the Helper Script
Use the provided script to connect:
The script automatically:
- Sets up port forwarding to MongoDB
- Extracts client certificates from Kubernetes secrets
- Connects with TLS authentication
- Cleans up on exit
3. Query Health Events
Once connected, you can query the datastore:
Count total health events:
Find unhealthy events:
Find events for a specific node:
Find fatal events: