Skip to content

[TASK] Write ClamAV exporter in Go. #291

@maneeshaxyz

Description

@maneeshaxyz

What needs to be done?

The current ClamAV exporter is implemented as a single Python file. To improve maintainability, performance, and consistency with the rest of the codebase, it should be rewritten in Go.

Background

The existing implementation is contained within one large Python file, which makes the code harder to maintain and extend. Since much of the surrounding infrastructure and services are written in Go, rewriting the exporter in Go will provide better consistency, easier integration, and improved maintainability.

Tasks

  • Review the current Python implementation of the ClamAV exporter.
  • Reimplement the exporter in Go with equivalent functionality.
  • Ensure the Go version exposes the same metrics and endpoints required by Prometheus.
  • Add basic documentation for building and running the exporter.
  • Remove the existing Python implementation once the Go version is verified.

Expected Outcome

  • A Go-based ClamAV exporter with the same functionality as the current Python implementation.
  • Improved maintainability and consistency with the rest of the codebase.
  • Removal of the large Python file currently used for the exporter.

Additional:
Measure the memory usage of this service against the python version.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions