33
loading...
This website collects cookies to deliver better user experience
git clone https://github.com/SigNoz/signoz.git
cd signoz/deploy/
./install.sh
install.sh
script will install SigNoz for you. Trying out SigNoz with ClickHouse database takes less than 1.5GB of memory.requirements.txt
file under app
folder in this sample app.git clone https://github.com/sureshdsk/sample-fastapi-app.git
cd sample-fastapi-app/
docker build -t sample-fastapi-app .
# If you have your SigNoz IP Address, replace <IP of SigNoz> with your IP Address.
docker run -d --name fastapi-container \
-e OTEL_METRICS_EXPORTER='none' \
-e OTEL_RESOURCE_ATTRIBUTES='service.name=fastapiApp' \
-e OTEL_EXPORTER_OTLP_ENDPOINT='http://<IP of SigNoz>:4317' \
-p 5000:5000 sample-fastapi-app
# If you are running signoz through official docker-compose setup, run `docker network ls` and find clickhouse network id. It will be something like this clickhouse-setup_default
# and pass network id by using --net <network ID>
docker run -d --name fastapi-container \
--net clickhouse-setup_default \
--link clickhouse-setup_otel-collector_1 \
-e OTEL_METRICS_EXPORTER='none' \
-e OTEL_RESOURCE_ATTRIBUTES='service.name=fastapiApp' \
-e OTEL_EXPORTER_OTLP_ENDPOINT='http://clickhouse-setup_otel-collector_1:4317' \
-p 5000:5000 sample-fastapi-app
<IP of SigNoz>
with localhost
and the final command will look like below:docker run -d --name fastapi-container \
-e OTEL_METRICS_EXPORTER='none' \
-e OTEL_RESOURCE_ATTRIBUTES='service.name=fastapiApp' \
-e OTEL_EXPORTER_OTLP_ENDPOINT='http://localhost:4317' \
-p 5000:5000 sample-fastapi-app
pip install locust
locust -f locust.py --headless --users 10 --spawn-rate 1 -H http://localhost:5000
fastapiAPP
in the list of sample applications being monitored by SigNoz.#help
channel.