there was an apply error: could not add package policy "test-multiple-jobs-prometheus_input_otel_raw-91860" to agent policy "test-multiple-jobs-91860": could not create package policy (req {"name":"test-multiple-jobs-prometheus_input_otel_raw-91860","description":"","namespace":"ep","policy_id":"52244d90-7b11-4013-a8a2-230e9b8a5351","package":{"name":"prometheus_input_otel_raw","version":"0.1.0"},"inputs":{"prometheusreceiver-otelcol":{"enabled":true,"streams":{"prometheus_input_otel_raw.prometheusreceiver":{"enabled":true,"vars":{"data_stream.dataset":"prometheusreceiver","scrape_configs":"- job_name: prometheus_server\n scrape_interval: 15s\n static_configs:\n - targets:\n - localhost:9090\n- job_name: node_exporter\n scrape_interval: 30s\n static_configs:\n - targets:\n - localhost:9100\n"}}}}},"force":false}); API status code = 400; response body = {"statusCode":400,"error":"Bad Request","message":"Index template \"metrics-prometheusreceiver\" already exist
Error:
First build failed: https://buildkite.com/elastic/integrations-serverless/builds/1828