feat(elasticsearch): adds support for inline script and missing options to all elasticsearch metrics, closes #3500