-
Notifications
You must be signed in to change notification settings - Fork 158
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Re-enable OOTB discovery for Apache Web Server (#5353)
* Consolidate docker test image * Re-enable Apache webserver discovery * Update CHANGELOG.md * Use commas on template as pattern in other templates * Add notice about discovering containers from process on host OS
- Loading branch information
Showing
19 changed files
with
97 additions
and
571 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
cmd/otelcol/config/collector/config.d.linux/receivers/apache.discovery.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
##################################################################################### | ||
# This file is generated by the Splunk Distribution of the OpenTelemetry Collector. # | ||
# # | ||
# It reflects the default configuration bundled in the Collector executable for use # | ||
# in discovery mode (--discovery) and is provided for reference or customization. # | ||
# Please note that any changes made to this file will need to be reconciled during # | ||
# upgrades of the Collector. # | ||
##################################################################################### | ||
# apache: | ||
# enabled: true | ||
# rule: | ||
# docker_observer: type == "container" and any([name, image, command], {# matches "(?i)httpd.*"}) and not (command matches "splunk.discovery") | ||
# host_observer: type == "hostport" and command matches "(?i)httpd.*" and not (command matches "splunk.discovery") | ||
# k8s_observer: type == "port" and pod.name matches "(?i)httpd.*" | ||
# config: | ||
# default: | ||
# endpoint: "http://`endpoint`/server-status?auto" | ||
# status: | ||
# metrics: | ||
# - status: successful | ||
# strict: apache.uptime | ||
# message: apachereceiver receiver is working! | ||
# statements: | ||
# - status: failed | ||
# regexp: 'connect: network is unreachable' | ||
# message: The container cannot be reached by the Collector. Make sure they're in the same network. | ||
# - status: failed | ||
# regexp: 'connect: connection refused' | ||
# message: The container is refusing apache webserver connections. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
ExtendedStatus on | ||
<Location /mod_status> | ||
<Location /server-status> | ||
SetHandler server-status | ||
</Location> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.