How to display the value of Last Analysis date on Sonar Dashboard? - sonarqube

I would like to display somehow on a Sonar dashboard the Last Analysis date.
We use SonarQube Version 5.6.3.
EDIT
Can I display the Last Analysis date somehow on the Quality Gate widget?

Was also looking for this question but found the workaround to
use: Advanced Timeline Chart instead of Quality Gate widget. I adapted the height but anyway a lot of white space.

The Last Analysis date is displayed on the top right of any project page you would browse in SonarQube ( see example ).

Related

How should I build a report so that the dashboard acts like a filter?

I want to create a drill-through function from a Cognos Analytics 11 Dashboard to a report. Although I have some experience with the dashboard-module, I'm pretty unfamiliar with reports.
How should I build the report, so that the dashboard acts like a filter? Can this be achieved just by creating a report with a List, containing the same variables as those included in the dashboard?
Can someone guide me through the process?
Thanks in advance!
Can this be achieved just by creating a report with a List, containing
the same variables as those included in the dashboard?
Yes, here is an IBM link that may also help
https://www.ibm.com/support/knowledgecenter/en/SSEP7J_11.0.0/com.ibm.swg.ba.cognos.ug_ca_dshb.doc/ca_drill_through_concept.html
Quick Summary/example
1) Create a report (a simple list to start) with filters
[Year] = ?Year?
[Month] = ?Month?
etc.
2) Create a dashboard with the elements year, month, etc
From the dashboard
Add new drill-through (the icon looks like an arrow over a bullseye target, near the trash can. It will appear on the swing out menu when you click on the overall visualization in an area of whitespace)
Navigate to the report
The filters from the report will appear, match them to the dashboard columns
To test, run the dashboard. Right click on the part of the visualization that represents a metric. A swing out menu with an icon for drill through should be available. Select that icon and it should go to the report

Grafana Table Panel 'clickable' and use it to drill down to a more detailed view

Is it possible to have a Table Panel in Grafana, and when you click on a row, it shows a graph from another set of time series?
I see there is a feature request for it, but I'm not sure it's available yet
https://github.com/grafana/grafana/issues/5481
Looking for any suggestions on making the rows in a Table Panel
'clickable' and use it to drill down to a more detailed view (another
dashboard using Template variables). Currently displaying a summary of
several servers as rows in a Table Panel and we want to select an
individual row (i.e a server) to drill down to a more detailed
Dashboard.
Any ways to do this?
Thanks
You can achieve this also in 4.x by defining a link for a table column (in the Column Styles section under Visualization). The link can refer to another dashboard and embed current cell's value (or other cell in the same row) as a parameter.
For example the link Url can be:
/d/c9xaXx5Zz/tree-node?var-datasource=$datasource&var-interval_id=${__cell_1}&from=$__from&to=$__to&var-path=root
In Grafana 6 or above you can preserve the time range filter using the $__from and $__to built-in vars.
The available built-in variables to access cell contents are not well documented, but they can be found by hovering over the (i) icon of the Url in the table panel.
More info on built-in vars: https://grafana.com/docs/reference/templating/#global-built-in-variables
The feature request you linked to is a duplicate of this one which links to this Pull Request. The PR was recently merged so it is available now as a nightly build and will be included in the upcoming 5.0.0 release in September/October.
Drill Down Option can be used from General option from Grafana Dashboard.
Copy the link in the Url of the table which you want to show. Change the items in the variable part which is changing according to the need.It will be of format var-name=value
The link URL works well if you are linking to another dashboard, but it does not work well if you are changing a variable on the same dashboard as it does not auto-refresh.
You can add JavaScript into the URL instead of a link.
javascript:$('a.variable-value-link').trigger('click'); $('span:contains(${__cell:raw})').closest('a').trigger('click');
The JavaScript only works for a single dropdown, it would have to be updated if there were multiple dropdowns. I worked on this quickly, so I am sure there is a better way to use JavaScript to change the variable. It basically opens the dropdown, finds the value from the current row and selects it.

What to show on the SonarQube Default dashboard?

I would like to show something across all projects in the Default dashboard, so everybody can see something make sense. Can someone give me some good examples?
Looking at https://sonarqube.com/, the top 3 widgets show a View, but below that, is a Measure Filter widget which shows the results of an instance-wide search. There are a number of Measure Filter visualizations available.
The docs describe how to create and save the filter, then display it in a widget.

Modify scale of Datadog metric

I have a time series presenting time values like this one:
I want to change the y-axis to represent hours instead of milliseconds, i.e. divide by 3600. Any idea how to do it?
This can be achieved in two ways.
If you only want this logic to applied on this one graph, you can divide metric either using the UI editor and clicking advanced or using the JSON editor:
UI Editor: http://cl.ly/1c0K2O3P1E2K
Or JSON editor: https://help.datadoghq.com/hc/en-us/articles/203764925-How-do-I-use-arithmetic-for-my-time-series-data-
Alternatively, you can use the Metric Summary page to edit this metric's metadata and alter this metric's unit throughout the application as seen here: http://cl.ly/2x0Z290w2I3V
https://app.datadoghq.com/metric/summary
Hope this helps. Also, you can reach out to support#datadoghq.com if you run into any other issues in the future.
You can update metric unit to correct type on Metric details sidepanel of Metrics Summary page: https://docs.datadoghq.com/metrics/summary/#metric-unit.
You can get to Metrics Summary page by opening edit tab of your dashboard, clicking on your metric, and clicking on Edit in Metrics Summary link.

SAP Crystal Report in Visual Studio 2010 add summary total to report footer to a desktop application

In an existing Visual Studio 2010 desktop application that uses existing Crystal reports, there is a summary amount that appears in the report footer section of the current crystal report. The current calculation is usually close but it changes every time the crystal report is executed. Note I am new to working with Crystal reports and no one else at my company knows how to work with crystal reports. Since I have not been to figure how I can modify the calculation so that the amount is correct, I would like to create a new calculation for this field.
I have tried the following:
Running totals placed into the report footer but I get the result of #####.
I have tried formula fields placed into the report footer but I get the result of #######.
I have tried to use insert summary of the purchase amount in the report footer and I get the ##### message.
I have followed the directions in the following link and it did not work:
http://arstechnica.com/civis/viewtopic.php?t=111265
Thus can you tell me how to summarize the purchase amount from every detail that is placed into the report so the total appears in the report footer? Also I may need to also reset the value to zero everytime the report is executed. **I am not certain if I need this option.
Look the approach you are following is completely fine and correct. You can use either way to get the summary. The best will be put the Summary field in the Report Footer.
Whenever you place any numerical summary field in any section, or any numeric value fields in crystal, make sure you allot proper width to the text object or the formula field placed in report.
In case, the value is in millions, and width is less and only proper to show thousands, you will get "####" rather than the value. This indicates you have increase the width of the field.
Let me know if this helps, and in case you face any other issue?

Resources