- 
                Notifications
    You must be signed in to change notification settings 
- Fork 2
Chore/prometheus #25
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
          
     Merged
      
      
    
  
     Merged
                    Chore/prometheus #25
Changes from all commits
      Commits
    
    
            Show all changes
          
          
            5 commits
          
        
        Select commit
          Hold shift + click to select a range
      
      90ef0fd
              
                Adding prometheus compose to track system resources during netowrk test
              
              
                wileyj f604aac
              
                Merge commit '90ef0fda09876db473bcd33cad5a422976227efe' into chore/pr…
              
              
                wileyj 471dd36
              
                Update Makefile and Readme for the (up/down)-prom targets
              
              
                wileyj c3dfef5
              
                Merge branch 'master' into chore/prometheus
              
              
                wileyj b397988
              
                Linting
              
              
                wileyj File filter
Filter by extension
Conversations
          Failed to load comments.   
        
        
          
      Loading
        
  Jump to
        
          Jump to file
        
      
      
          Failed to load files.   
        
        
          
      Loading
        
  Diff view
Diff view
There are no files selected for viewing
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              | Original file line number | Diff line number | Diff line change | 
|---|---|---|
| @@ -0,0 +1,74 @@ | ||
| x-common-vars: | ||
| - &DOCKER_NETWORK ${DOCKER_NETWORK:-stacks} | ||
| - &DOCKER_NETWORK_CIDR 10.0.0.0/24 | ||
| - &DOCKER_NETWORK_GATEWAY 10.0.0.1 | ||
| - &PROMETHEUS_IP 10.0.0.252 | ||
| - &CADVISOR_IP 10.0.0.253 | ||
|  | ||
| name: monitoring | ||
| services: | ||
| prometheus: | ||
| image: prom/prometheus:latest | ||
| container_name: prometheus | ||
| depends_on: | ||
| - cadvisor | ||
| configs: | ||
| - source: prometheus.yml | ||
| target: /etc/prometheus/prometheus.yml | ||
| ports: | ||
| - "0.0.0.0:9090:9090" | ||
| networks: | ||
| default: | ||
| ipv4_address: *PROMETHEUS_IP | ||
| command: | ||
| - --config.file=/etc/prometheus/prometheus.yml | ||
| cadvisor: | ||
| image: gcr.io/cadvisor/cadvisor:latest | ||
| container_name: cadvisor | ||
| volumes: | ||
| - /:/rootfs:ro | ||
| - /var/run:/var/run:rw | ||
| - /sys:/sys:ro | ||
| - /var/lib/docker/:/var/lib/docker:ro | ||
| ports: | ||
| - "0.0.0.0:8080:8080" | ||
| networks: | ||
| default: | ||
| ipv4_address: *CADVISOR_IP | ||
| command: "--enable_metrics=cpu,cpuLoad,disk,diskIO,memory" | ||
|  | ||
| networks: | ||
| default: | ||
| name: *DOCKER_NETWORK | ||
| ipam: | ||
| driver: default | ||
| config: | ||
| - subnet: *DOCKER_NETWORK_CIDR | ||
| gateway: *DOCKER_NETWORK_GATEWAY | ||
|  | ||
| configs: | ||
| # prometheus scraping config | ||
| prometheus.yml: | ||
| content: | | ||
| # Global config | ||
| global: | ||
| external_labels: | ||
| monitor: "hacknet" | ||
| # A scrape configuration containing Prometheus and Docker | ||
| scrape_configs: | ||
| - job_name: cadvisor | ||
| scrape_interval: 5s | ||
| static_configs: | ||
| - targets: | ||
| - cadvisor:8080 | ||
| metric_relabel_configs: | ||
| - source_labels: [ __name__ ] | ||
| regex: '^(go_|cadvisor_version_info).+' | ||
| action: drop | ||
| - job_name: stacks | ||
| scrape_interval: 5s | ||
| static_configs: | ||
| - targets: | ||
| - stacks-miner-1:9153 | ||
| - stacks-miner-2:9153 | ||
| - stacks-miner-3:9153 | 
  Add this suggestion to a batch that can be applied as a single commit.
  This suggestion is invalid because no changes were made to the code.
  Suggestions cannot be applied while the pull request is closed.
  Suggestions cannot be applied while viewing a subset of changes.
  Only one suggestion per line can be applied in a batch.
  Add this suggestion to a batch that can be applied as a single commit.
  Applying suggestions on deleted lines is not supported.
  You must change the existing code in this line in order to create a valid suggestion.
  Outdated suggestions cannot be applied.
  This suggestion has been applied or marked resolved.
  Suggestions cannot be applied from pending reviews.
  Suggestions cannot be applied on multi-line comments.
  Suggestions cannot be applied while the pull request is queued to merge.
  Suggestion cannot be applied right now. Please check back later.
  
    
  
    
Uh oh!
There was an error while loading. Please reload this page.