All Projects → thomasjohnkane → slow-query-notifier

thomasjohnkane / slow-query-notifier

Licence: MIT license
Get notified if your Laravel app ever runs a really slow database query

Programming Languages

PHP
23972 projects - #3 most used programming language

Projects that are alternatives of or similar to slow-query-notifier

ember-appmetrics
Ember library used to measure various metrics in your Ember app with ultra simple APIs.
Stars: ✭ 16 (-83.33%)
Mutual labels:  performance-monitoring
PerfAvore
Rule based performance analysis and monitoring tool for dotnet written in F#.
Stars: ✭ 12 (-87.5%)
Mutual labels:  performance-monitoring
xrayvision
Utilities and wrappers for using AWS X-Ray with Python
Stars: ✭ 23 (-76.04%)
Mutual labels:  performance-monitoring
playwright-lighthouse
🎭: Playwright Lighthouse Audit
Stars: ✭ 120 (+25%)
Mutual labels:  performance-monitoring
Performance-Engineers-Clubhouse
Join Performance Engineers Clubhouse 🏡
Stars: ✭ 14 (-85.42%)
Mutual labels:  performance-monitoring
aws-python-utilities
Python utilities for AWS related tasks.
Stars: ✭ 34 (-64.58%)
Mutual labels:  performance-monitoring
Snmpcollector
A full featured Generic SNMP data collector with Web Administration Interface for InfluxDB
Stars: ✭ 216 (+125%)
Mutual labels:  performance-monitoring
appsignal-nodejs
🟩 AppSignal for Node.js
Stars: ✭ 17 (-82.29%)
Mutual labels:  performance-monitoring
dashboard.sitespeed.io
Example how to use sitespeed.io to monitor the performance of your web site
Stars: ✭ 43 (-55.21%)
Mutual labels:  performance-monitoring
performance-budget-plugin
Perfromance budget plugin for Webpack (https://webpack.js.org/)
Stars: ✭ 65 (-32.29%)
Mutual labels:  performance-monitoring
jamonapi
Another repo for jamonapi.com which is primarily hosted on sourceforge
Stars: ✭ 57 (-40.62%)
Mutual labels:  performance-monitoring
ibm-spectrum-scale-bridge-for-grafana
This tool allows the IBM Spectrum Scale users to perform performance monitoring for IBM Spectrum Scale devices using third-party applications such as Grafana software.
Stars: ✭ 24 (-75%)
Mutual labels:  performance-monitoring
elasticsearch-hints
Some useful links about Elasticsearch
Stars: ✭ 21 (-78.12%)
Mutual labels:  performance-monitoring
webmethods-integrationserver-skyprofiler
SKYProfiler is a performance monitoring tool for Integration Server. SKYProfiler tracks the service invocations and the monitored data can be seen in real time. This helps users track the time each service invocation takes and further drills down to the child service to identify which service contributes to time.
Stars: ✭ 26 (-72.92%)
Mutual labels:  performance-monitoring
compile-time-perf
Measures high-level timing and memory usage metrics during compilation
Stars: ✭ 64 (-33.33%)
Mutual labels:  performance-monitoring
Droidtelescope
DroidTelescope(DT),Android端App性能监控框架
Stars: ✭ 231 (+140.63%)
Mutual labels:  performance-monitoring
uptrace
Open source APM: OpenTelemetry traces, metrics, and logs
Stars: ✭ 1,187 (+1136.46%)
Mutual labels:  performance-monitoring
performance monitor
Monitor Linux system
Stars: ✭ 30 (-68.75%)
Mutual labels:  performance-monitoring
appsignal-ruby
🟥 AppSignal for Ruby gem
Stars: ✭ 140 (+45.83%)
Mutual labels:  performance-monitoring
lambda-memory-performance-benchmark
Performance and cost benchmark tool for AWS Lambda on memory sizes 📈⏱
Stars: ✭ 60 (-37.5%)
Mutual labels:  performance-monitoring

Slow Query Notifier for Laravel

Get notified if your app ever runs a really slow database query. We set a default threshold, but you can configure it based on your needs & expectations.

Installation

You can install the package via composer:

composer require thomasjohnkane/slow-query-notifier

Usage

Set an email address

// app/Providers/AppServiceProvider.php

use SlowQueryNotifier\SlowQueryNotifierFacade as SlowQueryNotifier;

public function boot()
{
    SlowQueryNotifier::toEmail('[email protected]');
}

Test it works (in Production)

If you are using this in production (as intendend) make sure it is working correctly:

php artisan sqn:test

This command will test two things:

  • We can detect slow queries in your app
  • We can send an email to you if a slow query runs

Configuration

In general, we setup all of the configuration for you with sensible defaults. However, you can change the default settings if you'd like. To learn why we chose these defaults, read the blog post.

Threshold

The default is 99ms. Set a different threshold in milliseconds in your configuration:

SlowQueryNotifier::threshold(200)->toEmail('[email protected]');

Enable/Disable

The package is enabled by default. Set this value to false in your .env to bypass the listener.

SLOW_QUERY_NOTIFIER_ENABLED=false

Testing

phpunit

Changelog

Please see CHANGELOG for more information what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please email [email protected] instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.

Laravel Package Boilerplate

This package was generated using the Laravel Package Boilerplate.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].