-
-
Notifications
You must be signed in to change notification settings - Fork 9
Offloading
Offloading collects and stores events that happen in Assimbly runtime. The main use case for offloading is to save data for monitoring and analysis.
Since Assimbly 3.9.0
There are three type of collectors:
Collects log events (from the log file).
Log events can be a package name or a Class name. For example:
- org.assimbly
- org.camel
All possible package names can found from Administration --> Logs
Collects events on a flow step (for example starting and stopping of steps).
The following step events can be collected:
- RouteAdded
- RouteReloaded
- RouteRemoved
- RouteStarted
- RouteStarting
- RouteStopped
- RouteStopping
Collect message events (message processed by the flow).
The following step events can be collected:
- ExchangeAsyncProcessingStarted
- ExchangeCompleted
- ExchangeCreated
- ExchangeFailed
- ExchangeFailure
- ExchangeFailureHandled
- ExchangeFailureHandling
- ExchangeRedelivery
- ExchangeSending
- ExchangeSent
Field | Explanation | Values |
---|---|---|
id | Identifier of the collector | String |
type | Type of collector | log | step | message |
events | Type of events | Depends on type of collector |
stores | Type of stores | console | file | elastic |
filters | Filter on the events | Regex |
For the offloading there is a special REST API endpoint:
/api/integration/{integrationId}/collector/{collectorId}/add
There you can add the integrationId (1 by default), the collectorId and the configuration as a json file.
{
"id": "1",
"type": "log",
"events": [
"org.assimbly",
"org.camel"
],
"stores": [
{
"type": "file",
"uri": "C:/messages/events/mylogs.log"
},
{
"type": "console"
}
],
"filters": [
{
"filter": "flowid=1"
}
]
}
{
"id": "3",
"type": "step",
"events": [
"RouteReloaded",
"RouteStarted",
"RouteStarting",
"RouteStopped",
"RouteStopping"
],
"stores": [
{
"type": "file",
"uri": "C:\path\to\my.log"
}
],
"filters": [
{
"id": "1",
"filter": "1-1"
}
]
}
{
"id": "2",
"type": "message",
"events": [
"ExchangeCompleted",
"ExchangeCreated"
],
"stores": [
{
"type": "console"
},
{
"type": "elastic",
"uri": "http://localhost:9200/transactions/_doc",
"expiryInHours": "8"
}
],
"filters": [
{
"id": "1",
"filter": "1-1"
}
]
}