Inspector
BlogTry for free
  • Concepts
    • Introduction
    • Metrics
    • Notification Channels
      • Email
      • Slack
      • Telegram
      • Microsoft Teams
      • Google Chat
      • Webhook
      • Discord
      • Pushover
      • PagerDuty
      • Twilio - SMS
    • Filtering Syntax
    • Alerts
    • Grouping Patterns
    • Custom Segments
    • Billing
    • AI Bug Fixer
  • Security and access
    • Access control
    • Two-factor authentication
    • Connected Devices
  • SDK
    • PHP
      • Installation & Set Up
      • Custom Segments
      • Exceptions Monitoring
      • Configuration
    • Laravel / Lumen
      • Upgrade Guide
      • Installation & Set-up
      • Http Requests Monitoring
      • Configuration
      • Exception Monitoring
      • Laravel Vapor
      • Laravel Octane
      • Laravel Nova Tool
      • Group by service name
    • Symfony
      • Installation
      • Configuration
      • Exception Monitoring
    • CodeIgniter
      • Installation
      • Configuration
      • Exception Monitoring
    • Drupal
    • Spring Boot
    • Slim
    • NodeJS
      • Configurations
      • Custom Segments
      • Exception monitoring
      • Autowiring
    • ExpressJs
    • Fastify
    • Python
    • Django
      • Installation & Set Up
      • Custom Segments
      • Error Monitoring
  • REST API
    • Authentication
    • Apps
    • Platforms
    • Transactions
    • Segments
    • Analytics
Powered by GitBook
On this page
  • Requirements
  • Introduction
  • Resources
  • Installation
  • Configure the Ingestion Key
  • Test & Deploy
  • Transport
  • Query Logging
  • Exception Monitoring
  1. SDK

Drupal

Connect Drupal instances to the Inspector monitoring dashboard.

PreviousException MonitoringNextSpring Boot

Last updated 2 months ago

Requirements

  • Drupal: 9.x | 10.x | 11.x

Introduction

The package automatically instrument a Drupal instance and records performance metrics about HTTP requests, DB queries, and Unhandled Exceptions. It also has a simple API which allows you to monitor custom code blocks in your application.

Resources

  • Website:

  • Blog:

  • Drupal official page:

Installation

Run the command below in your terminal to install the latest version:

composer require drupal/inspector_monitoring

Configure the Ingestion Key

To get a new Ingestion Key sign up for Inspector () and creating a new application.

The Inspector Drupal module includes a form to makes you able to configure the monitoring system in a convenient web page.

To access the configuration page navigate to:

Admin >> Configuration >> Development >> Inspector Monitoring

Paste the Ingestion Key into the input form and click "Save".

Test & Deploy

Once you have configured the Ingestion Key, try to navigate your website to see the first data flowing into the dashboard.

If everything works well, you are ready to release this integration into the production environment.

Inspector automatically reports:

  • HTTP traffic

  • Database queries

  • Unhandled exceptions

Transport

The transport method refers to the way Inspector sends monitoring data collected into your Drupal installation to the remote platform. We suggest to use sync for development or local environments, and async for production environment.

  • SYNC - dev or local environment

  • ASYNC - prod environment

Query Logging

By default the module automatically monitors the internal database queries generated from your code, or other modules code. It will help you understand what is going on behind the scene, and immediately identify slow statements that can impact your user experience.

You can eventually enable/disable this monitoring component from the configuration page as per your needs.

Exception Monitoring

By default every unhandled exception will be reported automatically to be sure you'll be alerted for unpredictable errors in real time.

When an exception is detected you can read the code inside the stacktrace, and monitor its occurrences frequency for a better investigation:

You will be alerted for any error in your application and the will provides you with a ready to use solution in real-time.

Activate the AI Bug Fix to receive code change proposals for faster resolution:

https://www.inspector.dev
https://www.inspector.dev/blog
https://www.drupal.org/project/inspector_monitoring
https://app.inspector.dev/register
AI Bug Fix
https://docs.inspector.dev/concepts/ai-bug-fixer