a G%@iºã@s&ddlmZmZGdd„deeƒZdS)é)ÚPluginÚIndependentPlugincs8eZdZdZdZdZdZdZ‡fdd„Zdd „Z ‡Z S) ÚTelegrafz,Telegraf, the metric collecting tool, pluginÚtelegraf)Z observability)r)z/etc/telegraf/ú/etc/default/telegrafcs2tƒ ¡| d¡r"| dg¡n | dg¡dS)NZall_logsz/var/log/telegraf/z/var/log/telegraf/*.log)ÚsuperÚsetupZ get_optionZ add_copy_spec)Úself©Ú __class__©ú?/usr/lib/python3.9/site-packages/sos/report/plugins/telegraf.pyrs  ÿÿzTelegraf.setupcCsPgd¢}ddg}dd |¡›d}| dd |¡›d|d ¡| |d ¡dS) N)ÚpasswordÚtokenÚpwdz/etc/telegraf/*rz (^\s*(.*(ú|z))\s*=\s*)(.*)ú(ú)z \1*********r)ÚjoinZdo_path_regex_subZdo_file_private_sub)r Z protect_keysZtelegraf_path_expsZ match_expr r r Úpostproc(sþþzTelegraf.postproc) Ú__name__Ú __module__Ú __qualname__Z short_descZ plugin_nameZprofilesZservicesÚfilesrrÚ __classcell__r r r r rs rN)Zsos.report.pluginsrrrr r r r Ú s