When configurations drift between environments or an unexpected change causes issues, you need a fast way to identify differences. Microservices Engine (MSE) provides a side-by-side diff view that lets you compare any two configurations across Data IDs, Groups, instances, or namespaces. You can also compare the current configuration against a historical version to pinpoint what changed.
Choose a comparison method
MSE supports two comparison methods. Choose the one that fits your situation:
| Method | When to use | What it compares |
|---|---|---|
| Compare two configurations | Verify consistency across environments (for example, staging versus production) or audit differences between services that use different Data IDs or Groups | Any two configurations, across instances or namespaces |
| Compare against a historical version | Troubleshoot issues introduced by a recent change or review what changed between two publishes before deciding whether to roll back | The current configuration versus a previously published version |
Compare two configurations
Diff a configuration against another configuration in the same or a different instance or namespace.
-
Log on to the MSE console, and select a region in the top navigation bar.
-
In the left-side navigation pane, choose Microservices Registry > Instances.
-
On the Instances page, click the name of the instance.
-
In the left-side navigation pane, choose Configuration Management > Configurations.
On the Configurations page, find the target configuration, click
in the Actions column, and select Compare.Tip: Filter configurations by namespace, or search by Group, Data ID, Application, or Tags to locate the configuration faster.
In the Comparison of Configuration Content dialog box, specify the following parameters in the Compare Configuration section:
Parameter Description Instance Name The MSE instance that contains the configuration to compare against. Select a different instance for cross-instance comparison, or keep the current instance for same-instance comparison. Namespace The namespace of the target configuration. Group The Group of the target configuration. Data ID The Data ID of the target configuration. Click Compare. The dialog box displays the differences between the two configurations. If the target configuration does not exist, a message appears indicating that the configuration does not exist.
Compare against a historical version
Diff the current configuration against a previously published version to identify what changed.
-
Log on to the MSE console, and select a region in the top navigation bar.
-
In the left-side navigation pane, choose Microservices Registry > Instances.
-
On the Instances page, click the name of the instance.
-
In the left-side navigation pane, choose Configuration Management > Configurations.
On the Configurations page, click the name of the configuration.
On the configuration details page, click the Historical Versions tab.
Find the version to compare and click Compare in the Actions column. The Comparison of Configuration Content dialog box displays the differences between the selected historical version and the current version.
Note: Current Version displays the configuration content of the selected historical version (before the change was made). To restore the current configuration to that historical state, click Roll Back in the Actions column.
Related topics
View historical versions -- Browse and search the full version history of any configuration.