duct.outputs¶
duct.outputs.bosun¶
- class duct.outputs.bosun.Bosun(*a)[source]¶
Bases:
OpenTSDBBosun HTTP API output
- Parameters:
url (str.) – URL (default: http://localhost:4242)
maxsize (int.) – Maximum queue backlog size (default: 250000, 0 disables)
maxrate (int.) – Maximum rate of documents added to index (default: 100)
interval (int.) – Queue check interval in seconds (default: 1.0)
user (str.) – Optional basic auth username
password (str.) – Optional basic auth password
duct.outputs.elasticsearch¶
- class duct.outputs.elasticsearch.ElasticSearch(*a)[source]¶
Bases:
OutputElasticSearch HTTP API output
- Parameters:
url (str) – Elasticsearch URL (default: http://localhost:9200)
maxsize (int) – Maximum queue backlog size (default: 250000, 0 disables)
maxrate (int) – Maximum rate of documents added to index (default: 100)
interval (int) – Queue check interval in seconds (default: 1.0)
user (str) – Optional basic auth username
password (str) – Optional basic auth password
index (str) – Index name format (default: duct-%Y.%m.%d)
- duct.outputs.elasticsearch.ElasticSearchLog¶
alias of
ElasticSearch
duct.outputs.graphite¶
- class duct.outputs.graphite.Graphite(*a, **kw)[source]¶
Bases:
OutputGraphite output. By default events are named {prefix}.{hostname}.{source service} unless prefix_hostname is set to False
- Parameters:
server (str.) – Graphite server hostname (default: localhost)
port (int.) – Graphite server port (default: 2003)
prefix (str.) – Metric path prefix (default: None)
prefix_hostname (bool.) – Whether to append the event source hostname field to the path (default: True)
duct.outputs.influxdb3¶
- class duct.outputs.influxdb3.InfluxDB3(*a)[source]¶
Bases:
OutputInfluxDB 3 HTTP API output using line protocol.
Events are written as measurements named after the event service. Tags include the source hostname, state, and any event attributes. The metric value is stored in the
valuefield.Configuration arguments:
- Parameters:
url (str) – InfluxDB 3 server URL (default: http://localhost:8086)
database (str) – Target database / bucket name (default: duct)
token (str) – Authentication token (default: None)
precision (str) – Timestamp precision - nanosecond, microsecond, millisecond, or second (default: nanosecond)
maxsize (int) – Maximum queue backlog size (default: 250000, 0 disables)
maxrate (int) – Maximum events flushed per interval (default: 1000, 0 disables)
interval (float) – Queue drain interval in seconds (default: 1.0)
duct.outputs.logger¶
duct.outputs.nats¶
- class duct.outputs.nats.Nats(*a, **kw)[source]¶
Bases:
OutputNATS output
- Parameters:
servers (list) – List of NATS URIs (default: [“nats://localhost:4222”])
prefix (str) – Prefix added to topics (default: “”)
format (str) – Serialisation format - json, senml-json, senml-cbor (default: senml-json)
interval (float) – Queue drain interval in seconds (default: 1.0)
jetstream (bool) – Publish via JetStream instead of core NATS (default: false)
credentials_file (str) – Path to NATS credentials (.creds) file
nkey_seed_file (str) – Path to NKey seed file
tls_ca_file (str) – Path to CA certificate file for TLS
tls_cert_file (str) – Path to client certificate file for mTLS
tls_key_file (str) – Path to client private key file for mTLS
duct.outputs.null¶
duct.outputs.opentsdb¶
- class duct.outputs.opentsdb.OpenTSDB(*a)[source]¶
Bases:
OutputOpenTSDB HTTP API output
- Parameters:
url (str) – URL (default: http://localhost:4242)
maxsize (int) – Maximum queue backlog size (default: 250000, 0 disables)
maxrate (int) – Maximum rate of documents added to index (default: 100)
interval (int) – Queue check interval in seconds (default: 1.0)
user (str) – Optional basic auth username
password (str) – Optional basic auth password
duct.outputs.prometheus¶
duct.outputs.riemann¶
- class duct.outputs.riemann.RiemannTCP(*a)[source]¶
Bases:
OutputRiemann TCP output
- Parameters:
server (str.) – Riemann server hostname (default: localhost)
port (int.) – Riemann server port (default: 5555)
failover (bool.) – Enable server failover; server may be a list
maxrate (int.) – Maximum de-queue rate (0 is no limit)
maxsize (int.) – Maximum queue size (default: 250000)
interval (float.) – De-queue interval in seconds (default: 1.0)
pressure (int.) – Maximum backpressure (-1 is no limit)
tls (bool.) – Use TLS (default: false)
cert (str.) – Client certificate path
key (str.) – Client private key path
allow_nan (bool.) – Send events with None metric value (default: true)