Markers are little icons used in graphs to indicate a change. This can be a
deploy using a “Deploy marker” or a custom event with a “Custom marker”.
This Marker endpoint allows the creation and indexing of markers that are
available per application.
Marker types
Deploy markers
Deploy markers are little dots at the bottom of each graph that indicate when a
new revision of an application was deployed. They’re a great way to compare
deploys with each another and see if the new version increased or decreased
application performance.
A list of these markers is also shown on the “Deploys” page on AppSignal.com,
in an Application context.
Custom markers
Custom markers provide a way to add more context to graphs, allowing you to add
annotations yourself. Create a Custom marker for scaling operations, when there
was a sudden spike in traffic or when a database was acting up.
Marker create
This endpoint enables the creation of Deploy and Custom markers.
When creating the payload for this request you can select what type of marker
to create by specifying the kind value.
Deploy marker
This method of reporting deploy markers is deprecated and may be removed at any time in the future.
Reporting deploy markers using this method is only useful for small applications that use one application instance. It creates a new deploy marker at a specific time, regardless of the version the application is actually running. This also means it’s also more error prone to group data that shouldn’t belong to it under the deploy. We automatically detect deployment by reading the REVISION file which Capistrano adds to the release directory since Ruby gem 4.5.18.
Payload example
Payload example with curl
All requests to AppSignal API endpoints require a personal API token given as an URL query parameter for authentication.
Custom marker
Used to annotate events that can impact your performance/error rate. Examples are: up/downscale of cloud infrastructure, maintenance on database, cause of error spikes.
If you want to create custom markers, but not use your Personal API token, you can use the public endpoint instead.
Payload example
Marker index
This endpoint returns a list of markers. Combines both Deploy and Custom
markers.
Parameters
Response
With "count_only": true.
Marker show
This endpoint returns the JSON representation of a single marker.
Parameters
Response
The response for Deploy markers and Custom markers is different. Deploy markers
contain more data about a certain deploy while Custom markers only contain the
data given on creation.
Deploy marker
Custom marker
Notification marker
Marker update
This endpoint updates a single marker and returns the JSON representation of
the updated marker.
Parameters
Payload
The payload is the same as a create/POST request and differs
per marker type.
Response
The response is the same as a show/GET request and differs per
marker type.
Marker delete
This endpoint deletes a single marker.
Parameters
Response
The response body of this request is empty. The status code will return if it
was successful or not.