Hostname instead of ip

hi…i using node_exporter to collect data from ec2instance. dashboard shows only ip i want to change hostname instead of ip