To change a port #6941
              
                Unanswered
              
          
                  
                    
                      Donadominic
                    
                  
                
                  asked this question in
                Q&A
              
            Replies: 2 comments
-
| You can find more information here: https://opentelemetry.io/docs/collector/configuration/#service You'll need to override the metrics default endpoint in the service configuration, like this:  | 
Beta Was this translation helpful? Give feedback.
                  
                    0 replies
                  
                
            -
| The answer from @jpkrohling is outdated as of 2025. According to the documentation, the currently correct config would be:   service:
    metrics:
      readers:
        - pull:
            exporter:
              prometheus:
                host: '0.0.0.0'
                port: 8888 | 
Beta Was this translation helpful? Give feedback.
                  
                    0 replies
                  
                
            
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
Uh oh!
There was an error while loading. Please reload this page.
-
I installed opentelemetry collector otelcol_0.69.0_linux_amd64.rpm on centos7 .
But I am not able to start it because "Asynchronous error received, terminating process {"error": "listen tcp :8888: bind: address already in use"}
I want to change the port number. How can I do that?
I am new to this.
Anyone please provide the steps to edit the rpm package and please specify which file specifies the port 8888.
Beta Was this translation helpful? Give feedback.
All reactions