<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Vertica Documentation – Data collector functions</title>
    <link>/en/sql-reference/functions/management-functions/data-collector-functions/</link>
    <description>Recent content in Data collector functions on Vertica Documentation</description>
    <generator>Hugo -- gohugo.io</generator>
    
	  <atom:link href="/en/sql-reference/functions/management-functions/data-collector-functions/index.xml" rel="self" type="application/rss+xml" />
    
    
      
        
      
    
    
    <item>
      <title>Sql-Reference: CLEAR_DATA_COLLECTOR</title>
      <link>/en/sql-reference/functions/management-functions/data-collector-functions/clear-data-collector/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/en/sql-reference/functions/management-functions/data-collector-functions/clear-data-collector/</guid>
      <description>
        
        
        &lt;p&gt;Clears all memory and disk records from Data Collector tables and logs, and resets collection statistics in system table &lt;a href=&#34;../../../../../en/sql-reference/system-tables/v-monitor-schema/data-collector/&#34;&gt;DATA_COLLECTOR&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;This is a meta-function. You must call meta-functions in a top-level &lt;a href=&#34;../../../../../en/sql-reference/statements/select/&#34;&gt;SELECT&lt;/a&gt; statement.&lt;/p&gt;

&lt;h2 id=&#34;behavior-type&#34;&gt;Behavior type&lt;/h2&gt;
&lt;a class=&#34;glosslink&#34; href=&#34;../../../../../en/glossary/volatile-functions/&#34; title=&#34;&#34;&gt;Volatile&lt;/a&gt;
&lt;h2 id=&#34;syntax&#34;&gt;Syntax&lt;/h2&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;CLEAR_DATA_COLLECTOR( [ &amp;#39;&lt;span class=&#34;code-variable&#34;&gt;component&lt;/span&gt;&amp;#39; ] )
&lt;/code&gt;&lt;/pre&gt;&lt;h2 id=&#34;parameters&#34;&gt;Parameters&lt;/h2&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;em&gt;&lt;code&gt;component&lt;/code&gt;&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;Clears memory and disk records for the specified component. If you provide no argument, the function clears memory and disk records for all components.
&lt;p&gt;Query system table &lt;a href=&#34;../../../../../en/sql-reference/system-tables/v-monitor-schema/data-collector/&#34;&gt;DATA_COLLECTOR&lt;/a&gt; for component names. For example:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; SELECT DISTINCT component, description FROM data_collector WHERE component ilike &amp;#39;%Depot%&amp;#39; ORDER BY component;
   component    |          description
----------------+-------------------------------
 DepotEvictions | Files evicted from the Depot
 DepotFetches   | Files fetched to the Depot
 DepotUploads   | Files Uploaded from the Depot
(3 rows)
&lt;/code&gt;&lt;/pre&gt;
&lt;/dd&gt;
&lt;/dl&gt;
&lt;h2 id=&#34;privileges&#34;&gt;Privileges&lt;/h2&gt;
&lt;p&gt;Superuser&lt;/p&gt;

&lt;h2 id=&#34;examples&#34;&gt;Examples&lt;/h2&gt;
&lt;p&gt;The following command clears memory and disk records for the ResourceAcquisitions component:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; SELECT clear_data_collector(&amp;#39;ResourceAcquisitions&amp;#39;);
 clear_data_collector
----------------------
 CLEAR
(1 row)
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;The following command clears data collection for all components:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; SELECT clear_data_collector();
 clear_data_collector
----------------------
 CLEAR
(1 row)
&lt;/code&gt;&lt;/pre&gt;&lt;h2 id=&#34;see-also&#34;&gt;See also&lt;/h2&gt;
&lt;a href=&#34;../../../../../en/admin/monitoring/data-collector-utility/&#34;&gt;Data collector utility&lt;/a&gt;

      </description>
    </item>
    
    <item>
      <title>Sql-Reference: DATA_COLLECTOR_HELP</title>
      <link>/en/sql-reference/functions/management-functions/data-collector-functions/data-collector-help/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/en/sql-reference/functions/management-functions/data-collector-functions/data-collector-help/</guid>
      <description>
        
        
        &lt;p&gt;Returns online usage instructions about the Data Collector, the 
&lt;code&gt;&lt;a href=&#34;../../../../../en/sql-reference/system-tables/v-monitor-schema/data-collector/&#34;&gt;DATA_COLLECTOR&lt;/a&gt;&lt;/code&gt; system table, and the Data Collector control functions.&lt;/p&gt;
&lt;p&gt;This is a meta-function. You must call meta-functions in a top-level &lt;a href=&#34;../../../../../en/sql-reference/statements/select/&#34;&gt;SELECT&lt;/a&gt; statement.&lt;/p&gt;

&lt;h2 id=&#34;behavior-type&#34;&gt;Behavior type&lt;/h2&gt;
&lt;a class=&#34;glosslink&#34; href=&#34;../../../../../en/glossary/volatile-functions/&#34; title=&#34;&#34;&gt;Volatile&lt;/a&gt;
&lt;h2 id=&#34;syntax&#34;&gt;Syntax&lt;/h2&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;DATA_COLLECTOR_HELP()
&lt;/code&gt;&lt;/pre&gt;&lt;h2 id=&#34;privileges&#34;&gt;Privileges&lt;/h2&gt;
&lt;p&gt;None&lt;/p&gt;
&lt;h2 id=&#34;returns&#34;&gt;Returns&lt;/h2&gt;
&lt;p&gt;The &lt;code&gt;DATA_COLLECTOR_HELP()&lt;/code&gt; function returns the following information:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; SELECT DATA_COLLECTOR_HELP();

-----------------------------------------------------------------------------
Usage Data Collector
The data collector retains history of important system activities.
   This data can be used as a reference of what actions have been taken
      by users, but it can also be used to locate performance bottlenecks,
      or identify potential improvements to the Vertica configuration.
   This data is queryable via Vertica system tables.
Acccess a list of data collector components, and some statistics, by running:
   SELECT * FROM v_monitor.data_collector;

The amount of data retained by size and time can be controlled with several
functions.
   To just set the size amount:
      set_data_collector_policy(&amp;lt;component&amp;gt;,
                                &amp;lt;memory retention (KB)&amp;gt;,
                                &amp;lt;disk retention (KB)&amp;gt;);

   To set both the size and time amounts (the smaller one will dominate):
      set_data_collector_policy(&amp;lt;component&amp;gt;,
                                &amp;lt;memory retention (KB)&amp;gt;,
                                &amp;lt;disk retention (KB)&amp;gt;,
                                &amp;lt;interval&amp;gt;);

   To set just the time amount:
      set_data_collector_time_policy(&amp;lt;component&amp;gt;,
                                     &amp;lt;interval&amp;gt;);

   To set the time amount for all tables:
      set_data_collector_time_policy(&amp;lt;interval&amp;gt;);

The current retention policy for a component can be queried with:
   get_data_collector_policy(&amp;lt;component&amp;gt;);

Data on disk is kept in the &amp;#34;DataCollector&amp;#34; directory under the Vertica
\catalog path. This directory also contains instructions on how to load
the monitoring data into another Vertica database.

To move the data collector logs and instructions to other storage locations,
create labeled storage locations using add_location and then use:

   set_data_collector_storage_location(&amp;lt;storage_label&amp;gt;);

Additional commands can be used to configure the data collection logs.
The log can be cleared with:
clear_data_collector([&amp;lt;optional component&amp;gt;]);
The log can be synchronized with the disk storage using:
flush_data_collector([&amp;lt;optional component&amp;gt;]);
&lt;/code&gt;&lt;/pre&gt;&lt;h2 id=&#34;see-also&#34;&gt;See also&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;a href=&#34;../../../../../en/sql-reference/system-tables/v-monitor-schema/data-collector/&#34;&gt;DATA_COLLECTOR&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a href=&#34;../../../../../en/sql-reference/system-tables/v-monitor-schema/tuning-recommendations/&#34;&gt;TUNING_RECOMMENDATIONS&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a href=&#34;../../../../../en/admin/analyzing-workloads/&#34;&gt;Analyzing workloads&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a href=&#34;../../../../../en/admin/monitoring/data-collector-utility/&#34;&gt;Data collector utility&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

      </description>
    </item>
    
    <item>
      <title>Sql-Reference: FLUSH_DATA_COLLECTOR</title>
      <link>/en/sql-reference/functions/management-functions/data-collector-functions/flush-data-collector/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/en/sql-reference/functions/management-functions/data-collector-functions/flush-data-collector/</guid>
      <description>
        
        
        &lt;p&gt;Waits until memory logs are moved to disk and then flushes the Data Collector, synchronizing the log with disk storage.&lt;/p&gt;
&lt;p&gt;This is a meta-function. You must call meta-functions in a top-level &lt;a href=&#34;../../../../../en/sql-reference/statements/select/&#34;&gt;SELECT&lt;/a&gt; statement.&lt;/p&gt;

&lt;h2 id=&#34;behavior-type&#34;&gt;Behavior type&lt;/h2&gt;
&lt;a class=&#34;glosslink&#34; href=&#34;../../../../../en/glossary/volatile-functions/&#34; title=&#34;&#34;&gt;Volatile&lt;/a&gt;
&lt;h2 id=&#34;syntax&#34;&gt;Syntax&lt;/h2&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;FLUSH_DATA_COLLECTOR( [ &amp;#39;&lt;span class=&#34;code-variable&#34;&gt;component&lt;/span&gt;&amp;#39; ] )
&lt;/code&gt;&lt;/pre&gt;&lt;h2 id=&#34;parameters&#34;&gt;Parameters&lt;/h2&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;em&gt;&lt;code&gt;component&lt;/code&gt;&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;Flushes data for the specified component. If you omit this argument, the function flushes data for all components.
&lt;p&gt;Query system table &lt;a href=&#34;../../../../../en/sql-reference/system-tables/v-monitor-schema/data-collector/&#34;&gt;DATA_COLLECTOR&lt;/a&gt; for component names. For example:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; SELECT DISTINCT component, description FROM data_collector WHERE component ilike &amp;#39;%Depot%&amp;#39; ORDER BY component;
   component    |          description
----------------+-------------------------------
 DepotEvictions | Files evicted from the Depot
 DepotFetches   | Files fetched to the Depot
 DepotUploads   | Files Uploaded from the Depot
(3 rows)
&lt;/code&gt;&lt;/pre&gt;
&lt;/dd&gt;
&lt;/dl&gt;
&lt;h2 id=&#34;privileges&#34;&gt;Privileges&lt;/h2&gt;
&lt;p&gt;Superuser&lt;/p&gt;

&lt;h2 id=&#34;examples&#34;&gt;Examples&lt;/h2&gt;
&lt;p&gt;The following command flushes the Data Collector for the ResourceAcquisitions component:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; SELECT flush_data_collector(&amp;#39;ResourceAcquisitions&amp;#39;);
 flush_data_collector
----------------------
 FLUSH
(1 row)
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;The following command flushes data collection for all components:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; SELECT flush_data_collector();
 flush_data_collector
----------------------
 FLUSH
(1 row)
&lt;/code&gt;&lt;/pre&gt;&lt;h2 id=&#34;see-also&#34;&gt;See also&lt;/h2&gt;
&lt;a href=&#34;../../../../../en/admin/monitoring/data-collector-utility/&#34;&gt;Data collector utility&lt;/a&gt;

      </description>
    </item>
    
    <item>
      <title>Sql-Reference: GET_DATA_COLLECTOR_POLICY</title>
      <link>/en/sql-reference/functions/management-functions/data-collector-functions/get-data-collector-policy/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/en/sql-reference/functions/management-functions/data-collector-functions/get-data-collector-policy/</guid>
      <description>
        
        
        &lt;p&gt;Retrieves a brief statement about the retention policy for the specified component.&lt;/p&gt;
&lt;p&gt;This is a meta-function. You must call meta-functions in a top-level &lt;a href=&#34;../../../../../en/sql-reference/statements/select/&#34;&gt;SELECT&lt;/a&gt; statement.&lt;/p&gt;

&lt;h2 id=&#34;behavior-type&#34;&gt;Behavior type&lt;/h2&gt;
&lt;a class=&#34;glosslink&#34; href=&#34;../../../../../en/glossary/volatile-functions/&#34; title=&#34;&#34;&gt;Volatile&lt;/a&gt;
&lt;h2 id=&#34;syntax&#34;&gt;Syntax&lt;/h2&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;GET_DATA_COLLECTOR_POLICY( &amp;#39;&lt;span class=&#34;code-variable&#34;&gt;component&lt;/span&gt;&amp;#39; )
&lt;/code&gt;&lt;/pre&gt;&lt;h2 id=&#34;parameters&#34;&gt;Parameters&lt;/h2&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;em&gt;&lt;code&gt;component&lt;/code&gt;&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;Returns the retention policy of the specified component.
&lt;p&gt;Query system table &lt;a href=&#34;../../../../../en/sql-reference/system-tables/v-monitor-schema/data-collector/&#34;&gt;DATA_COLLECTOR&lt;/a&gt; for component names. For example:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; SELECT DISTINCT component, description FROM data_collector WHERE component ilike &amp;#39;%Depot%&amp;#39; ORDER BY component;
   component    |          description
----------------+-------------------------------
 DepotEvictions | Files evicted from the Depot
 DepotFetches   | Files fetched to the Depot
 DepotUploads   | Files Uploaded from the Depot
(3 rows)
&lt;/code&gt;&lt;/pre&gt;
&lt;/dd&gt;
&lt;/dl&gt;
&lt;h2 id=&#34;privileges&#34;&gt;Privileges&lt;/h2&gt;
&lt;p&gt;None&lt;/p&gt;
&lt;h2 id=&#34;examples&#34;&gt;Examples&lt;/h2&gt;
&lt;p&gt;The following query returns the history of all resource acquisitions by specifying the &lt;code&gt;ResourceAcquisitions&lt;/code&gt; component:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; SELECT get_data_collector_policy(&amp;#39;ResourceAcquisitions&amp;#39;);
          get_data_collector_policy
----------------------------------------------
 1000KB kept in memory, 10000KB kept on disk.
(1 row)
&lt;/code&gt;&lt;/pre&gt;&lt;h2 id=&#34;see-also&#34;&gt;See also&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;a href=&#34;../../../../../en/sql-reference/system-tables/v-monitor-schema/data-collector/&#34;&gt;DATA_COLLECTOR&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a href=&#34;../../../../../en/admin/monitoring/data-collector-utility/&#34;&gt;Data collector utility&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

      </description>
    </item>
    
    <item>
      <title>Sql-Reference: SET_DATA_COLLECTOR_POLICY</title>
      <link>/en/sql-reference/functions/management-functions/data-collector-functions/set-data-collector-policy/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/en/sql-reference/functions/management-functions/data-collector-functions/set-data-collector-policy/</guid>
      <description>
        
        
        &lt;p&gt;Updates the following retention policy properties for the specified component:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;MEMORY_BUFFER_SIZE_KB&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;DISK_SIZE_KB&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;INTERVAL_TIME&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Before you change a retention policy, you can view its current settings by querying system table &lt;a href=&#34;../../../../../en/sql-reference/system-tables/v-monitor-schema/data-collector/&#34;&gt;DATA_COLLECTOR&lt;/a&gt; or by calling meta-function &lt;a href=&#34;../../../../../en/sql-reference/functions/management-functions/data-collector-functions/get-data-collector-policy/&#34;&gt;GET_DATA_COLLECTOR_POLICY&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;This is a meta-function. You must call meta-functions in a top-level &lt;a href=&#34;../../../../../en/sql-reference/statements/select/&#34;&gt;SELECT&lt;/a&gt; statement.&lt;/p&gt;

&lt;h2 id=&#34;behavior-type&#34;&gt;Behavior type&lt;/h2&gt;
&lt;a class=&#34;glosslink&#34; href=&#34;../../../../../en/glossary/volatile-functions/&#34; title=&#34;&#34;&gt;Volatile&lt;/a&gt;
&lt;h2 id=&#34;syntax&#34;&gt;Syntax&lt;/h2&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;SET_DATA_COLLECTOR_POLICY(&amp;#39;&lt;span class=&#34;code-variable&#34;&gt;component&lt;/span&gt;&amp;#39;, &amp;#39;&lt;span class=&#34;code-variable&#34;&gt;memory‑buffer‑size&lt;/span&gt;&amp;#39;, &amp;#39;&lt;span class=&#34;code-variable&#34;&gt;disk‑size&lt;/span&gt;&amp;#39; [,&amp;#39;&lt;span class=&#34;code-variable&#34;&gt;interval‑time&lt;/span&gt;&amp;#39;]  )
&lt;/code&gt;&lt;/pre&gt;&lt;h2 id=&#34;parameters&#34;&gt;Parameters&lt;/h2&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;em&gt;&lt;code&gt;component&lt;/code&gt;&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;Specifies the retention policy to update.
&lt;p&gt;Query system table &lt;a href=&#34;../../../../../en/sql-reference/system-tables/v-monitor-schema/data-collector/&#34;&gt;DATA_COLLECTOR&lt;/a&gt; for component names. For example:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; SELECT DISTINCT component, description FROM data_collector WHERE component ilike &amp;#39;%Depot%&amp;#39; ORDER BY component;
   component    |          description
----------------+-------------------------------
 DepotEvictions | Files evicted from the Depot
 DepotFetches   | Files fetched to the Depot
 DepotUploads   | Files Uploaded from the Depot
(3 rows)
&lt;/code&gt;&lt;/pre&gt;
&lt;/dd&gt;
&lt;dt&gt;&lt;em&gt;&lt;code&gt;memory‑buffer‑size&lt;/code&gt;&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;Specifies in kilobytes the maximum amount of data that is buffered in memory before moving it to disk. The policy retention policy property MEMORY_BUFFER_SIZE_KB is set from this value.

&lt;div class=&#34;admonition caution&#34; role=&#34;alert&#34;&gt;
&lt;h4 class=&#34;admonition-head&#34;&gt;Caution&lt;/h4&gt;

If you set this parameter to 0, the function returns with a warning that the Data Collector cannot retain any data for this component in memory or on disk.

&lt;/div&gt;
&lt;p&gt;Consider setting this parameter to a high value in the following cases:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Unusually high levels of data collection. If &lt;em&gt;&lt;code&gt;memory‑buffer‑size&lt;/code&gt;&lt;/em&gt; is set too low, the Data Collector might be unable to flush buffered data to disk fast enough to keep up with the activity level, which can lead to loss of in-memory data.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Very large data collector records—for example, records with very long query strings. The Data Collector uses double-buffering, so it cannot retain in memory records that are more than 50 percent larger than &lt;em&gt;&lt;code&gt;memory‑buffer‑size&lt;/code&gt;&lt;/em&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/dd&gt;
&lt;dt&gt;&lt;em&gt;&lt;code&gt;disk‑size&lt;/code&gt;&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;Specifies in kilobytes the maximum disk space allocated for this component&#39;s Data Collector table. The policy retention policy property DISK_SIZE_KB is set from this value. If set to 0, the Data Collector retains only as much component data as it can buffer in memory, as specified by &lt;em&gt;&lt;code&gt;memory‑buffer‑size&lt;/code&gt;&lt;/em&gt;.&lt;/dd&gt;
&lt;dt&gt;&lt;em&gt;&lt;code&gt;interval‑time&lt;/code&gt;&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;p&gt;&lt;a href=&#34;../../../../../en/sql-reference/data-types/datetime-data-types/interval/&#34;&gt;INTERVAL&lt;/a&gt; data type that specifies how long data of a given component is retained in that component&#39;s Data Collector table. The retention policy property INTERVAL_TIME is set from this value. If you set this parameter to a positive value, it also changes the policy property INTERVAL_SET to t (true).&lt;/p&gt;
&lt;p&gt;For example, if you specify component TupleMoverEvents and set interval-time to an interval of two days (&lt;code&gt;&#39;2 days&#39;::interval&lt;/code&gt;), the Data Collector table &lt;code&gt;dc_tuple_mover_events&lt;/code&gt; retains records of Tuple Mover activity over the last 48 hours. Older Tuple Mover data are automatically dropped from this table.

&lt;div class=&#34;alert admonition note&#34; role=&#34;alert&#34;&gt;
&lt;h4 class=&#34;admonition-head&#34;&gt;Note&lt;/h4&gt;

Setting a component&#39;s policy&#39;s INTERVAL_TIME property has no effect on how much data storage the Data Collector retains on disk for that component. Maximum disk storage capacity is determined by the DISK_SIZE_KB property. Setting the INTERVAL_TIME property only affects how long data is retained by the component&#39;s Data Collector table. For details, see &lt;a href=&#34;../../../../../en/admin/monitoring/data-collector-utility/configuring-data-retention-policies/&#34;&gt;Configuring data retention policies&lt;/a&gt;.

&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;To disable the INTERVAL_TIME policy property, set this parameter to a negative integer. Doing so reverts two retention policy properties to their default settings:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;INTERVAL_SET: f&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;INTERVAL_TIME: 0&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;With these two properties thus set, the component&#39;s Data Collector table retains data on all component events until it reaches its maximum limit, as set by retention policy property DISK_SIZE_KB.&lt;/p&gt;
&lt;/dd&gt;
&lt;/dl&gt;
&lt;h2 id=&#34;privileges&#34;&gt;Privileges&lt;/h2&gt;
&lt;p&gt;Superuser&lt;/p&gt;

&lt;h2 id=&#34;examples&#34;&gt;Examples&lt;/h2&gt;
&lt;p&gt;See &lt;a href=&#34;../../../../../en/admin/monitoring/data-collector-utility/configuring-data-retention-policies/&#34;&gt;Configuring data retention policies&lt;/a&gt;.&lt;/p&gt;

      </description>
    </item>
    
    <item>
      <title>Sql-Reference: SET_DATA_COLLECTOR_TIME_POLICY</title>
      <link>/en/sql-reference/functions/management-functions/data-collector-functions/set-data-collector-time-policy/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/en/sql-reference/functions/management-functions/data-collector-functions/set-data-collector-time-policy/</guid>
      <description>
        
        
        &lt;p&gt;Updates the retention policy property INTERVAL_TIME for the specified component. Calling this function has no effect on other properties of the same component. You can use this function to update the INTERVAL_TIME property of all component retention policies.&lt;/p&gt;
&lt;p&gt;To set other retention policy properties, call &lt;a href=&#34;../../../../../en/sql-reference/functions/management-functions/data-collector-functions/set-data-collector-policy/&#34;&gt;SET_DATA_COLLECTOR_POLICY&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;This is a meta-function. You must call meta-functions in a top-level &lt;a href=&#34;../../../../../en/sql-reference/statements/select/&#34;&gt;SELECT&lt;/a&gt; statement.&lt;/p&gt;

&lt;h2 id=&#34;behavior-type&#34;&gt;Behavior type&lt;/h2&gt;
&lt;a class=&#34;glosslink&#34; href=&#34;../../../../../en/glossary/volatile-functions/&#34; title=&#34;&#34;&gt;Volatile&lt;/a&gt;
&lt;h2 id=&#34;syntax&#34;&gt;Syntax&lt;/h2&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;SET_DATA_COLLECTOR_TIME_POLICY( [&amp;#39;&lt;span class=&#34;code-variable&#34;&gt;component&lt;/span&gt;&amp;#39;,] &amp;#39;&lt;span class=&#34;code-variable&#34;&gt;interval‑time&lt;/span&gt;&amp;#39; )
&lt;/code&gt;&lt;/pre&gt;&lt;h2 id=&#34;parameters&#34;&gt;Parameters&lt;/h2&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;em&gt;&lt;code&gt;component&lt;/code&gt;&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;Specifies the retention policy to update. If you omit this argument, Vertica updates the retention policy of all Data Collector components.
&lt;p&gt;Query system table &lt;a href=&#34;../../../../../en/sql-reference/system-tables/v-monitor-schema/data-collector/&#34;&gt;DATA_COLLECTOR&lt;/a&gt; for component names. For example:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; SELECT DISTINCT component, description FROM data_collector WHERE component ilike &amp;#39;%Depot%&amp;#39; ORDER BY component;
   component    |          description
----------------+-------------------------------
 DepotEvictions | Files evicted from the Depot
 DepotFetches   | Files fetched to the Depot
 DepotUploads   | Files Uploaded from the Depot
(3 rows)
&lt;/code&gt;&lt;/pre&gt;
&lt;/dd&gt;
&lt;dt&gt;&lt;em&gt;&lt;code&gt;interval‑time&lt;/code&gt;&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;p&gt;&lt;a href=&#34;../../../../../en/sql-reference/data-types/datetime-data-types/interval/&#34;&gt;INTERVAL&lt;/a&gt; data type that specifies how long data of a given component is retained in that component&#39;s Data Collector table. The retention policy property INTERVAL_TIME is set from this value. If you set this parameter to a positive value, it also changes the policy property INTERVAL_SET to t (true).&lt;/p&gt;
&lt;p&gt;For example, if you specify component TupleMoverEvents and set interval-time to an interval of two days (&lt;code&gt;&#39;2 days&#39;::interval&lt;/code&gt;), the Data Collector table &lt;code&gt;dc_tuple_mover_events&lt;/code&gt; retains records of Tuple Mover activity over the last 48 hours. Older Tuple Mover data are automatically dropped from this table.

&lt;div class=&#34;alert admonition note&#34; role=&#34;alert&#34;&gt;
&lt;h4 class=&#34;admonition-head&#34;&gt;Note&lt;/h4&gt;

Setting a component&#39;s policy&#39;s INTERVAL_TIME property has no effect on how much data storage the Data Collector retains on disk for that component. Maximum disk storage capacity is determined by the DISK_SIZE_KB property. Setting the INTERVAL_TIME property only affects how long data is retained by the component&#39;s Data Collector table. For details, see &lt;a href=&#34;../../../../../en/admin/monitoring/data-collector-utility/configuring-data-retention-policies/&#34;&gt;Configuring data retention policies&lt;/a&gt;.

&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;To disable the INTERVAL_TIME policy property, set this parameter to a negative integer. Doing so reverts two retention policy properties to their default settings:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;INTERVAL_SET: f&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;INTERVAL_TIME: 0&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;With these two properties thus set, the component&#39;s Data Collector table retains data on all component events until it reaches its maximum limit, as set by retention policy property DISK_SIZE_KB.&lt;/p&gt;
&lt;/dd&gt;
&lt;/dl&gt;
&lt;h2 id=&#34;privileges&#34;&gt;Privileges&lt;/h2&gt;
&lt;p&gt;Superuser&lt;/p&gt;

&lt;h2 id=&#34;examples&#34;&gt;Examples&lt;/h2&gt;
&lt;p&gt;See &lt;a href=&#34;../../../../../en/admin/monitoring/data-collector-utility/configuring-data-retention-policies/&#34;&gt;Configuring data retention policies&lt;/a&gt;.&lt;/p&gt;

      </description>
    </item>
    
  </channel>
</rss>
