http://www.elastician.com/2009/05/using-ec2-cloudwatch-in-boto.html
API (which is what I am using):
http://boto.s3.amazonaws.com/ref/ec2.html?highlight=cloudwatch#the-5-minute-how-to-guide
What is the proper way?
Berco
--
You received this message because you are subscribed to the Google Groups "boto-users" group.
To post to this group, send email to boto-...@googlegroups.com.
To unsubscribe from this group, send email to boto-users+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/boto-users?hl=en.
ec2conn.monitor_instance('i-12345678')
But I expected list_metrics() to display the metrics of existing
cloudwatches as well, not just the ones you create from within boto.
Shouldn't it?
Cheers,
Berco
On Mar 25, 11:50 pm, Mitchell Garnaat <mitch.garn...@gmail.com> wrote:
> Well, both of the resources you link to start with this basic sequence of
> calls:
>
> >>> import boto
> >>> c = boto.connect_cloudwatch()
> >>> metrics = c.list_metrics()
>
> and you are saying that this call returns an empty list for you?
>
> Mitch
>
> On Thu, Mar 25, 2010 at 6:30 PM, Berco Beute <cybe...@gmail.com> wrote:
> > Although I have quite some instances with cloudwatch enabled (and
> > around 10 Elastic Load Balancers), 'list_metrics' returns an empty
> > list. It is confusing that this example is different from the one in
> > the APi:
>
> >http://www.elastician.com/2009/05/using-ec2-cloudwatch-in-boto.html
>
> > API (which is what I am using):
>
> >http://boto.s3.amazonaws.com/ref/ec2.html?highlight=cloudwatch#the-5-...
>
> > What is the proper way?
>
> > Berco
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "boto-users" group.
> > To post to this group, send email to boto-...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > boto-users+...@googlegroups.com<boto-users%2Bunsu...@googlegroups.com>
To unsubscribe from this group, send email to boto-users+...@googlegroups.com.
I suddenly realized it is probably because I am connecting to the
right region. The region I ul to connect to is eu-west-1, which is not
the default. Now the question becomes how I can connect to cloudwatch
in another region.
--
c = boto.connect_cloudwatch(host='monitoring.eu-west-1.amazonaws.com',
aws_access_key_id='bla', aws_secret_access_key='bla')
but mind that I didn't include the 'https' protocol for the 'host'
keyword argument.
I am a huge fan of your boto library, but to be honest, the handling
of different regions leaves much to be desired. This is of course due
to the lack of documentation and that the places where and how to
specify the region feels inconsistent. But still, these are minor
issue, overal I am very content with boto.
Cheers,
Berco
--