OBLYTECH Logo
OBLYTECH Logo

Change the full discovery frequency for the Kubernetes Visibility Agent

To change the full discovery frequency for the Kubernetes Visibility Agent, set the Informer’s interval in minutes: use fullDiscoveryMin with Helm or FULL_DISCOVERY_MIN in k8s_informer.yaml. The default is 1440 minutes, or 24 hours. Choose the deployment method you use, record the previous value, and verify the resulting discovery cadence.

Identify the interval and deployment method before changing it

The setting controls how often the Informer runs a full discovery. Start by identifying the Kubernetes Visibility Agent deployment you intend to change and whether its configuration is maintained through a Helm chart or k8s_informer.yaml. That choice determines the setting name and where you make the edit. Keep the cluster identity alongside the configuration so a value intended for one environment is not accidentally applied to another.

The default interval is 1440 minutes. A value of 2880 represents 48 hours. Treat the number as minutes throughout the change record, even when colleagues describe the cadence in hours. Writing “48” where the intended interval is 48 hours would express a different interval. Convert the requested duration first, then review that number before editing the deployment configuration.

The frequency-change procedure lists no required ServiceNow role. Arrange access to the deployment configuration through your organization’s existing Kubernetes change process. Do not use the absence of a required ServiceNow role as a reason to bypass configuration review or deployment ownership.

If you need to establish which component you are configuring, start with Kubernetes discovery with the Visibility Agent. Keep the interval change focused on the Informer that is actually deployed, with a named owner who can validate the result.

Change the full discovery frequency with Helm

For a Helm chart deployment, include the interval through the Helm install command using the argument –set fullDiscoveryMin=<Frequency in minutes>. Replace the placeholder with the selected number of minutes. For the 48-hour example, the argument becomes –set fullDiscoveryMin=2880.

  1. Locate the Helm install command maintained for the intended deployment.
  2. Record the current interval or note that the deployment uses the default.
  3. Choose the new duration and express it as a number of minutes.
  4. Add the fullDiscoveryMin argument to the install command, preserving the other deployment arguments.
  5. Review the complete command with the deployment owner before using the configuration.

Keep the capital D and capital M in fullDiscoveryMin. The Helm setting uses this spelling; the YAML environment variable uses a different spelling. A change request that names the right duration but references the wrong setting is not ready to deploy. Include both the setting name and its intended numeric value in the review.

This interval argument is one part of the deployment command. Retain the surrounding configuration that belongs to your environment rather than constructing a complete installation command from the interval example alone. For broader deployment planning, see Agent Client Collector installation and deployment.

Change the interval in k8s_informer.yaml

When the deployment uses k8s_informer.yaml, locate FULL_DISCOVERY_MIN and replace the default value on the line beneath it with the requested interval. Use minutes here as well. To express a full discovery every 48 hours, use 2880 as the value.

  1. Open the k8s_informer.yaml file associated with the target deployment.
  2. Find FULL_DISCOVERY_MIN and inspect the value beneath it.
  3. Save the previous value in the change record.
  4. Replace the value with the selected number of minutes.
  5. Review the edit and carry the changed configuration through your deployment process.

Check the location of the edit as carefully as the number. The intended change is to the value under FULL_DISCOVERY_MIN. Keep unrelated configuration out of the same change unless it has a separate reason and review. A small, isolated edit makes it easier to understand what was requested and to investigate an unexpected result.

Record which file was changed and which deployment will consume it. An edited working copy is evidence of the proposed configuration, but it does not establish that the running deployment uses that copy. Ask the deployment owner to confirm the applied configuration as part of acceptance rather than treating a saved file as completion.

Choose a cadence with inactive-cluster retirement in mind

Use the operational reason for the change to choose the interval. For example, moving from 1440 to 2880 minutes changes the full discovery cadence from 24 hours to 48 hours. Write down why that cadence is appropriate for the target cluster and what observations will demonstrate that the change achieved its purpose.

When automatic retirement is enabled, inactive-cluster checks occur during full discovery cycles. Automatic retirement is off by default. It is turned on with the system property sn_acc_visibility.auto_retire_k8s_clusters set to true, which requires the discovery_admin role. Once it is on, clusters are retired after 60 days of inactivity unless sn_acc_visibility.auto_retire_period_days is changed. Clusters whose Informers are in the Down state and whose updates have exceeded the configured period are automatically retired. The discovery interval therefore matters when reviewing the timing of those checks.

Before you enable retirement, confirm the prerequisites on the instance. The Kubernetes Visibility Agent plugin should be at application release 3.15.0, and the Informer should be at version 2.6.0. The person making the change needs the discovery_admin role, so check that before you start rather than partway through the procedure.

To turn the feature on, go to All, then System Properties, then All Properties. In the Name field, enter sn_acc_visibility.auto_retire_k8s_clusters. If the property is already listed, double-click its Value field and enter true. If it does not exist on your instance, create a new property with that name and set its Type to True/False, then double-click the Value field and enter true. Reopen the property afterwards and confirm it still reads true, because an edit that was typed but not committed is easy to miss.

The inactivity window is controlled by sn_acc_visibility.auto_retire_period_days, which defaults to 60 days. Retired clusters receive install status 7, which is the Retired value. The sn_acc_visibility.auto_retire_install_status property can change that value, but the choice matters. Setting it to 100 (Absent) causes a table cleanup job to delete the cluster CI and every CI associated with it, and that deletion cannot be reversed. Unless the team has decided to remove those records from the CMDB outright, leave the status at 7.

Linux server CIs tied to Kubernetes nodes need a separate decision. The sn_acc_visibility.node_deletion_set_server_install_status property sets the install status for those server CIs when their nodes are retired. If the property does not exist or its value is empty, no action is taken on the server CIs. Check that property at the same time as the retirement setting, so the server records do not keep showing as active after their nodes have gone.

Keep the full discovery interval and the configured inactivity period separate in the change record. Extending the discovery interval changes the cadence of the checking opportunity; it does not mean you have edited the inactivity period. Review both values with the people responsible for cluster records before approving a longer interval.

Check this behavior against your instance and release, particularly for Agent Client Collector for Kubernetes – Visibility deployments, which document the same frequency procedure in the Xanadu release. Preserve the exact configuration names used by the deployed component. Avoid turning a narrow scheduling change into an unreviewed migration between deployment methods.

For help planning this work, see ServiceNow implementation.

Verify the configuration and observe a full discovery cycle

Use two acceptance checks: the deployment configuration expresses the requested interval, and subsequent observations are consistent with that cadence. These checks answer different questions. A correct value shows what you intended to configure; observed behavior helps establish whether the change reached the intended deployment.

  • Confirm the cluster and Informer covered by the change.
  • Compare the applied value with the approved interval in minutes.
  • Check that the setting name matches the deployment method.
  • Record when the changed deployment configuration was applied.
  • Observe full discovery activity over an appropriate interval and retain the evidence with the change.

Hand over the deployment identity, approved value, previous value and the name of the person who owns the follow-up observation.

Plan the observation period before deployment. A 48-hour interval needs a review window that can meaningfully assess that cadence. An immediate inspection can catch an incorrect value, but it cannot by itself establish that a longer recurring interval is operating as intended. Separate the configuration review from the later operational review in the handover. Keep the approved interval during the observation window; a shorter one would test a different configuration.

If the observed result differs from the request, compare the deployment identity, applied configuration, setting spelling, and units before proposing another value. Avoid repeatedly adjusting the interval while the underlying discrepancy is unexplained. Broader discovery failures need their own investigation, which is outside this interval change.