Skip to content

synthefy plugin#39

Merged
caterryan merged 7 commits into
influxdata:mainfrom
ajanbekzat:main
May 15, 2026
Merged

synthefy plugin#39
caterryan merged 7 commits into
influxdata:mainfrom
ajanbekzat:main

Conversation

@ajanbekzat
Copy link
Copy Markdown
Contributor

@ajanbekzat ajanbekzat commented Jan 12, 2026

Synthefy Forecasting Plugin for InfluxDB 3

This PR adds a new HTTP trigger plugin that integrates Synthefy Forecasting API with InfluxDB 3 to enable on-demand time series forecasting.

Features

  • On-demand forecasting via HTTP requests
  • Multiple model support: Works with Synthefy models (sfm-tabular, Migas-latest, Chronos2, Moirai2, TimesFM, etc.)
  • Multivariate forecasting: Supports metadata fields as covariates
  • Tag filtering: Filter time series by tags (location, device, etc.)
  • Automatic data writing: Forecasts written back to InfluxDB using Line Protocol

How It Works

  1. Queries historical time series data from InfluxDB based on measurement, field, tags, and time range
  2. Transforms data to Synthefy API v2 request format
  3. Calls Synthefy Forecasting API to generate forecasts
  4. Writes forecast results (with quantiles) back to InfluxDB

Requirements

  • Python 3.7+
  • pandas and httpx/requests packages
  • Synthefy API key (create one here)

Usage Example

curl -X POST http://localhost:8181/api/v3/engine/forecast \
  -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "measurement": "temperature",
    "field": "value",
    "tags": "location=NYC",
    "time_range": "30d",
    "forecast_horizon": "7d",
    "model": "sfm-tabular",
    "api_key": "your-api-key",
    "metadata_fields": "humidity,pressure"
  }'

format

update the library to point

docstrings

update
@garylfowler
Copy link
Copy Markdown
Collaborator

Thank you for this submission; we will be reviewing soon.

Comment thread synthefy/synthefy-forecasting/synthefy_forecasting.py Outdated
Comment thread synthefy/synthefy-forecasting/README.md Outdated
Comment thread synthefy/synthefy-forecasting/README.md Outdated
Comment thread synthefy/synthefy-forecasting/synthefy_forecasting.py
Comment thread synthefy/synthefy-forecasting/synthefy_forecasting.py Outdated
Comment thread synthefy/synthefy-forecasting/README.md Outdated
Comment thread synthefy/synthefy-forecasting/README.md Outdated
Comment thread synthefy/synthefy-forecasting/synthefy_forecasting.py Outdated
Comment thread synthefy/synthefy-forecasting/README.md Outdated
Comment thread synthefy/synthefy-forecasting/synthefy_forecasting.py
@caterryan caterryan merged commit f40f88f into influxdata:main May 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants