nr1-slo-r icon indicating copy to clipboard operation
nr1-slo-r copied to clipboard

Defining SLO with Latency (Calculated) indicator through Entity Explorer brings up interface for alert-based Latency SLOs

Open ghost opened this issue 4 years ago • 4 comments

Description

In SLO/R, one can define a SLO using the 'Latency (Calculated)' indicator, which uses transaction data, or with the 'Latency' indicator, which uses alerts. When selecting 'Latency (Calculated)' in the SLO/R Nerdpack, the system behaves as expected, bringing up a transaction picker. When selecting the same in entity explorer, the system brings up an alert picker instead of the transaction picker.

Steps to Reproduce

  1. Define SLO in Entity Explorer view
  2. Select indicator 'Latency (Calculated)'
  3. Input fields for 'Latency' appear.

Expected Behaviour

Selecting 'Latency (Calculated)' in Entity Explorer should bring up the Duration Limit and Transactions fields, not Alerts.

Relevant Logs / Console output

Your Environment

  • NR1 CLI version used: n/a
  • Browser name and version: Chrome 86.0.4240.111 (Official Build) (x86_64)
  • Operating System and version: macOS Catalina 10.15.7 (19H2)

Additional context

ghost avatar Oct 29 '20 14:10 ghost

This is probably a miss from my previous PR adding the 'Latency (Calculated)' indicator, I will take ownership of investigating and fixing this.

ghost avatar Oct 29 '20 14:10 ghost

The changes to slo-r-main to add Calculated Latency were not made in slo-r-entity.

@ricegi @kpeet It looks like both main and entity components are providing similar functionality with only minor differences in implementation. Is there a compelling reason to maintain them separately, or should we consider merging them into one shared component?

ghost avatar Oct 29 '20 16:10 ghost

@andrewseling - I fixed this in my latest fork - It does make sense to make the form a shared component - but I will leave that to @ricegi 's discretion since there are some differences in the forms (i.e - SLO Groups)

khpeet avatar Oct 30 '20 14:10 khpeet

this is fixed with https://github.com/newrelic/nr1-slo-r/pull/133 - should be good to close.

khpeet avatar Nov 20 '20 15:11 khpeet