Skip to content

Commit 3626081

Browse files
committed
Merge pull request #2122 from mwringe/metrics-upgrade
Add docs on how to upgrade the metrics components between versions.
2 parents 529971e + a12d0c8 commit 3626081

File tree

2 files changed

+67
-3
lines changed

2 files changed

+67
-3
lines changed

install_config/upgrading/automated_upgrades.adoc

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -210,9 +210,11 @@ used, if needed.
210210
----
211211

212212
When the upgrade finishes, a recommendation will be printed to reboot all hosts.
213-
After rebooting, continue to
214-
link:#automated-upgrading-efk-logging-stack[Upgrading the EFK Logging Stack] if
215-
you have aggregated logging enabled, otherwise proceed to
213+
After rebooting, if you have aggregated logging enable you will need to follow steps outlined in the
214+
link:#automated-upgrading-efk-logging-stack[Upgrading the EFK Logging Stack] section,
215+
if you have cluster metrics enabled you will need to follow the setps outlined in the
216+
link:#automated-upgrading-cluster-metrics[Upgrading Cluster Metrics] section,
217+
otherwise proceed to
216218
link:#verifying-the-upgrade[Verifying the Upgrade].
217219

218220
[[upgrading-to-openshift-enterprise-3-2-asynchronous-releases]]
@@ -239,6 +241,16 @@ images, the steps must be performed manually as shown in
239241
link:../../install_config/upgrading/manual_upgrades.html#manual-upgrading-efk-logging-stack[Manual
240242
Upgrades].
241243

244+
[[automated-upgrading-cluster-metrics]]
245+
== Upgrading Cluster Metrics
246+
247+
If you have previously link:../../install_config/cluster_metrics.html[deployed
248+
cluster metrics] you will need to update to the latest metric components, the steps must
249+
be performed manually as shown in
250+
link:../../install_config/upgrading/manual_upgrades.html#manual-upgrading-cluster-metrics[Manual
251+
Upgrades].
252+
253+
242254
[[verifying-the-upgrade]]
243255
== Verifying the Upgrade
244256

install_config/upgrading/manual_upgrades.adoc

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -908,6 +908,58 @@ in previous versions. There should be minimal performance impact to
908908
Elasticsearch while running this and it will not perform an install.
909909
====
910910

911+
[[manual-upgrading-cluster-metrics]]
912+
== Upgrading Cluster Metrics
913+
914+
Use the following to upgrade an
915+
link:../../install_config/cluster_metrics.html[already-deployed Cluster Metrics install].
916+
917+
To update to a newer version of the metrics components you will need to use the `refresh`
918+
mode of the deployer. This will stop all the metrics containers, update the metrics configuration
919+
files and redeploy the newer components. The `refresh` option will not change the metrics route or
920+
delete the metrics persistent volume claim.
921+
922+
Metrics stored to persistent volumes will still contain the persisted data when the updated
923+
metrics are brought back online.
924+
925+
[IMPORTANT]
926+
====
927+
All non-persisted metric values will be lost during the metric `refresh`.
928+
929+
All local changes to the metrics configurations will be overwritten with new configurations meant for the latest install.
930+
This includes things like number of instances in a replica set.
931+
====
932+
933+
To perform the update you will need to follow the
934+
link:../../install_config/cluster_metrics.html#deploying-the-metrics-components[same steps]
935+
as when the metrics components were first deployed except this time you will need to specify the
936+
`MODE=refresh` option.
937+
938+
You will also need to make sure you are using the correct template for your installation. Please see the following
939+
link:../../install_config/cluster_metrics.html#modifying-the-deployer-template[section] for the location of this template.
940+
941+
For instance, if before you deployed metrics using:
942+
943+
----
944+
$ oc new-app -f metrics-deployer.yaml \
945+
-p HAWKULAR_METRICS_HOSTNAME=hawkular-metrics.example.com
946+
----
947+
948+
You will now need to run:
949+
----
950+
$ oc new-app -f metrics-deployer.yaml \
951+
-p HAWKULAR_METRICS_HOSTNAME=hawkular-metrics.example.com,MODE=redeploy
952+
----
953+
954+
After this the metrics components should have been restarted and are now using the most recent versions.
955+
956+
957+
[NOTE]
958+
====
959+
It is normal to see a gap in the graphs during the time when the `refresh` is occuring. This is due to the
960+
metrics components not running and being available to gather metrics during this time.
961+
====
962+
911963
[[additional-instructions-per-release]]
912964
== Additional Manual Steps Per Release
913965

0 commit comments

Comments
 (0)