Re: [prometheus-developers] [cloudwatch exporter] API usage optimization

2022-04-20 Thread Or Shachar
Not sure about cheaper because the pricing is the same (per metric
requested).
But for sure it will be much faster. One request of GetMetricData can
retrieve the same amount of data as 500 requests of GetMetricStatistics.

On Tue, Apr 19, 2022 at 7:02 PM Stuart Clark 
wrote:

> On 2022-04-19 16:14, Or Shachar wrote:
> > Hi,
> >
> > Our company recently hit this issue [1] - with `/metrics` endpoint
> > taking > 20s to load.
> > I started working on a solution and I saw that big contributions
> > should start with a short discussion here.
> > Pardon for starting the work in advance.
> >
> > I'd really appreciate a short review of the suggested solution.
> > https://github.com/prometheus/cloudwatch_exporter/pull/414
> >
> > Also - I wonder if we should migrate to
> > https://github.com/nerdswords/yet-another-cloudwatch-exporter even
> > though it's not under the official Prometheus organization.
> >
> > Thanks in advance!
> >
> > keywords:
> > - getMetricStatistics
> > - getMericData
> > - cloudwatch
> >
>
> So are you intending on trying to move to using the bulk multi-request
> API call where possible to reduce the number of calls & make things
> quicker/cheaper?
>
> --
> Stuart Clark
>


-- 
בברכה,
  אור שחר

-- 
You received this message because you are subscribed to the Google Groups 
"Prometheus Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to prometheus-developers+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-developers/CAKztEin4Upw-5v_Jj_vkwopxxXhD8bJB2cVZXw6-CnGk%2BwpKpA%40mail.gmail.com.


Re: [prometheus-developers] [cloudwatch exporter] API usage optimization

2022-04-19 Thread Stuart Clark

On 2022-04-19 16:14, Or Shachar wrote:

Hi,

Our company recently hit this issue [1] - with `/metrics` endpoint
taking > 20s to load.
I started working on a solution and I saw that big contributions
should start with a short discussion here.
Pardon for starting the work in advance.

I'd really appreciate a short review of the suggested solution.
https://github.com/prometheus/cloudwatch_exporter/pull/414

Also - I wonder if we should migrate to
https://github.com/nerdswords/yet-another-cloudwatch-exporter even
though it's not under the official Prometheus organization.

Thanks in advance!

keywords:
- getMetricStatistics
- getMericData
- cloudwatch



So are you intending on trying to move to using the bulk multi-request 
API call where possible to reduce the number of calls & make things 
quicker/cheaper?


--
Stuart Clark

--
You received this message because you are subscribed to the Google Groups 
"Prometheus Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to prometheus-developers+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-developers/0bb2614136d3f3e87a7e6416cd4224b1%40Jahingo.com.


[prometheus-developers] [cloudwatch exporter] API usage optimization

2022-04-19 Thread Or Shachar
Hi,

Our company recently hit this issue 
 - with `
/metrics` endpoint taking > 20s to load.
I started working on a solution and I saw that big contributions should 
start with a short discussion here.
Pardon for starting the work in advance. 

I'd really appreciate a short review of the suggested solution.
https://github.com/prometheus/cloudwatch_exporter/pull/414

Also - I wonder if we should migrate 
to https://github.com/nerdswords/yet-another-cloudwatch-exporter even 
though it's not under the official Prometheus organization.

Thanks in advance!

keywords:
- getMetricStatistics
- getMericData
- cloudwatch

-- 
You received this message because you are subscribed to the Google Groups 
"Prometheus Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to prometheus-developers+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-developers/11ec9fb2-1929-4f32-a864-f8c185d12541n%40googlegroups.com.