Metrics

StatsD Metrics in Tecken

Tecken uses StatsD with DogStatsD extensions.

Table of metrics:

Key

Type

tecken.api

timing

tecken.api_stats

timing

tecken.download_symbol

timing

tecken.download_symbol_code_id_lookup

incr

tecken.gunicorn_worker_abort

incr

tecken.remove_orphaned_files.delete_file

incr

tecken.remove_orphaned_files.delete_file_error

incr

tecken.remove_orphaned_files.timing

timing

tecken.symboldownloader_exists

timing

tecken.symboldownloader.file_age_days

histogram

tecken.syminfo.lookup.cached

incr

tecken.syminfo.lookup.timing

timing

tecken.upload_archive

timing

tecken.upload_download_by_url

timing

tecken.upload_dump_and_extract

timing

tecken.upload_file_exists

timing

tecken.upload_file_upload

timing

tecken.upload_file_upload_skip

incr

tecken.upload_file_upload_upload

incr

tecken.upload_gzip_payload

timing

tecken.upload_put_object

timing

tecken.upload_skip_early_compressed

incr

tecken.upload_skip_early_uncompressed

incr

tecken.upload_uploads

incr

tecken.useradmin_is_blocked_in_auth0

timing

tecken.sentry_scrub_error

incr

Metrics details:

tecken.api

Type: timing

Timer for how long it takes to handle an API request.

Tags:

  • endpoint: the API endpoint name

tecken.api_stats

Type: timing

Timer for how long it takes to compute upload API stats.

tecken.download_symbol

Type: timing

Timer for how long it takes to handle a download API request.

tecken.download_symbol_code_id_lookup

Type: incr

Counter for successful symbol code id lookups in download API.

tecken.gunicorn_worker_abort

Type: incr

Counter for number of gunicorn workers were terminated.

tecken.remove_orphaned_files.delete_file

Type: incr

Counter for successfully deleted orphaned files.

tecken.remove_orphaned_files.delete_file_error

Type: incr

Counter for errors encountered when deleting orphaned files.

tecken.remove_orphaned_files.timing

Type: timing

Timer for how long it took to run the remove_orphaned_files Django command.

tecken.symboldownloader_exists

Type: timing

Timer for retrieving object metadata indicating the symbols file exists in storage.

tecken.symboldownloader.file_age_days

Type: histogram

Histogram for how long the file has been in storage. Value is in days.

tecken.syminfo.lookup.cached

Type: incr

Counter for symbol information lookup.

Tags:

  • result: true or false as to whether symbol information came from the cache

tecken.syminfo.lookup.timing

Type: timing

Timer for how long it takes to look up symbol information.

tecken.upload_archive

Type: timing

Timer for how long it takes to handle an upload API request.

tecken.upload_download_by_url

Type: timing

Timer for how long it takes to download the symbols zip archive from the download url indicated in the upload API payload.

tecken.upload_dump_and_extract

Type: timing

Timer for how long it takes to unzip the symbols zip archive and extract files to a temporary directory on disk.

tecken.upload_file_exists

Type: timing

Timer for retrieving object metadata for a file.

tecken.upload_file_upload

Type: timing

Timer for how long it takes to handle uploading a file to storage. This includes determining whether the file already exists, compressing/decompressing it, saving a record to the database, and any other processing required.

tecken.upload_file_upload_skip

Type: incr

Counter for files to be uploaded to storage but were skipped because they’re already there.

tecken.upload_file_upload_upload

Type: incr

Counter for each file successfully uploaded to storage.

tecken.upload_gzip_payload

Type: timing

Timer for how long it takes to gzip a file before uploading to storage.

tecken.upload_put_object

Type: timing

Timer for uploading a file to storage.

tecken.upload_skip_early_compressed

Type: incr

Counter for each time we skip uploading a compressed symbol file because it exists in storage already.

tecken.upload_skip_early_uncompressed

Type: incr

Counter for each time we skip uploading an uncompressed symbol file because it exists in storage already.

tecken.upload_uploads

Type: incr

Counter for upload API requests that were successfully completed.

Tags:

  • try: whether or not it was a try upload

  • bucket: the storage bucket name files were uploaded to

tecken.useradmin_is_blocked_in_auth0

Type: timing

Timer for how long it takes to determine if the user is blocked in Auth0.

tecken.sentry_scrub_error

Type: incr

Emitted when there are errors scrubbing Sentry events. Monitor these because it means we’re missing Sentry event data.