Modify scale of Datadog metric - time

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.

Related

JFXtras Calendar Picker

I would like some samples of code to start using jfxtras calendarpicker, please.
I am writing a JavaFX app scheduler. I need to select multiple dates into an array or list, and would like to keep the calendar open while a user selects and deselects dates. Datepicker closes annoyingly after a selection, and I cannot extend the code to stop it as methods and fields are private :-(
The selections may need to be highlighted in different colors depending on type of selection. The jfxtras calendarpicker looks ideal :-)
I downloaded the jfxtras-icalendarfx-15-r2. jar from https://search.maven.org/search?q=g:org.jfxtras
I have read the javadoc, but would like some simple samples to start.
I don't think there is too much to put in examples; you just create the control add add it to a Pane. If you set
calendarPicker.setMode(CalendarPicker.Mode.MULTIPLE)
then you allow multiple calendars to be selected, which are available in the collection
calendarPicker.calendars()
And that basically is it. As the javadoc describes, you can prevent days from being selected using disabledCalenders, or highlight some using highlightedCalendars, both can be repopulated when the displayed range changes using setCalendarRangeCallback. And that is about it. It does not support different kinds of highlight, but I figure you can use CSS to do something with that. Not sure what your requirements are.
You can take a peek at the tests
https://github.com/JFXtras/jfxtras/blob/11/jfxtras-controls/src/test/java/jfxtras/scene/control/test/CalendarPickerTest.java
I would suggest looking at LocalDatePicker or LocalDateTimePicker instead of Calendar though. Same functionality but using the new DateTime API.
And alternative would be JFXtras agenda.
http://jfxtras.org/overview.html

Modifying displayed keyword on kibana dashboard

Is it there a way to change the string/keyword being displayed on a specific dashboard?
Lets say that in a certain display I have the following keyword being shown.
[Scan 1] Extended HTTP Methods found
Is it there a way so this keyword appears as
Extended HTTP Methods found
Without changing the actual document within elasticsearch with an update query?
as it stands currently, changing the X-axis and Y-axis, is not possible. However, if you can create the same visualization in Vega, it will be flexible to change the respective axis.
I used the default visualization given by Vega, and I was able to change the specific axis title as follows:
The query:
After that, I saved the visualization and added it in a dashboard.
It may be done as follows:
Create or use an existing dashboard.
If you are creating a new select the following option (Add An Existing):
Search for the object
It will be added to this dashboard as follows:
Let me know if you have any issue, I will be glad to help.

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.

Alternative function for group inorder to improve the performance in a xfrom

Can we use an alternate function other than group to perform the same action. The scenario I am trying to workout using group is - I have multiple pages in a form and a summary button on the first page which on being clicked should show the summary of all pages.
The logic we tried was using group to club each individual pages by having a form variable which turns true when the summary button is clicked and we check this variables value in all pages and so when the summary button is clicked this condition satisfies and all the pages are displayed.
The Code Snippet
<Xforms:group id="page-1"
ref=".[instance('form')/current-page = '1'
or
instance('form')/summary = 'true']">
Using group fn drastically depreciates the performance. Is there any method to perform the same scenario. Kindly advise.
At this point, hidden groups and hidden cases work differently:
The controls in hidden groups are non-relevant.
The controls in hidden cases are relevant.
As a result, using a switch/case, the server has to do more work to maintain and update the state of controls in hidden cases, but switching to a another case is very fast: it is pretty much just a matter of changing a class in the HTML, as the values of all the controls are already there. With hidden groups, when "switching to another group", the values for the controls in that group are sent by the server to the browser. Updating the values can take a little bit of time, especially if you have a lot of controls, say in a repeat.
It is hard to give a recommendation without really running your code, but if the time taken to do a switch is mostly spent on the browser, you could investigate using the full update mechanism. If the time is mostly spent on the server, then I'd look into XPath analysis. (Note that both features are PE-only.)

Resources