stack kb apm-annotations create-annotation cli command
Auth required
elastic stack kb apm-annotations create-annotation \
--service-name <service-name> \
--@timestamp <@timestamp> \
--service <service> \
[options]
Create a service annotation
Behaviour flags:
--dry-run — validate all inputs and exit without performing any action
--service-namestringrequired- The name of the service
--@timestampstringrequired- The date and time of the annotation. It must be in ISO 8601 format.
--servicestringrequired- The service that identifies the configuration to create or update.
--messagestring- The message displayed in the annotation. It defaults to
service.version. -
Tags are used by the Applications UI to distinguish APM annotations from other annotations. Tags may have additional functionality in future releases. It defaults to
[apm]. While you can add additional tags, you cannot remove theapmtag.Repeatable: pass
--tagsmultiple times to supply more than one value --input-filestring- path to a JSON file to use as command input
--dry-run- validate all inputs and exit without performing any action (preview changes without applying them)
--json-
output as JSON