Monitoring
Monitor your Foxglove Edge Site.
Online status
The Edge Site performs periodic pings to the Foxglove API control plane to report health. Organization admins can see this status on the Sites settings page.
Prometheus
The Edge Site service exposes processing and memory statistics on a Prometheus metrics scraping endpoint on port 6002.
Check out the Prometheus documentation for more information.
Available metrics
recordings_indexed
– Number of recordings indexed by the servicerecordings_imported
– Number of recordings imported to a Primary Siterecordings_deleted
– Number of recordings deleted from the edgerecordings_gigabytes
– Volume in recordings (GB)imports_gigabytes
– Volume of imported recordings (GB)import_time_seconds
– Histogram of import times to the Primary Siteimport_throughput_mbps
– Histogram of upload throughput to a Primary Site, when uploads are in progressrecording_summary_read_ms
– Histogram of timings for reading MCAP summary sections from storagerecording_stat_ms
– Histogram of timings for calling "Stat()" on MCAP files in storagerecording_index_ms
– Histogram of timings for indexing recordings in the sqlite databasedeletion_mark_ms
– Histogram of timings for marking recordings for garbage collection in the indexdeletion_sweep_ms
– Histogram of timings for physical deletion of recordings from diskcontrol_plane_patch_recordings_deleted_ms
– Histogram of timings for reporting garbage collections to the control planecontrol_plane_post_recordings_ms
– Histogram of timings for the (async) report of recording availability to consolerecording_upload_ms
– Histogram of timings for upload of a recording file to the configured inbox bucketcontrol_plane_patch_recordings_imported_ms
– Histogram of timings for batched status updates issued to console after submission of recordingspending_import_request_poll_ms
– Histogram of timings for requests against Foxglove for pending import requests
database_recordings_count
: Count of recordings indexed in the database.database_topics_count
: Count of unique topics/schemas indexed in the database.database_recording_reports_count
: Count of recording reports indexed in the database.database_size_bytes
: Total size of database in bytes.
To see a list of available metrics in your Terminal, use the kubectl
command to forward the Prometheus port:
kubectl port-forward -n foxglove service/edge-controller 6002:6002
curl -X GET http://localhost:6002/metrics
Slow query logging
Slow query logging in the Edge Site can be enabled by supplying the following environment variables. Using these should have negligible performance impact.
SLOW_QUERY_LOG_MIN_DURATION
: A positive integer indicating the minimum execution time in milliseconds for a query to be considered "slow". Queries slower than this will be written to logs.SLOW_QUERY_LOG_PARAMETERS
: A boolean indicating whether parameters should be logged, defaulting to "false".
These environment variables can be supplied in the "edgeController.env" section of the helm chart.