Splunk AppDynamics

AppDynamics for Gateway API kind microservices

Sai_Singamsetty
Explorer

Hi, We have recently started working on AppD for our micro-services architecture.

We could successfully setup for all microservices and able to see the traffic and all sorts of dynamics.

But for one main Gateway API for all microservices, we are not able to see any traffic. 

This Gateway API is built with .net core 2.2 and used Ocelot to reroute service calls to the microservices. There is no controllers written in Gateway. It is a plain micro-service which is used for authenticating calls and reroute to respective microservices using Ocelot.

I want to know is there any specific kind of configuration for these type of micro-services to enable appD ? Please clarify us

Labels (1)
0 Karma
1 Solution

Morelz
Builder

Hi Sai

No code changes required within the Ocelot App

The first step is to update the agent to latest version, as normally it should pick up the Transactions Out of the Box.

Failing this ,you create a Business Transaction Detection Rule , using the following

You are basically just telling the AppDynamics Agent, that this is the starting point of this transaction, please capture from here.

It should bring back a BT for each "proxy endpoint" that is hit on the Ocelot Load Balancer

Please restart the Machine Coordinator, and then the App after making these changes

Agent Type - .Net

Entry Point Type - Class/Method

image.png

Then add the configuration as below

 

image.png

View solution in original post

Morelz
Builder

Hi There

Which Agent version are you using? Please use 20.3 upwards, and latest version if you can.

It should work OOB, however if it doesn't, try the below POCO

Class - Ocelot.LoadBalancer.Middleware.LoadBalancingMiddleware
Method- Invoke
Split BT on - Method param
Param index - 0
Getter Chain - this.HttpContext.Request.Path.Value

Ciao

Sai_Singamsetty
Explorer

I will check the Agent version and I will upgrade it with my DevOps team mate,

First of all thanks for your reply, Its really helpful. 

Can you help me understanding a little bit more..

Do you want me to add Middleware Logic and Write some login in Invoke method ?

Yes I agree every request now hits this middleware's Invoke method

I could not understand the last 3 parameters, Can you help me on that, please.

-Split BT on - Method param
-Param index - 0
-Getter Chain - this.HttpContext.Request.Path.Value

What does Split BT means ? How this Getter chain will help me in generating appDynamics.

Many thanks in advance @Mario.Morelli 

0 Karma

Morelz
Builder

Hi Sai

No code changes required within the Ocelot App

The first step is to update the agent to latest version, as normally it should pick up the Transactions Out of the Box.

Failing this ,you create a Business Transaction Detection Rule , using the following

You are basically just telling the AppDynamics Agent, that this is the starting point of this transaction, please capture from here.

It should bring back a BT for each "proxy endpoint" that is hit on the Ocelot Load Balancer

Please restart the Machine Coordinator, and then the App after making these changes

Agent Type - .Net

Entry Point Type - Class/Method

image.png

Then add the configuration as below

 

image.png

Sai_Singamsetty
Explorer

Thank you so much @Mario.Morelli , It worked !! 

0 Karma

Morelz
Builder

That's great

Glad to have helped:)

Ciao

0 Karma
Get Updates on the Splunk Community!

New This Month - Splunk Observability updates and improvements for faster ...

What’s New? This month, we’re delivering several enhancements across Splunk Observability Cloud for faster and ...

What's New in Splunk Cloud Platform 9.3.2411?

Hey Splunky People! We are excited to share the latest updates in Splunk Cloud Platform 9.3.2411. This release ...

Buttercup Games: Further Dashboarding Techniques (Part 6)

This series of blogs assumes you have already completed the Splunk Enterprise Search Tutorial as it uses the ...