
    ~ g                     ,    S SK JrJr   " S S\\5      rg)    )PluginIndependentPluginc                   B   ^  \ rS rSrSrSrSrSrSrU 4S jr	S r
S	rU =r$ )
Telegraf   z,Telegraf, the metric collecting tool, plugintelegraf)observability)r   )z/etc/telegraf//etc/default/telegrafc                    > [         TU ]  5         U R                  S5      (       a  U R                  S/5        g U R                  S/5        g )Nall_logsz/var/log/telegraf/z/var/log/telegraf/*.log)supersetup
get_optionadd_copy_spec)self	__class__s    =/usr/lib/python3/dist-packages/sos/report/plugins/telegraf.pyr   Telegraf.setup   sK     ??:&&$   )      c                     / SQnSS/nSSR                  U5       S3nU R                  SSR                  U5       S3US	5        U R                  US
   5        g )N)passwordtokenpwdz/etc/telegraf/*r
   z	(^\s*(.*(|z))\s*=\s*)(.*)()z\1*********r   )joindo_path_regex_subdo_file_private_sub)r   protect_keystelegraf_path_exps	match_exps       r   postprocTelegraf.postproc(   su    
 #
 !,!7 8G	 	!CHH-?$@#AC(-	/
 	  !3A!67r    )__name__
__module____qualname____firstlineno__
short_descplugin_nameprofilesservicesfilesr   r#   __static_attributes____classcell__)r   s   @r   r   r      s-    ?JK!HHE
8 8r   r   N)sos.report.pluginsr   r   r   r%   r   r   <module>r2      s    9,8v( ,8r   