logo
Menu

Prometheus integration with CloudWatch

Integrate Prometheus with Cloudwatch multi-source queries

Published Jan 31, 2024
Hello guys, so today I want to integrate Prometheus with Cloudwatch multi-source queries. For the instance itself, here we use the spot instance t1.micro called prometheus (172.31.71.16) with node exporter, prometheus, apache, and apache exporter installed.
The following is the Prometheus configuration that I made.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
global:
scrape_interval: 10s
evaluation_interval: 15s

scrape_configs:
- job_name: 'prometheus'
static_configs:
- targets: ['172.31.71.16:9090']

- job_name: 'node-exporter'
scrape_interval: 5s
static_configs:
- targets: ['172.31.71.16:9100']

- job_name: 'apache-exporter'
scrape_interval: 5s
static_configs:
- targets: ['172.31.71.16:9117']
The following are Prometheus targets that have been previously configured and successfully executed queries from the exporter node that was previously installed.
Next, create a dashboard in Cloud Watch, then enter the Prometheus data source. Later there will be an automatic stack cloud formation that will be created.
create dashboard name
create dashboard name
choose data source prometheus
this will create stack on cloudformation
and you can set your graphic on cloudwatch from data source prometheus
FYI, apart from Prometheus, there are also other data sources that can be integrated with CloudWatch. There are Amazon OpenSearch, Amazon Prometheus, Amazon RDS — MySQL, Amazon RDS — PostgreSQL, Amazon S3 — CSV, Custom — getting started template, Azure Monitor, and Prometheus
so, let's try Cloudwatch multi-source queries now.
 

Comments