opensearch-project / dashboards-observability

Visualize and explore your logs, traces and metrics data in OpenSearch Dashboards
https://opensearch.org/docs/latest/observability-plugin/index/
Apache License 2.0
14 stars 52 forks source link

[BUG][Metrics] OuiFacetButton does not render properly #700

Open pjfitzgibbons opened 1 year ago

pjfitzgibbons commented 1 year ago

What is the bug? Attempting to use OuiFacetButton to display metric name in sidepanel. Have removed all imports of css from ts/react parent component chain :

image

Should look something like this image

Using

<OuiFacetButton
      icon={<OuiAvatar type="space" size="s" name="Prometheus" />}
    >
      22 [Prometheus Metric] aws_prometheus2.prometheus_tsdb_compactions_total
    </OuiFacetButton>
    <br />
    <OuiFacetButton ...

How can one reproduce the bug? Steps to reproduce the behavior:

  1. Go to metrics_accordion.tsx:34
  2. replace line with : <OuiFacetButton icon={<OuiAvatar type="space" size="s" name="Prometheus" />} >{metric.name}</OuiFacetButton>
  3. Add to imports from @elastic/eui - OuiFacetButton, OuiToken
  4. See error

What is the expected behavior? Oui render as demonstrated in oui.opensearch.org demo pages

What is your host/environment?

Do you have any screenshots? If applicable, add screenshots to help explain your problem.

Do you have any additional context? Add any other context about the problem.

anirudha commented 1 year ago

is this a OUI bug or observability bug?