+ {description}
+ {formula && (
+
+
+
+
+
+
+ {formula}
+
+
+ )}
+
+ );
+});
diff --git a/x-pack/plugins/observability_solution/apm/public/components/shared/charts/helper/get_metrics_formulas.tsx b/x-pack/plugins/observability_solution/apm/public/components/shared/charts/helper/get_metrics_formulas.tsx
new file mode 100644
index 0000000000000..5e969d250e1dd
--- /dev/null
+++ b/x-pack/plugins/observability_solution/apm/public/components/shared/charts/helper/get_metrics_formulas.tsx
@@ -0,0 +1,20 @@
+/*
+ * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
+ * or more contributor license agreements. Licensed under the Elastic License
+ * 2.0; you may not use this file except in compliance with the Elastic License
+ * 2.0.
+ */
+
+export enum ChartMetricType {
+ LOG_ERROR_RATE,
+ LOG_RATE,
+}
+
+const metricsFormulasMap: Record