Skip to content

❓ Other Connector Types

Though the SQL Connector is the premier Meerschaum connector type, there are plenty of other implementations of the instance connector interface.

🗝️ Valkey Connectors

Syncs pipes to a Valkey instance. Because Valkey is a fork of Redis, you may also use the ValkeyConnector to connect to your Redis instance.

Similar to sql:main, the built-in connector valkey:main connects to the Valkey instance in the Meerschaum stack.

  • Implementation: built-in (docs)
  • Type: valkey

Connector config

1
2
3
4
5
6
username: default
password: mrsm
host: localhost
port: 6379
db: 0
socket_timeout: 300
1
uri: valkey://default:mrsm@localhost:6379/0?timeout=300s 

🌐 API Connector

Syncs to a Meerschaum instance via the Web API. The pipes made available via the Web UI are from the instance set under MRSM{api_instance}, usually sql:main.

  • Implementation: built-in (docs)
  • Type: api

Connector config

1
2
3
4
5
protocol: http
username: foo
password: bar
host: localhost
port: 8000
1
uri: http://foo:bar@localhost:8000

🍃 MongoDB Connector

Syncs to a MongoDB cluster. Allows you to read from existing collections as well as storing your pipes' data in collections.

Connector config

1
2
uri: mongodb://localhost:27017 
database: foo

Fetch pipe

1
2
3
4
5
6
7
8
connector: mongodb:foo
metric: bar
parameters:
  fetch:
    query:
      a: 1
    projection: {}
    collection: bar

🛜 MQTT Connector

Subscribe to MQTT topics and sync the fetched messages.

Connector config

1
2
3
4
5
6
host: localhost
port: 1883
username: foo
password: bar
transport: tcp
keepalive: 60

Fetch pipe

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
connector: "mqtt:local"
metric: "temperature"
columns:
  datetime: "timestamp"
  topic: "topic"
parameters:
  fetch:
    topic:
    - "foo/#"
    - "bar/#"