Backend listener for Graphite

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Backend listener for Graphite

Walker Mellema-2
Hello,

I'm new to this mailing list.

We use Graphite as the backend for Grafana. I'd like to use the Backend
Listener to send load test data to our Graphite instance but I don't see
any way to authenticate. We use ID tokens (kind of like a Bearer token) for
authentication. Anybody know how to make this work?

Walker
Reply | Threaded
Open this post in threaded view
|

Re: Backend listener for Graphite

Philippe Mouawad
Hello,
This is not supported OOTB.
Can you clarify how bearer is transmitted ?:

   - Cookie
   - Header
   - Parameter

If it's not as a parameter, you would need to alter jmeter source code,
maybe we could introduce the concept of some preprocessor that you would
implement and that would alter the HTTP request before sending it.

Regards

On Wednesday, April 11, 2018, Walker Mellema <walker.mellema@hotschedules.
com> wrote:

> Hello,
>
> I'm new to this mailing list.
>
> We use Graphite as the backend for Grafana. I'd like to use the Backend
> Listener to send load test data to our Graphite instance but I don't see
> any way to authenticate. We use ID tokens (kind of like a Bearer token) for
> authentication. Anybody know how to make this work?
>
> Walker
>
Philippe M.
@philmdot
http://ubikloadpack.com
Reply | Threaded
Open this post in threaded view
|

Re: Backend listener for Graphite

Philippe Mouawad
Hello,

My previous answer is wrong regarding Graphite.
JMeter sends data using Pickle or Text format:
http://graphite.readthedocs.io/en/latest/feeding-carbon.
html#the-plaintext-protocol
http://graphite.readthedocs.io/en/latest/feeding-carbon.
html#the-pickle-protocol

It's not http, but writing to a socket, so the Bearer Header here looks
strange.

Regards

On Wed, Apr 11, 2018 at 8:01 PM, Philippe Mouawad <
[hidden email]> wrote:

> Hello,
> This is not supported OOTB.
> Can you clarify how bearer is transmitted ?:
>
>    - Cookie
>    - Header
>    - Parameter
>
> If it's not as a parameter, you would need to alter jmeter source code,
> maybe we could introduce the concept of some preprocessor that you would
> implement and that would alter the HTTP request before sending it.
>
> Regards
>
> On Wednesday, April 11, 2018, Walker Mellema <
> [hidden email]> wrote:
>
>> Hello,
>>
>> I'm new to this mailing list.
>>
>> We use Graphite as the backend for Grafana. I'd like to use the Backend
>> Listener to send load test data to our Graphite instance but I don't see
>> any way to authenticate. We use ID tokens (kind of like a Bearer token)
>> for
>> authentication. Anybody know how to make this work?
>>
>> Walker
>>
>


--
Cordialement.
Philippe Mouawad.
Philippe M.
@philmdot
http://ubikloadpack.com
Reply | Threaded
Open this post in threaded view
|

Re: Backend listener for Graphite

Walker Mellema-2
Thanks Philippe. All of our incoming traffic is authenticated using an
ID/Bearer token. In fact, I posted the original question after talking to
our infra team and being told that the Graphite endpoint needs an ID token
for authentication.  I'm not a network guy but perhaps our Graphite server
sits behind an endpoint where incoming traffic goes through authentication
and then is directed to the appropriate (in this case Graphite) server.

On Wed, Apr 11, 2018 at 12:41 PM, Philippe Mouawad <
[hidden email]> wrote:

> Hello,
>
> My previous answer is wrong regarding Graphite.
> JMeter sends data using Pickle or Text format:
> http://graphite.readthedocs.io/en/latest/feeding-carbon.
> html#the-plaintext-protocol
> http://graphite.readthedocs.io/en/latest/feeding-carbon.
> html#the-pickle-protocol
>
> It's not http, but writing to a socket, so the Bearer Header here looks
> strange.
>
> Regards
>
> On Wed, Apr 11, 2018 at 8:01 PM, Philippe Mouawad <
> [hidden email]> wrote:
>
> > Hello,
> > This is not supported OOTB.
> > Can you clarify how bearer is transmitted ?:
> >
> >    - Cookie
> >    - Header
> >    - Parameter
> >
> > If it's not as a parameter, you would need to alter jmeter source code,
> > maybe we could introduce the concept of some preprocessor that you would
> > implement and that would alter the HTTP request before sending it.
> >
> > Regards
> >
> > On Wednesday, April 11, 2018, Walker Mellema <
> > [hidden email]> wrote:
> >
> >> Hello,
> >>
> >> I'm new to this mailing list.
> >>
> >> We use Graphite as the backend for Grafana. I'd like to use the Backend
> >> Listener to send load test data to our Graphite instance but I don't see
> >> any way to authenticate. We use ID tokens (kind of like a Bearer token)
> >> for
> >> authentication. Anybody know how to make this work?
> >>
> >> Walker
> >>
> >
>
>
> --
> Cordialement.
> Philippe Mouawad.
>



--
Walker B. Mellema  |  Senior QA Engineer  |  ​415.420.5513
Reply | Threaded
Open this post in threaded view
|

Re: Backend listener for Graphite

Walker Mellema-2
OK I've discovered why this seems weird.

We're actually using Grafana's Host Metrics. They provide an API endpoint
that sends payloads to Graphite in the cloud.

So, the Backend Listener isn't going to be viable for our needs.

On Wed, Apr 11, 2018 at 12:49 PM, Walker Mellema <
[hidden email]> wrote:

> Thanks Philippe. All of our incoming traffic is authenticated using an
> ID/Bearer token. In fact, I posted the original question after talking to
> our infra team and being told that the Graphite endpoint needs an ID token
> for authentication.  I'm not a network guy but perhaps our Graphite server
> sits behind an endpoint where incoming traffic goes through authentication
> and then is directed to the appropriate (in this case Graphite) server.
>
> On Wed, Apr 11, 2018 at 12:41 PM, Philippe Mouawad <
> [hidden email]> wrote:
>
>> Hello,
>>
>> My previous answer is wrong regarding Graphite.
>> JMeter sends data using Pickle or Text format:
>> http://graphite.readthedocs.io/en/latest/feeding-carbon.
>> html#the-plaintext-protocol
>> http://graphite.readthedocs.io/en/latest/feeding-carbon.
>> html#the-pickle-protocol
>>
>> It's not http, but writing to a socket, so the Bearer Header here looks
>> strange.
>>
>> Regards
>>
>> On Wed, Apr 11, 2018 at 8:01 PM, Philippe Mouawad <
>> [hidden email]> wrote:
>>
>> > Hello,
>> > This is not supported OOTB.
>> > Can you clarify how bearer is transmitted ?:
>> >
>> >    - Cookie
>> >    - Header
>> >    - Parameter
>> >
>> > If it's not as a parameter, you would need to alter jmeter source code,
>> > maybe we could introduce the concept of some preprocessor that you would
>> > implement and that would alter the HTTP request before sending it.
>> >
>> > Regards
>> >
>> > On Wednesday, April 11, 2018, Walker Mellema <
>> > [hidden email]> wrote:
>> >
>> >> Hello,
>> >>
>> >> I'm new to this mailing list.
>> >>
>> >> We use Graphite as the backend for Grafana. I'd like to use the Backend
>> >> Listener to send load test data to our Graphite instance but I don't
>> see
>> >> any way to authenticate. We use ID tokens (kind of like a Bearer token)
>> >> for
>> >> authentication. Anybody know how to make this work?
>> >>
>> >> Walker
>> >>
>> >
>>
>>
>> --
>> Cordialement.
>> Philippe Mouawad.
>>
>
>
>
> --
> Walker B. Mellema  |  Senior QA Engineer  |  ​415.420.5513
>
>
>


--
Walker B. Mellema  |  Senior QA Engineer  |  ​415.420.5513