- 
                Notifications
    
You must be signed in to change notification settings  - Fork 8
 
Adjust dashboarding to support OSP13 and 16 #217
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
                    Changes from all commits
      Commits
    
    
            Show all changes
          
          
            9 commits
          
        
        Select commit
          Hold shift + click to select a range
      
      4bb8b3f
              
                Adjust dashboarding to support OSP13 and 16
              
              
                leifmadsen ba2201b
              
                Update doc-Service-Telemetry-Framework/modules/proc_retrieving-and-se…
              
              
                leifmadsen cb8cbdc
              
                Asciidoc syntax fix
              
              
                leifmadsen 9469814
              
                Update doc-Service-Telemetry-Framework/modules/proc_importing-dashboa…
              
              
                JoanneOFlynn2018 6fa7369
              
                Update doc-Service-Telemetry-Framework/modules/proc_importing-dashboa…
              
              
                JoanneOFlynn2018 48a77f3
              
                Update doc-Service-Telemetry-Framework/modules/proc_retrieving-and-se…
              
              
                JoanneOFlynn2018 9076fb5
              
                Update doc-Service-Telemetry-Framework/modules/con_dashboards.adoc
              
              
                JoanneOFlynn2018 d3d5089
              
                Update doc-Service-Telemetry-Framework/modules/con_dashboards.adoc
              
              
                JoanneOFlynn2018 e772afc
              
                Update doc-Service-Telemetry-Framework/modules/proc_importing-dashboa…
              
              
                JoanneOFlynn2018 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
    
  
  
    
              
        
          
          
            82 changes: 82 additions & 0 deletions
          
          82 
        
  doc-Service-Telemetry-Framework/modules/proc_importing-dashboards.adoc
  
  
      
      
   
        
      
      
    
  
    
      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,82 @@ | ||
| // Module included in the following assemblies: | ||
| // | ||
| // <List assemblies here, each on a new line> | ||
| 
     | 
||
| // This module can be included from assemblies using the following include statement: | ||
| // include::<path>/proc_importing-dashboards.adoc[leveloffset=+2] | ||
| 
     | 
||
| // The file name and the ID are based on the module title. For example: | ||
| // * file name: proc_doing-procedure-a.adoc | ||
| // * ID: [id='proc_doing-procedure-a_{context}'] | ||
| // * Title: = Doing procedure A | ||
| // | ||
| // The ID is used as an anchor for linking to the module. Avoid changing | ||
| // it after the module has been published to ensure existing links are not | ||
| // broken. | ||
| // | ||
| // The `context` attribute enables module reuse. Every module's ID includes | ||
| // {context}, which ensures that the module has a unique ID even if it is | ||
| // reused multiple times in a guide. | ||
| // | ||
| // Start the title with a verb, such as Creating or Create. See also | ||
| // _Wording of headings_ in _The IBM Style Guide_. | ||
| 
     | 
||
| [id="importing-dashboards_{context}"] | ||
| = Importing dashboards | ||
| 
     | 
||
| [role="_abstract"] | ||
| The Grafana Operator can import and manage dashboards by creating `GrafanaDashboard` objects. You can view example dashboards at https://github.com/infrawatch/dashboards. | ||
| 
     | 
||
| .Procedure | ||
| 
     | 
||
| . Import the infrastructure dashboard: | ||
| + | ||
| [source,bash,options="nowrap"] | ||
| ---- | ||
| $ oc apply -f https://raw.githubusercontent.com/infrawatch/dashboards/master/deploy/rhos-dashboard.yaml | ||
| 
     | 
||
| grafanadashboard.integreatly.org/rhos-dashboard created | ||
| ---- | ||
| . Import the cloud dashboard: | ||
| + | ||
| [source,bash,options="nowrap"] | ||
| ---- | ||
| $ oc apply -f https://raw.githubusercontent.com/infrawatch/dashboards/master/deploy/rhos-cloud-dashboard.yaml | ||
| 
     | 
||
| grafanadashboard.integreatly.org/rhos-cloud-dashboard created | ||
| ---- | ||
| + | ||
| [WARNING] | ||
| ==== | ||
| Some panels in the cloud dashboard require that you set the collectd `virt` plugin parameter `hostname_format` to `name uuid hostname` in the stf-connectors.yaml file. If you do not configure this parameter, affected dashboards remain empty. | ||
| [source,yaml] | ||
| ---- | ||
| parameter_defaults: | ||
| ExtraConfig: | ||
| collectd::plugin::virt::hostname_format: name uuid hostname | ||
| ---- | ||
| ==== | ||
| 
     | 
||
| . Verify that the dashboards are available: | ||
| + | ||
| [source,bash] | ||
| ---- | ||
| $ oc get grafanadashboards | ||
| 
     | 
||
| NAME AGE | ||
| rhos-dashboard 7d21h | ||
| rhos-cloud-dashboard 7d21h | ||
| ---- | ||
| 
     | 
||
| . Retrieve the Grafana route address: | ||
| + | ||
| [source,bash,options="nowrap"] | ||
| ---- | ||
| $ oc get route grafana-route -ojsonpath='{.spec.host}' | ||
| 
     | 
||
| grafana-route-service-telemetry.apps.infra.watch | ||
| ---- | ||
| 
     | 
||
| . Navigate to https://_<grafana_route_address>_ in a web browser. Replace _<grafana_route_address>_ with the value that you retrieved in the previous step. | ||
| 
     | 
||
| . To view the dashboard, click *Dashboards* and *Manage*. | ||
        
          
          
            46 changes: 46 additions & 0 deletions
          
          46 
        
  ...ry-Framework/modules/proc_retrieving-and-setting-grafana-login-credentials.adoc
  
  
      
      
   
        
      
      
    
  
    
      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,46 @@ | ||
| // Module included in the following assemblies: | ||
| // | ||
| // <List assemblies here, each on a new line> | ||
| 
     | 
||
| // This module can be included from assemblies using the following include statement: | ||
| // include::<path>/proc_retrieving-and-setting-grafana-login-credentials.adoc[leveloffset=+2] | ||
| 
     | 
||
| // The file name and the ID are based on the module title. For example: | ||
| // * file name: proc_doing-procedure-a.adoc | ||
| // * ID: [id='proc_doing-procedure-a_{context}'] | ||
| // * Title: = Doing procedure A | ||
| // | ||
| // The ID is used as an anchor for linking to the module. Avoid changing | ||
| // it after the module has been published to ensure existing links are not | ||
| // broken. | ||
| // | ||
| // The `context` attribute enables module reuse. Every module's ID includes | ||
| // {context}, which ensures that the module has a unique ID even if it is | ||
| // reused multiple times in a guide. | ||
| // | ||
| // Start the title with a verb, such as Creating or Create. See also | ||
| // _Wording of headings_ in _The IBM Style Guide_. | ||
| 
     | 
||
| [id="proc-retrieving-and-setting-grafana-credentials_{context}"] | ||
| = Retrieving and setting Grafana login credentials | ||
| 
     | 
||
| [role="_abstract"] | ||
| {ProjectShort} sets default login credentials when Grafana is enabled. The credentials can be overridden in the `ServiceTelemetry` object. | ||
| 
     | 
||
| .Procedure | ||
| 
     | 
||
| . Log in to {OpenShift}. | ||
| . Change to the `service-telemetry` namespace: | ||
| + | ||
| [source,bash] | ||
| ---- | ||
| $ oc project service-telemetry | ||
| ---- | ||
| . To retrieve the default username and password, describe the Grafana object: | ||
| + | ||
| [source,bash] | ||
| ---- | ||
| $ oc describe grafana default | ||
| ---- | ||
| 
     | 
||
| . To modify the default values of the Grafana administrator username and password through the ServiceTelemetry object, use the `graphing.grafana.adminUser` and `graphing.grafana.adminPassword` parameters. | 
  
    
      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
    
  
  
    
              
  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.