Upgrade Advisory

This documentation is for Flux (v1) and Helm Operator (v1). Both projects are in maintenance mode and will soon reach end-of-life. We strongly recommend you familiarise yourself with the newest Flux and start looking at your migration path.

For documentation regarding the latest Flux, please refer to this section.

Monitoring

The Helm Operator exposes a metrics endpoint at /metrics on the configured --listen address (defaults to :3030) with data in Prometheus format.

Metrics

MetricDescription
release_countCount of releases managed by the operator.
release_action_duration_secondsDuration of release sync actions in seconds. See release actions.
release_condition_infoRelease condition status gauge, see release conditions.
release_queue_length_countCount of release jobs waiting in the queue to be processed.

Release actions

release_action_duration_seconds supports the following labels and label values.

Labels

LabelLabel Value
target_namespacetargetNamespace of HelmRelease
release_namereleaseName of HelmRelease
successWhether the action was successful (true or false)
actionThe release action, see below.

Actions

ActionDescription
syncOne entire release sync attempt, as configured to occur once every –charts-sync-interval
installInstallation attempt
upgradeUpgrade attempt
rollbackRollback attempt
uninstallUninstallation attempt
dry-run-compareDry run compare attempt to determine whether to upgrade
annotateAnnotation attempt

Release conditions

release_condition_info supports the following labels and label values.

Labels

LabelLabel Value
target_namespacetargetNamespace of HelmRelease
release_namereleaseName of HelmRelease
conditioncondition type

Values

Values represent the condition status.

ValueCondition Status
-1False
0Unknown
1True

Prometheus alert rules examples

The following is a list of Prometheus alert rules examples possible with the exposed metrics. We are open to pull requests adding additional rules.

Low queue throughput

alert: HelmOperatorLowThroughput
expr: flux_helm_operator_release_queue_length_count > 0
for: 30m

Automatic rollback of HelmRelease

alert: HelmReleaseRolledBack
expr: flux_helm_operator_release_condition_info{condition="RolledBack"} == 1

HelmRelease subject to an error

alert: HelmReleaseError
expr: flux_helm_operator_release_condition_info{condition="Released"} == -1