Grafanna- Dashboard
Table of Content
Grafanna: Monitoring CPU and Memory Utilization Trend:
Login to Grafana:
Open your web browser and navigate to the client’s Grafana login page.
Enter your credentials (username and password) to access the Grafana dashboard.
Navigate to the Dashboard:
Once logged in, look for the dashboard selection menu.
Find and select the
kubernetes-compute-resources-namespace-pods
dashboard.
Verify the CPU Trend:
Within the selected dashboard, locate the section displaying CPU utilization trends.
Review the CPU trend data for the specified namespace and pods to ensure there are no anomalies or issues.
Grafanna: Monitoring Disk Utilization Trend:
Login to Client Grafana
Open your web browser.
Navigate to the Grafana login page provided by your client.
Enter your username and password.
Click on the "Log in" button to access the Grafana dashboard.
Navigate to the Kubernetes-Persistent-Volumes Dashboard
After logging in, look at the left-hand side panel for the navigation menu.
Click on the "Dashboards" icon (usually represented by four squares).
In the search bar, type "kubernetes-persistent-volumes" and press Enter.
Select the "kubernetes-persistent-volumes" dashboard from the search results.
Verify the Disk Utilization Trend
Once you are on the "kubernetes-persistent-volumes" dashboard, locate the sections displaying disk utilization metrics.
Review the various graphs and charts presented, focusing on metrics such as:
Disk usage over time.
Total available disk space.
Used disk space.
Disk I/O operations.
Analyze the trends to identify any potential issues, such as high disk usage or unusual spikes in disk activity.
Additional Tips:
Adjust Time Range: If needed, adjust the time range to view disk utilization trends over different periods (e.g., last 24 hours, last 7 days, etc.).
Filter by Namespace or Pod: Use the available filters to narrow down the data to specific namespaces or pods for more granular analysis.
Export Data: If required, export the data or capture screenshots for reporting purposes or further analysis.
Grafanna: Create a Dashboard for Log Utilization Trend:
Navigate to the Grafana dashboard creation page and click on "Create a new dashboard".
Add a new panel to the dashboard:
Click "Add panel" and choose "Add Query".
Select Elasticsearch as the data source.
Construct a query to retrieve log data. For example, you might use a date histogram to aggregate logs over time.
Configure the query to show the count of log entries over a specified time interval (e.g., hourly, daily).
Example: Query for Log Utilization Trend:
Here’s an example of an Elasticsearch query you might use in Grafana to visualize log utilization trends:
{
"query": {
"bool": {
"must": [
{
"range": {
"@timestamp": {
"gte": "now-7d/d",
"lte": "now"
}
}
}
]
}
},
"aggs": {
"logs_over_time": {
"date_histogram": {
"field": "@timestamp",
"interval": "day"
}
}
}
}