~/docs
Resonate
Resonate
1.x 1.8.1.4, current
Fledge Pulse
Toggle sidebar
Fledge Pulse
webpatser/fledge-pulse 1.8.1.4

Fledge Pulse 1.x

Elasticsearch Installation

Install the Elasticsearch storage driver for Fledge Pulse (plugin version 0.3.0) and create its resources.

webpatser/fledge-pulse-elasticsearch is an Elasticsearch storage driver for Fledge Pulse. Entries go to a data stream with ILM retention, values to a regular index. Reads and bulk writes run on Fledge's fiber-aware HTTP transport, so parallel dashboard cards query concurrently. This page describes version 0.3.0.

Requirements

  • PHP 8.6
  • webpatser/fledge-pulse ^1.8.1.4
  • webpatser/fledge-fiber ^13.43.0.3 (Fledge\Fiber\Search\ElasticClientFactory)
  • elasticsearch/elasticsearch ^8.17 (installed by Composer)
  • Elasticsearch 8.17 or newer (pdphilip/elasticsearch is not required)

The package conflicts with livewire/livewire below 4.4.8.

Install

composer require webpatser/fledge-pulse-elasticsearch
php artisan pulse:elasticsearch:install

The service provider is auto-discovered and registers the elasticsearch driver on the Fledge Pulse StorageManager. Nothing connects to Elasticsearch while the application boots; the client is built when the storage is first resolved.

Select the driver:

PULSE_STORAGE_DRIVER=elasticsearch

The install command is idempotent: run it again after an upgrade or a config change (for example from a deploy step or a migration) to update the ILM policy, the index template and the mappings.

Resources

Resource Name Notes
Data stream + index template {prefix}-entries @timestamp, type, key, value, aggregations, only_buckets; shards primaries per backing index
Index {prefix}-values latest value per type and key
ILM policy {prefix}-policy rolls over daily, deletes after pulse.storage.trim.keep (capped at 7 days, like upstream)

Keys longer than 8191 characters are stored but not indexed (ignore_above), so they are invisible to every read: such entries are missing from the dashboard.