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

Add --name option to display custom names for hosts #524

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Alec-Dieken
Copy link

This PR adds a new --name feature that allows users to specify custom display names for hosts being pinged.
This makes it easier to identify targets in the graph, especially when monitoring multiple similar IPs or when the hostname isn't descriptive enough.

Feature Details

  • Added a new --name command line option that can be used multiple times
  • Each --name corresponds to a host in the same order they're specified on the command line
  • Custom names are displayed in the format: Custom Name (IP Address)
  • Falls back to the original hostname display if no custom name is provided
  • Works seamlessly with existing features like cloud shorthands and IPv4/IPv6 options

Example Usage

Specify custom names for hosts

gping --name "Google DNS" 8.8.8.8 --name "Cloudflare DNS" 1.1.1.1

Mix named and unnamed hosts

gping --name "Production DB" 10.0.0.5 10.0.0.6 10.0.0.7

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

Successfully merging this pull request may close these issues.

1 participant