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

disk_used_percent does not work with device name xvda1 in Amazon Linux AMI #43

Open
vumdao opened this issue Apr 21, 2023 · 1 comment
Assignees

Comments

@vumdao
Copy link

vumdao commented Apr 21, 2023

From the CwAgent namespace, the collected metrics do not contain information xvda1 device name but the mapping

[root@ip-10-0-196-70 bin]# ls -la /dev/xvda1
lrwxrwxrwx 1 root root 9 Apr 21 15:25 /dev/xvda1 -> nvme0n1p1
[root@ip-10-0-196-70 bin]# cat /etc/os-release
NAME="Amazon Linux"
VERSION="2"
ID="amzn"
ID_LIKE="centos rhel fedora"
VERSION_ID="2"
PRETTY_NAME="Amazon Linux 2"
ANSI_COLOR="0;33"
CPE_NAME="cpe:2.3:o:amazon:amazon_linux:2"
HOME_URL="https://amazonlinux.com/"

image

@knizami
Copy link
Contributor

knizami commented May 4, 2023

Hello, thanks for reporting this, it appears the default device name has changed. I have updated the default_alarms dictionary to reflect the new default device nvme0n1p1:

118789b

@knizami knizami self-assigned this May 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants