Thumbor metrics extension that forwards metrics to New Relic
Project description
Thumbor NewRelic Metrics Plugin
Send Thumbor runtime metrics to your NewRelic account.
Status
Installation
# master branch
pip install -e git+https://github.com/jcord04/thumbor-newrelic.git@master#egg=tc_newrelic
# latest stable
pip install tc_newrelic
Configuration
# Use New Relic metrics instead of the default
METRICS = 'tc_newrelic.metrics.newrelic_metrics'
# Required: Your New Relic License Key
NEWRELIC_LICENSE_KEY = 'your_license_key_here'
# Optional configurations with defaults
NEWRELIC_METRIC_API_URL = 'https://metric-api.newrelic.com/metric/v1' # Change for EU or other regions
NEWRELIC_APP_NAME = 'Thumbor' # The application name in New Relic
NEWRELIC_SEND_INTERVAL_SECONDS = 15 # How often to send metrics (in seconds)
Metrics
This plugin collects the same metrics as the Prometheus plugin for Thumbor and forwards them to New Relic. The metrics are sent with the prefix custom.thumbor. to distinguish them in New Relic.
The following metrics are collected:
response.status- HTTP status codes of responsesresponse.format- Format of responsesresponse.bytes- Size of responses in bytesresponse.time- Response timeoriginal_image.status- Status of original image fetchesoriginal_image.fetch- Time to fetch original images
Viewing Metrics in New Relic
You can view the metrics in New Relic using NRQL queries. For example:
SELECT count(*) FROM Metric WHERE metricName LIKE 'custom.thumbor.%' FACET metricName SINCE 1 hour ago TIMESERIES
Or create a dashboard with specific metrics:
SELECT sum(value) FROM Metric WHERE metricName = 'custom.thumbor.response.status' AND statuscode = '200' SINCE 1 day ago TIMESERIES
Multiple Processes Support
If running Thumbor with multiple processes, you should be able to use this plugin without any additional configuration. The metrics are aggregated in-memory and sent to New Relic periodically.
License
This project is licensed under the MIT License - see the LICENSE file for details.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file tc_newrelic-1.0.2.tar.gz.
File metadata
- Download URL: tc_newrelic-1.0.2.tar.gz
- Upload date:
- Size: 7.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c1a0d61705d1e72811b2ac633672c72a77d137a2da68757cdff3137072cbebae
|
|
| MD5 |
8deb6704732e8c0f773a3cc2e7d03335
|
|
| BLAKE2b-256 |
e6456cfcba7d66eac67bcbba77aceda9c2100b8ac310edc66577998a26be69f0
|
Provenance
The following attestation bundles were made for tc_newrelic-1.0.2.tar.gz:
Publisher:
python-publish.yml on jcord04/thumbor-newrelic
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
tc_newrelic-1.0.2.tar.gz -
Subject digest:
c1a0d61705d1e72811b2ac633672c72a77d137a2da68757cdff3137072cbebae - Sigstore transparency entry: 220474799
- Sigstore integration time:
-
Permalink:
jcord04/thumbor-newrelic@ae408bdd6b394f5a59e49c67364b8818cfa3532c -
Branch / Tag:
refs/tags/1.0.2 - Owner: https://github.com/jcord04
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@ae408bdd6b394f5a59e49c67364b8818cfa3532c -
Trigger Event:
release
-
Statement type:
File details
Details for the file tc_newrelic-1.0.2-py3-none-any.whl.
File metadata
- Download URL: tc_newrelic-1.0.2-py3-none-any.whl
- Upload date:
- Size: 7.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c0b1e2e3f3736f7f2fd145e66b4f1a74e275f76971b343aa037a09672310f182
|
|
| MD5 |
6fb0c3cf563552eae49fa9a66603dcb8
|
|
| BLAKE2b-256 |
bab82ea5f6c37fefc74a1bdfc8e57d8a83d066772adeaf9fe2514ded01b03b93
|
Provenance
The following attestation bundles were made for tc_newrelic-1.0.2-py3-none-any.whl:
Publisher:
python-publish.yml on jcord04/thumbor-newrelic
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
tc_newrelic-1.0.2-py3-none-any.whl -
Subject digest:
c0b1e2e3f3736f7f2fd145e66b4f1a74e275f76971b343aa037a09672310f182 - Sigstore transparency entry: 220474803
- Sigstore integration time:
-
Permalink:
jcord04/thumbor-newrelic@ae408bdd6b394f5a59e49c67364b8818cfa3532c -
Branch / Tag:
refs/tags/1.0.2 - Owner: https://github.com/jcord04
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@ae408bdd6b394f5a59e49c67364b8818cfa3532c -
Trigger Event:
release
-
Statement type: