History and rollback
Telemetry Pipeline lets you view the history of pipelines, and roll them back in cases of unexpected behavior.
Retrieve pipeline history
To review the configuration history of a given pipeline, use the
calyptia get pipeline-config-history
command:
calyptia get pipeline_config_history --pipeline PIPELINE_ID
Replace PIPELINE_ID
with the unique identifier for your pipeline.
The output will be similar to the following:
ID AGE
7c636cb9-2734-4168-81e3-3a84208049ae 36 seconds
1542066b-c2ff-4908-bd81-4d815f9ae22a 1 minute
7a3d0d8d-2e7a-4443-b5be-11b86942499c 5 minutes
237e3f6f-52e9-4dea-a7da-070a58bf4884 15 hours
To see the status history of a given pipeline, use the
calyptia get pipeline_status_history
command:
calyptia get pipeline_status_history --pipeline PIPELINE_ID
Replace PIPELINE_ID
with the unique identifier for your pipeline.
The output will be similar to the following:
STATUS CONFIG ID AGE
STARTED 237e3f6f-52e9-4dea-a7da-070a58bf4884 15 hours
NEW 237e3f6f-52e9-4dea-a7da-070a58bf4884 15 hours
Roll back pipeline configuration
To roll a pipeline back to a particular configuration from the history, use this command:
calyptia rollout pipeline PIPELINE_ID --to-config-id CONFIG_ID
Replace the following:
PIPELINE_ID
: The unique identifier for your pipeline.CONFIG_ID
: The unique identifier of the configuration you want to roll your pipeline back to.
You can also specify the number of steps you want to roll back in the configuration history:
calyptia rollout pipeline PIPELINE_ID --steps-back COUNT
Replace the following:
PIPELINE_ID
: The unique identifier for your pipeline.COUNT
: An integer for the number of steps for rolling back in the history. For example,2
.