NGINX Amplify Agent
 
 
 
Go to file
Mohammed Jasil 48de78f9ae
Fix TypeError in exponential_delay function when handling connection timeouts
Problem:
- Agent v1.8.3-1~noble crashes on Ubuntu 24.04 with TypeError when receiver.amplify.nginx.com times out
- Error occurs in backoff.py: "TypeError: 'float' object cannot be interpreted as an integer"
- The issue prevents proper exponential backoff during network connectivity problems
- Agent completely stops instead of retrying with the backoff delay

Solution:
- Add explicit integer type conversion to period_size before passing to randint()
- Convert: return randint(0, period_size - 1)
- To: return randint(0, int(period_size) - 1)

This fix allows the agent to properly handle connection timeouts without crashing.
The issue appears to be specific to Python 3.12 used in Ubuntu 24.04 Noble, as
the agent works correctly on Ubuntu 22.04 Jammy with Python 3.10.

Fixes #124
2025-04-02 12:02:55 +05:30
amplify Fix TypeError in exponential_delay function when handling connection timeouts 2025-04-02 12:02:55 +05:30
etc Update agent version to 1.8.3 (#119) 2025-01-14 11:32:56 +04:00
log 1.8.0 - new Python 3 based agent version 2022-08-19 12:39:59 +04:00
packages Update agent version to 1.8.3 (#119) 2025-01-14 11:32:56 +04:00
tools Update agent version to 1.8.3 (#119) 2025-01-14 11:32:56 +04:00
.gitignore 1.8.0 - new Python 3 based agent version 2022-08-19 12:39:59 +04:00
LICENSE 1.8.0 - new Python 3 based agent version 2022-08-19 12:39:59 +04:00
MANIFEST.in 1.8.0 - new Python 3 based agent version 2022-08-19 12:39:59 +04:00
README.md Update agent version to 1.8.3 (#119) 2025-01-14 11:32:56 +04:00
nginx-amplify-agent.py 1.8.0 - new Python 3 based agent version 2022-08-19 12:39:59 +04:00

README.md

NGINX Amplify Agent

The NGINX Amplify Agent is a Python application that provides system and NGINX metric collection. It is part of NGINX Amplify — a free configuration monitoring tool for NGINX.

Please check the list of the supported operating systems here.

This repository is not for installation purposes. To install the agent, please follow this document.

For more information about NGINX Amplify, please check the official documentation here.