MetricsHub
MetricsHub Community Connectors 1.0.22
-
Home
- Connector Developer Guide Sources 19
static (Source)
When To Use
Use static to inject fixed values into a source pipeline.
This is useful for:
- default rows,
- synthetic constants,
- small inline lookup tables.
Syntax
sources:
fixedState:
type: static
value: serviceA;ok
Properties
| Property | Required | Default | Description |
|---|---|---|---|
type |
Yes | None | static. |
value |
Yes | None | Inline serialized table content or reference. |
computes |
No | [] |
Post-processing pipeline. |
forceSerialization |
No | false |
Serialize execution via a per-connector, per-host lock (see the Sources overview). Default false. |
Recommended Pattern
- Keep static payloads tiny and explicit.
- Use semicolon-separated rows when emitting multi-column values.
- Prefer translation tables for large static mappings.
Common Mistakes
- Encoding large datasets in
staticinstead of external files/translations. - Forgetting that
valueis parsed as table text (semicolon/newline semantics apply). - Mixing static defaults with dynamic data without clear join keys.
Community Examples
- Cassandra[1]
static source
constant table
inline rows
metricshub
community
connector
hardware
system
Links:
- [1] https://github.com/metricshub/community-connectors/blob/main/src/main/connector/database/Cassandra/Cassandra.yaml
Search Results for {{siteSearch | truncate:'50'}}
{{resultArray.length}}
Searching...
No results.
