Context links
Context links provide quick navigation from the chart data. They appear in tooltips in the metric explorer and on dashboards if the chart point satisfies the link criteria.
Context links help you quickly navigate from a metric to a related source of information. For example, from a host metric, you can open the host’s dashboard, service management system, or incident page.
Display conditions
Display conditions determine when the link appears in the tooltip. You can set a condition based on whether labels are available or on their values in the query result.
Here are some condition examples:
host=*: Link is displayed if the query result contains thehostlabel.{service="alerting", host="*vla*"}: Link is displayed if the result contains theservicelabel set toalertingand thehostlabel containing thevlastring in its value.
Use conditions to avoid showing irrelevant links. For example, the host dashboard link should appear only for metrics with the host label, and the cluster dashboard link, only for metrics with the cluster label.
Link parameters
Context links have the following general parameters:
- Link name: Text displayed in the tooltip.
- Context link display conditions: Rule that determines when Monium shows the link for a chart point.
- Context link type: Link destination, either a dashboard or an external URL.
The link name should explain the action. For example, use Open host dashboard, not Link.
Types of context links
Dashboard link
A dashboard link opens another dashboard in the current project. Use it to navigate from the overview chart to the details page.
For example, you can add a link to a specific host’s dashboard to the CPU metric on the general dashboard. When you follow the link, Monium will provide the parameter values and open the dashboard with a relevant filter.
For a dashboard link, specify the following:
- Dashboard: Target dashboard in the current project.
- Dashboard parameters: Parameter values if used by the target dashboard.
A dashboard parameter can be either static or dynamic. Static values are set directly, e.g., production. Dynamic values are taken from labels in the query result.
To provide a label value, specify its name in double curly braces. For example, {{cluster}} is replaced with the cluster label value from the chart point.
External link
An external link opens a URL of your choice. Use it to navigate to an operations system, repository, ticket, another system's chart, or page within the service.
Specify the URL for the external link. You can use dynamic values from labels in the URL. For example, the https://example.com/hosts/{{host}} link will open the page of the host specified in the host label.
External links can use special time parameters:
|
Parameter |
Description |
Value example |
|
|
Start of time interval in ISO 8601 format |
|
|
|
End of time interval in ISO 8601 format |
|
|
|
Start of time interval in seconds from the beginning of Unix Epoch |
|
|
|
End of time interval in milliseconds from the beginning of Unix Epoch |
|
For example, the https://example.com/logs?host={{host}}&from=not_var{{__from:iso}}&to=not_var{{__to:iso}} link will open the logs of the selected host for the same time interval used in the chart.