Let’s set up your own environment for monitoring and tracing containerized apps.
Let’s set up your own application monitoring and tracing environment for containerized applications.
I am going to use SigNoz as an example, but there are many open-source alternatives listed at the end of this article that you can use.
SigNoz helps developers monitor their applications and troubleshoot problems. It is an open-source alternative to DataDog, NewRelic, etc.
Setting up SigNoz
I am going to set up SigNoz using Docker.
- Clone the repository.
git clone https://github.com/SigNoz/signoz.git && cd signoz/deploy/
- Run docker-compose.
sudo docker-compose -f ./docker/clickhouse-setup/docker-compose.yaml up -d
- Using your browser, navigate to http://localhost:3000/. Type in any email address and name, and click Getting Started. You should see the dashboard similar to below.
Instrumenting Your Applications
SigNoz uses OpenTelemetry as the primary way for users to instrument their applications.
OpenTelemetry is a single, vendor-agnostic instrumentation library per language with support for both automatic and manual instrumentation. It provides open-standard semantic conventions to ensure vendor-agnostic data collection.
There are a few sample applications available in the SigNoz repository. Let’s try a few of them.
Python
This sample app requires MongoDB. Make sure it is installed.
- Clone the repository.
git clone https://github.com/SigNoz/sample-flask-app.git
- Install the required libraries.