In the prior version of dashboard parameters, users had to list out each individual value that they would like to see in the drop-down for each parameter defined. Here is an example of dashboard parameters configured for my "RDS-MySQL" dashboard.
parameters: [
{ name: "database", values: ["*", "'scalyr-mysql'", "'mysql2'"] },
],
Serverhost was the only parameter where a user has the values dynamically defined by using __serverHostsQ
in the configuration file due to the limitations in our legacy system.
The DataSet team has worked on a new storage engine that enables dynamically defining any parameter based on any facet. For example, the following dashboard configuration snippet will populate all possible values for the monitor
facet.
parameters : [
{
name: "monitor", // the parameter #my_parameter_name#
facet: "monitor", // enables dynamic facets and specifies what fields
defaultValue: "*" // the default value
}
],
Here is the screenshot of the dashboard that uses the dynamic facet.
Comments
0 comments
Please sign in to leave a comment.