-
Notifications
You must be signed in to change notification settings - Fork 557
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
10697: Export missing records to ES r=remcowesterhoud a=lzgabel ## Description Currently, the Zeebe Elasticsearch exporter doesn't allow to export all records. The following records are missing: * `timer` * `message_start_event_subscription` * `process_event` * `deployment_distribution` ## Related issues closes #8337 ## Definition of Done Code changes: * [ ] The changes are backwards compatibility with previous versions * [ ] If it fixes a bug then PRs are created to [backport](https://github.com/camunda/zeebe/compare/stable/0.24...main?expand=1&template=backport_template.md&title=[Backport%200.24]) the fix to the last two minor versions. You can trigger a backport by assigning labels (e.g. `backport stable/1.3`) to the PR, in case that fails you need to create backports manually. Testing: * [ ] There are unit/integration tests that verify all acceptance criterias of the issue * [ ] New tests are written to ensure backwards compatibility with further versions * [x] The behavior is tested manually * [ ] The change has been verified by a QA run * [ ] The impact of the changes is verified by a benchmark Documentation: * [ ] The documentation is updated (e.g. BPMN reference, configuration, examples, get-started guides, etc.) * [ ] New content is added to the [release announcement](https://drive.google.com/drive/u/0/folders/1DTIeswnEEq-NggJ25rm2BsDjcCQpDape) * [ ] If the PR changes how BPMN processes are validated (e.g. support new BPMN element) then the Camunda modeling team should be informed to adjust the BPMN linting. Please refer to our [review guidelines](https://github.com/camunda/zeebe/wiki/Pull-Requests-and-Code-Reviews#code-review-guidelines). Co-authored-by: lzgabel <lz19960321lz@gmail.com>
- Loading branch information
Showing
10 changed files
with
219 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 32 additions & 0 deletions
32
...sticsearch-exporter/src/main/resources/zeebe-record-deployment-distribution-template.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
{ | ||
"index_patterns": [ | ||
"zeebe-record_deployment-distribution_*" | ||
], | ||
"composed_of": [ | ||
"zeebe-record" | ||
], | ||
"priority": 20, | ||
"version": 1, | ||
"template": { | ||
"settings": { | ||
"number_of_shards": 1, | ||
"number_of_replicas": 0, | ||
"index.queries.cache.enabled": false | ||
}, | ||
"aliases": { | ||
"zeebe-record-deployment-distribution": {} | ||
}, | ||
"mappings": { | ||
"properties": { | ||
"value": { | ||
"dynamic": "strict", | ||
"properties": { | ||
"partitionId": { | ||
"type": "integer" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
51 changes: 51 additions & 0 deletions
51
...h-exporter/src/main/resources/zeebe-record-message-start-event-subscription-template.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
{ | ||
"index_patterns": [ | ||
"zeebe-record_message-start-event-subscription_*" | ||
], | ||
"composed_of": ["zeebe-record"], | ||
"priority": 20, | ||
"version": 1, | ||
"template": { | ||
"settings": { | ||
"number_of_shards": 1, | ||
"number_of_replicas": 0, | ||
"index.queries.cache.enabled": false | ||
}, | ||
"aliases": { | ||
"zeebe-record-message-start-event-subscription": {} | ||
}, | ||
"mappings": { | ||
"properties": { | ||
"value": { | ||
"dynamic": "strict", | ||
"properties": { | ||
"processDefinitionKey": { | ||
"type": "long" | ||
}, | ||
"processInstanceKey": { | ||
"type": "long" | ||
}, | ||
"messageName": { | ||
"type": "keyword" | ||
}, | ||
"correlationKey": { | ||
"type": "text" | ||
}, | ||
"bpmnProcessId": { | ||
"type": "keyword" | ||
}, | ||
"startEventId": { | ||
"type": "keyword" | ||
}, | ||
"messageKey": { | ||
"type": "long" | ||
}, | ||
"variables": { | ||
"enabled": false | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
42 changes: 42 additions & 0 deletions
42
exporters/elasticsearch-exporter/src/main/resources/zeebe-record-process-event-template.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
{ | ||
"index_patterns": [ | ||
"zeebe-record_process-event_*" | ||
], | ||
"composed_of": ["zeebe-record"], | ||
"priority": 20, | ||
"version": 1, | ||
"template": { | ||
"settings": { | ||
"number_of_shards": 1, | ||
"number_of_replicas": 0, | ||
"index.queries.cache.enabled": false | ||
}, | ||
"aliases": { | ||
"zeebe-record-process-event": {} | ||
}, | ||
"mappings": { | ||
"properties": { | ||
"value": { | ||
"dynamic": "strict", | ||
"properties": { | ||
"scopeKey": { | ||
"type": "long" | ||
}, | ||
"processInstanceKey": { | ||
"type": "long" | ||
}, | ||
"processDefinitionKey": { | ||
"type": "long" | ||
}, | ||
"targetElementId": { | ||
"type": "keyword" | ||
}, | ||
"variables": { | ||
"enabled": false | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
45 changes: 45 additions & 0 deletions
45
exporters/elasticsearch-exporter/src/main/resources/zeebe-record-timer-template.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
{ | ||
"index_patterns": [ | ||
"zeebe-record_timer_*" | ||
], | ||
"composed_of": ["zeebe-record"], | ||
"priority": 20, | ||
"version": 1, | ||
"template": { | ||
"settings": { | ||
"number_of_shards": 1, | ||
"number_of_replicas": 0, | ||
"index.queries.cache.enabled": false | ||
}, | ||
"aliases": { | ||
"zeebe-record-timer": {} | ||
}, | ||
"mappings": { | ||
"properties": { | ||
"value": { | ||
"dynamic": "strict", | ||
"properties": { | ||
"elementInstanceKey": { | ||
"type": "long" | ||
}, | ||
"dueDate": { | ||
"type": "long" | ||
}, | ||
"targetElementId": { | ||
"type": "keyword" | ||
}, | ||
"repetitions": { | ||
"type": "integer" | ||
}, | ||
"processDefinitionKey": { | ||
"type": "long" | ||
}, | ||
"processInstanceKey": { | ||
"type": "long" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters