New Relic
imgproxy can send its metrics to New Relic. To use this feature, do the following:
- Register at New Relic and get a license key.
- Set the
IMGPROXY_NEW_RELIC_KEYenvironment variable to the license key. - (optional) Set the
IMGPROXY_NEW_RELIC_APP_NAMEenvironment variable to be the desired application name. - (optional) Set the
IMGPROXY_NEW_RELIC_LABELSenvironment variable to be the desired list of labels. Example:label1=value1;label2=value2. - (optional) Set the
IMGPROXY_NEW_RELIC_PROPAGATE_EXTERNALenvironment variable totrueto propagate New Relic tracing headers to external requests such as image downloads. Default:false.
imgproxy will send the following info to New Relic:
- CPU and memory usage
- Response time
- Queue time
- Image downloading time
- Image processing time
- Errors that occurred while downloading and processing an image
Additionally, imgproxy sends the following metrics over Metrics API as timescales (all metric names are prefixed with Custom/imgproxy/):
workers: the configured number of imgproxy workersrequests_in_progress: the number of requests currently in progressimages_in_progress: the number of images currently in progressworkers_utilization: the percentage of imgproxy's workers utilization. Calculated asrequests_in_progress / workers * 100buffer/size: a summary of the download buffers sizes (in bytes)buffer/default_size: calibrated default buffer size (in bytes)buffer/max_size: calibrated maximum buffer size (in bytes)vips/memory: libvips memory usage (in bytes)vips/max_memory: libvips maximum memory usage (in bytes)vips/allocs: the number of active vips allocations