Skip to content

Improve speed of snmp plugin loading #5720

@danielnelson

Description

@danielnelson

Feature Request

Proposal:

Current behavior:

For each plugin, snmptranslate is called on each field, information is not shared between plugin instances.

Desired behavior:

Add a shared cache for loading SNMP MIB data to improve the startup speed when using large tables, many fields, or many plugins. Use more efficient lookup strategy, perhaps snmptranslate -Tso -m <mib-file> to avoid loading the cache file multiple times.

When Telegraf is reloaded, the cache should be cleared and rebuilt.

Use case:

Currently Telegraf can be very slow loading SNMP inputs, in some cases taking up to 10 minutes. This is made worse when you have large MIB files.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/snmpfeature requestRequests for new plugin and for new features to existing plugins

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions