- 
                Notifications
    
You must be signed in to change notification settings  - Fork 9
 
Metrics with Prometheus #249
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
base: main
Are you sure you want to change the base?
Conversation
92e4094    to
    2965278      
    Compare
  
    c0da60a    to
    4a2b772      
    Compare
  
    b0a8d71    to
    1d8b660      
    Compare
  
    cad437c    to
    e28651a      
    Compare
  
    c6080e5    to
    9fcaa61      
    Compare
  
    9fcaa61    to
    48a6703      
    Compare
  
    There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a review only on the packages config, config/generate and node/config.
Lets separate this PR in two steps: the first one prepares just the config aspects (what is reviewed here), and a second PR on top of that with all the metrics stuff.
        
          
                config/config.go
              
                Outdated
          
        
      | Consenter: consenterFromMyParty, | ||
| UseTLS: config.LocalConfig.TLSConfig.Enabled, | ||
| ClientAuthRequired: config.LocalConfig.TLSConfig.ClientAuthRequired, | ||
| MonitoringListenAddress: config.LocalConfig.NodeLocalConfig.GeneralConfig.ListenAddress + ":" + strconv.Itoa(int(config.LocalConfig.NodeLocalConfig.GeneralConfig.MonitoringListenPort)), | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
a separate listen address
      
        
              This comment was marked as resolved.
        
          
      
    
    This comment was marked as resolved.
Sorry, something went wrong.
da9f901    to
    00c09db      
    Compare
  
            
          
                config/config.go
              
                Outdated
          
        
      | Consenter: consenterFromMyParty, | ||
| UseTLS: config.LocalConfig.TLSConfig.Enabled, | ||
| ClientAuthRequired: config.LocalConfig.TLSConfig.ClientAuthRequired, | ||
| MonitoringListenAddress: config.LocalConfig.NodeLocalConfig.GeneralConfig.ListenAddress + ":" + strconv.Itoa(int(config.LocalConfig.NodeLocalConfig.GeneralConfig.MonitoringListenPort)), | 
      
        
              This comment was marked as resolved.
        
          
      
    
    This comment was marked as resolved.
Sorry, something went wrong.
Signed-off-by: Genady Gurevich <[email protected]>
00c09db    to
    0b24646      
    Compare
  
    | } | ||
| 
               | 
          ||
| type ServerConfig struct { | ||
| Endpoint *Endpoint | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why is this public and the rest are private?
| } | ||
| ) | ||
| 
               | 
          ||
| type RouterMetrics struct { | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IncomingTXs should be updated directly from the processing threads
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(and all the rest as well)
| rejectedTxsWithCode500 atomic.Uint64 | ||
| incoming atomic.Uint64 | ||
| logger arma_types.Logger | ||
| interval time.Duration | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we unify these counters?
issue #185