https://github.com/pratikshinde55/grafana-interact-cloudwatch
Grafana interact with AWS CloudWatch DataSource
https://github.com/pratikshinde55/grafana-interact-cloudwatch
Last synced: 3 months ago
JSON representation
Grafana interact with AWS CloudWatch DataSource
- Host: GitHub
- URL: https://github.com/pratikshinde55/grafana-interact-cloudwatch
- Owner: Pratikshinde55
- Created: 2024-08-21T12:44:45.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2024-09-24T12:55:41.000Z (8 months ago)
- Last Synced: 2025-01-13T16:50:27.341Z (4 months ago)
- Homepage:
- Size: 40 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README

# Grafana interact with aws CloudWatch data source
**Grafana is open-source software tool that helps user visualize, query, and understand data.**
Grafana capture data from all services and give **"Single pane of glass"** view.
Grafana give entire visibilty stack.
**Grafana create visuale on the to of "Metrics","logs","Traces".**
Grafana is powerfull in Metrics perspective.
## How to download grafana:
I use aws instance for download grafana (AMI- amazon linux 2)
Search on google grafana download for linux and download Standalone Linux Binaries 64 Bit tar file.
Link- [Grafana-Download](https://grafana.com/grafana/download )
Command for download grafana:
wget https://dl.grafana.com/enterprise/release/grafana-enterprise-11.2.0.linux-amd64.tar.gz
Command for Extract Grafana:
tar -zxvf grafana-enterprise-11.2.0.linux-amd64.tar.gz
Now start Grafana server:
./grafana-server &

- Note:Grafana work on port no **3000**.
Grafana work on protocol = **HTTP**.
- Connect grafana webUI:
Now connect to grafana by webUI --->> Public Ip:port no (http://43.204.97.131:3000)
- Note:
Edit Inbound rule of grafana instance: (Enable port 3000 to my IP)

Grafana WEbUI:

## Grafana interact with AWS Cloud Watch:
Grafana neither collect data nor store data, Grafana feedig or taking data from Data Source.
AWS cloud have their own **"CloudWatch"** for collecting metrics.
Now, we connect grafana to CloudWatch Data Source".
### Step 1: [Add new data source as Cloud fwatch]
On Grafana WebUI go to "Connections" Here we see "Add new Data Source" -->> Search and select "Cloud Watch".

### Step 2: [Authentication Create IAM user]
Now we need Authentication to access aws Cloud Watch, so select access key & secreate key.
- For this i create IAM user on aws console.

- Create Key for "Third-party service"

- Now Fill/paste key

### Step 3: [Now we Create query]
Go to Explore and add select out data Source for which we run query.

- I run a query for test using EC2 instanceID

### I create Dash board for monitoring EKS service:
I create autoscaling for Nodes and pods and i increase load on application and monitor from Grafana.
This is link for EKS Autoscaling setUp - [AWS-EKS-AutoScale](https://github.com/Pratikshinde55/EKS-Autoscaler-Pod-Node.git)
- Before load increase
- After Load increase
