Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AWS CloudWatch metrics, diskStorage Capacity not seen #119

Closed
amolari opened this issue Mar 5, 2021 · 4 comments
Closed

AWS CloudWatch metrics, diskStorage Capacity not seen #119

amolari opened this issue Mar 5, 2021 · 4 comments
Labels
bug Something isn't working
Milestone

Comments

@amolari
Copy link

amolari commented Mar 5, 2021

Environment

  • Telemetry Streaming Version: 1.18
  • BIG-IP Version: 14.1.3.1

Summary

In AWS CloudWatch, the metric F5_system_diskStorage_Capacity is not visible (but F5_system_diskStorage_1024-blocks is).

Steps To Reproduce

Expected Behavior

We can see the metric F5_system_diskStorage_Capacity, as it's configured in the properties.json:

"diskStorage": {
"structure": { "parentKey": "system" },
"key": "diskStorage::commandResult",
"normalization": [
{
"runFunctions": [{ "name": "formatAsJson", "args": { "type": "csv", "mapKey": "Mounted", "filterKeys": { "include": [ "/", "Capacity", "1024-blocks" ] } } }]
}
]
},

Note: wouldn't it make sense to get metrics only for non tempfs/devtempfs devices? Replacing the command

"utilCmdArgs": "-c \"/bin/df -P | /usr/bin/tr -s ' ' ','\""

with
/bin/df -P -x tmpfs -x devtmpfs | /usr/bin/tr -s ' ' ','

Actual Behavior

In AWS CloudWatch, only the metrics F5_system_diskStorage_1024-blocks are visible.

@amolari amolari added bug Something isn't working untriaged Issue needs to be reviewed for validity labels Mar 5, 2021
@amolari
Copy link
Author

amolari commented Mar 8, 2021

It seems to be an issue on the AWS CloudWatch consumer side: with the Generic_HTTP consumer I can see the metric.

@dstokesf5
Copy link
Contributor

I believe this is occurring because most metrics only TS consumers filter out non-metrics data. In this case, the percent character in the capacity field is likely preventing it from being used. I have filed this bug in our internal product backlog as AUTOTOOL-2311.

@dstokesf5 dstokesf5 removed the untriaged Issue needs to be reviewed for validity label Mar 8, 2021
@amolari
Copy link
Author

amolari commented Mar 9, 2021

@dstokesf5 You are right, if I change the path.json to be
"utilCmdArgs": "-c \"/bin/df -P -xdevtmpfs -xtmpfs | /usr/bin/tr -s ' ' ',' | /usr/bin/tr -d '%'\""
it works.
Would you agree to change it that way (including exclusion of devtmpfs and tmpfs)?

@dstokesf5 dstokesf5 added this to the v1.20.0 milestone May 20, 2021
@dstokesf5
Copy link
Contributor

This issue was resolved as part of the 1.20.0 release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants