Skip to content
Technology preview that show-cases Instana's tracing for NGINX
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
client-app
images
nginx
server-app
LICENSE
README.md
docker-compose.yml

README.md

Instana NGINX Tracing Demo

This repository contains a technology preview for Instana's NGINX tracing functionality.

Disclaimer

Instana NGINX tracing is currently a technology preview. Any use of this technical preview, especially in production, is not supported!

We reserve ourselves the right to make it better and easier before releasing the functionality for General Availability.

Prerequisites

A docker-compose installation running on your machine. This demo has been created and tested on Mac OS X with docker-compose and docker-machine.

Configure

Create a .env file in the root of the checked-out version of this repository and enter the following text, with the values adjusted as necessary:

agent_key=<TODO FILL UP>
agent_endpoint=<local ip or remote host; e.g., saas-us-west-2.instana.io>
agent_endpoint_port=<443 already set as default; or 4443 for local>
agent_zone=<name of the zone for the agent; default: envoy-tracing-demo>

Build

pushd client-app
./mvnw clean package
popd

pushd server-app
./mvnw clean package
popd

docker-compose build

Launch

docker-compose up

This will build and launch

  • client-app service, a simple Spring Boot application that issues a request every second to the ...
  • nginx service, which routes all incoming requests to the ...
  • server-app service, a simple Spring Boot application that returns 200 to any HTTP request.

After the agent is bootstrapped and starts accepting spans from NGINX, the resulting traces in the Analyze view will look like the following:

Service dashboard

Demo traces in the Analyze view

Naturally, all the other NGINX capabilities of Instana will work out of the box as well ;-)

Setup an Application Perspective for the Demo

The simplest way is just to assign to the agent a unique zone (the docker-compose.yml file comes with the pre-defined nginx-tracing-demo zone), and simply create the application to contain all calls with the agent.zone tag to have the value nginx-tracing-demo.

You can’t perform that action at this time.