diff --git a/metricbeat/module/golang/_meta/Dockerfile b/metricbeat/module/golang/_meta/Dockerfile index 19b41e4fbd8c..5c20fa2fd0a2 100644 --- a/metricbeat/module/golang/_meta/Dockerfile +++ b/metricbeat/module/golang/_meta/Dockerfile @@ -3,4 +3,4 @@ FROM docker.elastic.co/beats/metricbeat:6.5.4 HEALTHCHECK --interval=1s --retries=90 CMD curl -f http://localhost:6060/debug/vars EXPOSE 6060 -CMD ["--httpprof", ":6060", "-e"] +CMD ["-httpprof", ":6060", "-e"] diff --git a/metricbeat/module/golang/test_golang.py b/metricbeat/module/golang/test_golang.py index 6ce44cfdc233..585dd13656bf 100644 --- a/metricbeat/module/golang/test_golang.py +++ b/metricbeat/module/golang/test_golang.py @@ -23,7 +23,7 @@ def test_stats(self): "period": "1s" }]) proc = self.start_beat( - extra_args=["--httpprof", "localhost:6060"]) + extra_args=["-httpprof", "localhost:6060"]) self.wait_until(lambda: self.output_lines() > 0) proc.check_kill_and_wait()