Skip to content
This repository has been archived by the owner on Dec 8, 2022. It is now read-only.

Add additional metrics groups to defender #1987

Open
christian-herber opened this issue May 7, 2020 · 1 comment
Open

Add additional metrics groups to defender #1987

christian-herber opened this issue May 7, 2020 · 1 comment

Comments

@christian-herber
Copy link

Currently, defender only supports AWS_IOT_DEFENDER_METRICS_TCP_CONNECTIONS. There is no known way to me to provide other groups such as "Listening UDP ports", "Listening TCP ports", and "Network statistics" (see https://docs.aws.amazon.com/iot/latest/developerguide/device-defender-detect.html#DetectMetricsMessages).

If these cannot be supported out of the box, at least some way to enable this functionality in a platform dependent port should be there. Even if i have e.g. network statistics available on my platform, i don't see a way to publish these right now.

@muneebahmed10
Copy link
Contributor

Hi @christian-herber

Thank you for your suggestion and feedback; we will consider it for future releases. Metrics collection is handled by the platform, and currently only the TCP connections metrics group is supported.

Although the API does not expose a method for adding other metrics groups, if your platform has other metrics available, then you could try implementing the functionality to publish them. Note that this would require adding code to parts of the Defender library. To start, you could add a new metrics group here and update the count. You would also need to add code to serialize the metrics group.

Let me know if you have any further questions.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants