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

The value of agentid is HOSTNAME in the pod, but the error length cannot exceed 24. How can I change it to get the value of HOSTNAME #11509

Closed
hdsfgsgrlsgtw12 opened this issue Sep 20, 2024 · 3 comments

Comments

@hdsfgsgrlsgtw12
Copy link

version:pinpoint-agent-3.0.0

logs:
09-20 16:27:57.237 INFO IdValidator : check SystemProperties(-D) agentId:toc-task-server-699d5cd7b8-5nv55
09-20 16:27:57.238 INFO IdValidator : invalid Id. SystemProperties(-D) agentId can only contain [a-zA-Z0-9], '.', '-', '_'. maxLength:24 value:toc-task-server-699d5cd7b8-5nv55

-javaagent:/usr/local/pinpoint-agent/pinpoint-bootstrap.jar
-Dpinpoint.agentId=${HOSTNAME} -Dpinpoint.applicationName=${PINPOINT_GROUP}

@yjqg6666
Copy link
Contributor

-Dpinpoint.agentName=${HOSTNAME} -Dpinpoint.applicationName=${PINPOINT_GROUP}
-javaagent:/usr/local/pinpoint-agent/pinpoint-bootstrap.jar

Assign the hostname to agentName instead. AgentId would be set to a automatically generated value.

@hdsfgsgrlsgtw12
Copy link
Author

thank you

@yjqg6666
Copy link
Contributor

If your issue is resolved, please close this issue.

@emeroad emeroad closed this as completed Oct 2, 2024
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

3 participants