Prometheus monitoring across AWS accounts

661 views
Skip to first unread message

shyam...@gmail.com

unread,
Nov 2, 2017, 11:57:26 AM11/2/17
to Prometheus Users
Hi,

We have an AWS setup where we host different environments in different AWS accounts. We use cross account roles extensively to assume a role of an environment and build resources.

We are having a setup where we have Prometheus setup in an AWS account called Tools and we were hoping it to monitor instances in other AWS accounts such as Dev, Prod. Can we associate a cross account role to ec2_sd_config setup ?

Alternatively, we can setup a prometheus cluster per environment but trying to avoid that for just ease of maintenance standpoint.

Any help will be appreciated.

Thanks
Shyam

Brian Brazil

unread,
Nov 2, 2017, 12:00:01 PM11/2/17
to shyam...@gmail.com, Prometheus Users
On 2 November 2017 at 15:57, <shyam...@gmail.com> wrote:
Hi,

We have an AWS setup where we host different environments in different AWS accounts. We use cross account roles extensively to assume a role of an environment and build resources.

We are having a setup where we have Prometheus setup in an AWS account called Tools and we were hoping it to monitor instances in other AWS accounts such as Dev, Prod. Can we associate a cross account role to ec2_sd_config setup ?

Sure, have a ec2_sd_config each with appropriate credentials. You'll also need to ensure networking allows Prometheus to connect to everything it needs to.

Brian
 

Alternatively, we can setup a prometheus cluster per environment but trying to avoid that for just ease of maintenance standpoint.

Any help will be appreciated.

Thanks
Shyam

--
You received this message because you are subscribed to the Google Groups "Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-users+unsubscribe@googlegroups.com.
To post to this group, send email to prometheus-users@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/0d31c3d4-b8aa-48cf-8d1e-ed8c2ea4216d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--

Shyam Vala

unread,
Nov 2, 2017, 12:16:30 PM11/2/17
to Prometheus Users
Thank you.

Shyam Vala

unread,
Nov 2, 2017, 12:17:00 PM11/2/17
to Prometheus Users
Thanks Brian.


On Thursday, November 2, 2017 at 12:00:01 PM UTC-4, Brian Brazil wrote:
On 2 November 2017 at 15:57, <shyam...@gmail.com> wrote:
Hi,

We have an AWS setup where we host different environments in different AWS accounts. We use cross account roles extensively to assume a role of an environment and build resources.

We are having a setup where we have Prometheus setup in an AWS account called Tools and we were hoping it to monitor instances in other AWS accounts such as Dev, Prod. Can we associate a cross account role to ec2_sd_config setup ?

Sure, have a ec2_sd_config each with appropriate credentials. You'll also need to ensure networking allows Prometheus to connect to everything it needs to.

Brian
 

Alternatively, we can setup a prometheus cluster per environment but trying to avoid that for just ease of maintenance standpoint.

Any help will be appreciated.

Thanks
Shyam

--
You received this message because you are subscribed to the Google Groups "Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-use...@googlegroups.com.
To post to this group, send email to promethe...@googlegroups.com.



--
Reply all
Reply to author
Forward
0 new messages