You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by GitBox <gi...@apache.org> on 2020/09/11 11:16:52 UTC

[GitHub] [skywalking] super-ajun opened a new issue #5471: agent.instance_name is too long and can not to show full

super-ajun opened a new issue #5471:
URL: https://github.com/apache/skywalking/issues/5471


    My java app is run in kubernetes, and configure the skywalking agent.instance_name=uuid@hostname,  the uuid is 32 bit ,  the hostname is longer than 20  or is longer than 50, but the agent.instace_name max length is 50, I can cancel the uuid in instance name , but the name still more than 50, so in skywalking ui can not show full.  I want to show full , What should i do ? 
   
   
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [skywalking] wu-sheng commented on issue #5471: agent.instance_name is too long and can not to show full

Posted by GitBox <gi...@apache.org>.
wu-sheng commented on issue #5471:
URL: https://github.com/apache/skywalking/issues/5471#issuecomment-691078698


   The reason behind this limitation is, the instance id is part of storage id, such as ElasticSearch row id. Once you use the super long key, it will break the storage.
   
   This is the backend default setting
   ```
       /**
        * The max length of the service name.
        */
       private int serviceNameMaxLength = 70;
       /**
        * The max length of the service instance name.
        */
       private int instanceNameMaxLength = 70;
       /**
        * The max length of the endpoint name.
        *
        * <p>NOTICE</p>
        * In the current practice, we don't recommend the length over 190.
        */
       private int endpointNameMaxLength = 150;
   ```
   If 70 works for you, welcome to submit a pull request to change `org.apache.skywalking.apm.agent.core.conf.Config`.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [skywalking] EvanLjp commented on issue #5471: agent.instance_name is too long and can not to show full

Posted by GitBox <gi...@apache.org>.
EvanLjp commented on issue #5471:
URL: https://github.com/apache/skywalking/issues/5471#issuecomment-691602297


   agent supports env as instance ,such as MY_POD_NAME


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [skywalking] wu-sheng closed issue #5471: agent.instance_name is too long and can not to show full

Posted by GitBox <gi...@apache.org>.
wu-sheng closed issue #5471:
URL: https://github.com/apache/skywalking/issues/5471


   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [skywalking] wu-sheng commented on issue #5471: agent.instance_name is too long and can not to show full

Posted by GitBox <gi...@apache.org>.
wu-sheng commented on issue #5471:
URL: https://github.com/apache/skywalking/issues/5471#issuecomment-691078698


   The reason behind this limitation is, the instance id is part of storage id, such as ElasticSearch row id. Once you use the super long key, it will break the storage.
   
   This is the backend default setting
   ```
       /**
        * The max length of the service name.
        */
       private int serviceNameMaxLength = 70;
       /**
        * The max length of the service instance name.
        */
       private int instanceNameMaxLength = 70;
       /**
        * The max length of the endpoint name.
        *
        * <p>NOTICE</p>
        * In the current practice, we don't recommend the length over 190.
        */
       private int endpointNameMaxLength = 150;
   ```
   If 70 works for you, welcome to submit a pull request to change `org.apache.skywalking.apm.agent.core.conf.Config`.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [skywalking] wu-sheng commented on issue #5471: agent.instance_name is too long and can not to show full

Posted by GitBox <gi...@apache.org>.
wu-sheng commented on issue #5471:
URL: https://github.com/apache/skywalking/issues/5471#issuecomment-691078698






----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org