Skip to content

Commit

Permalink
Remove trailing slash from apache/nginx configs
Browse files Browse the repository at this point in the history
The issue with the trailing slash is that the code considers that
a "path", so the real path is ignored when configured.

Fixes elastic#1779.
  • Loading branch information
Tudor Golubenco committed Jun 6, 2016
1 parent d1364aa commit 59d0036
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion metricbeat/docs/modules/apache.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ metricbeat.modules:
period: 10s
# Apache hosts
hosts: ["http://127.0.0.1/"]
hosts: ["http://127.0.0.1"]
----

[float]
Expand Down
2 changes: 1 addition & 1 deletion metricbeat/docs/modules/nginx.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ metricbeat.modules:
period: 10s
# Nginx hosts
hosts: ["http://127.0.0.1/"]
hosts: ["http://127.0.0.1"]
----

[float]
Expand Down
4 changes: 2 additions & 2 deletions metricbeat/etc/beat.full.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ metricbeat.modules:
#period: 10s

# Apache hosts
#hosts: ["http://127.0.0.1/"]
#hosts: ["http://127.0.0.1"]

# Path to server status. Default server-status
#server_status_path: "server-status"
Expand Down Expand Up @@ -84,7 +84,7 @@ metricbeat.modules:
#period: 10s

# Nginx hosts
#hosts: ["http://127.0.0.1/"]
#hosts: ["http://127.0.0.1"]

# Path to server status. Default server-status
#server_status_path: "server-status"
Expand Down
4 changes: 2 additions & 2 deletions metricbeat/metricbeat.full.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ metricbeat.modules:
#period: 10s

# Apache hosts
#hosts: ["http://127.0.0.1/"]
#hosts: ["http://127.0.0.1"]

# Path to server status. Default server-status
#server_status_path: "server-status"
Expand Down Expand Up @@ -84,7 +84,7 @@ metricbeat.modules:
#period: 10s

# Nginx hosts
#hosts: ["http://127.0.0.1/"]
#hosts: ["http://127.0.0.1"]

# Path to server status. Default server-status
#server_status_path: "server-status"
Expand Down
2 changes: 1 addition & 1 deletion metricbeat/module/apache/_beat/config.full.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#period: 10s

# Apache hosts
#hosts: ["http://127.0.0.1/"]
#hosts: ["http://127.0.0.1"]

# Path to server status. Default server-status
#server_status_path: "server-status"
Expand Down
2 changes: 1 addition & 1 deletion metricbeat/module/apache/_beat/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
period: 10s

# Apache hosts
hosts: ["http://127.0.0.1/"]
hosts: ["http://127.0.0.1"]
2 changes: 1 addition & 1 deletion metricbeat/module/nginx/_beat/config.full.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#period: 10s

# Nginx hosts
#hosts: ["http://127.0.0.1/"]
#hosts: ["http://127.0.0.1"]

# Path to server status. Default server-status
#server_status_path: "server-status"
2 changes: 1 addition & 1 deletion metricbeat/module/nginx/_beat/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
period: 10s

# Nginx hosts
hosts: ["http://127.0.0.1/"]
hosts: ["http://127.0.0.1"]

0 comments on commit 59d0036

Please sign in to comment.