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.
![](/_next/image?url=https%3A%2F%2Fassets.community.aws%2Fa%2F2bjL9fRnP4Sucn32hxxTT6XS5tt.webp%3FimgSize%3D1366x625&w=3840&q=75)
The following is the Prometheus configuration that I made.
The following are Prometheus targets that have been previously configured and successfully executed queries from the exporter node that was previously installed.
![](/_next/image?url=https%3A%2F%2Fassets.community.aws%2Fa%2F2bjLKNPySBxbUpIMvKBoDBUaGSh.webp%3FimgSize%3D1366x722&w=3840&q=75)
![](/_next/image?url=https%3A%2F%2Fassets.community.aws%2Fa%2F2bjLNmuFZFTCDUUF99QF6OcEvf9.webp%3FimgSize%3D1366x719&w=3840&q=75)
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](/_next/image?url=https%3A%2F%2Fassets.community.aws%2Fa%2F2bjLSmorHWo9iSjeyxLoXRDX9Ld.webp%3FimgSize%3D1366x599&w=3840&q=75)
![](/_next/image?url=https%3A%2F%2Fassets.community.aws%2Fa%2F2bjLWXz8NWWjZezhfr5p6LPLFLo.webp%3FimgSize%3D1366x598&w=3840&q=75)
![](/_next/image?url=https%3A%2F%2Fassets.community.aws%2Fa%2F2bjLaSUffBbeSjLVcrObKObqxmH.webp%3FimgSize%3D1366x619&w=3840&q=75)
![](/_next/image?url=https%3A%2F%2Fassets.community.aws%2Fa%2F2bjLeK4graGPy0t331KHwgoimd0.webp%3FimgSize%3D1366x625&w=3840&q=75)
![](/_next/image?url=https%3A%2F%2Fassets.community.aws%2Fa%2F2bjLuumjmQUwVm9MR9mSIfhcWGt.webp%3FimgSize%3D1366x596&w=3840&q=75)
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
![](/_next/image?url=https%3A%2F%2Fassets.community.aws%2Fa%2F2bjM1vwDpkiVxRAIMvOftINukI5.webp%3FimgSize%3D946x430&w=3840&q=75)
![](/_next/image?url=https%3A%2F%2Fassets.community.aws%2Fa%2F2bjM4kGp5V6BmP1wJwrlysgW2Kp.webp%3FimgSize%3D1110x584&w=3840&q=75)
so, let's try Cloudwatch multi-source queries now.