-
Notifications
You must be signed in to change notification settings - Fork 158
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Re-enable OOTB discovery for Apache Web Server #5353
Changes from all commits
8158f8c
645441f
e785160
9c709b6
0046cf2
3e7037e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
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. |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
ExtendedStatus on | ||
<Location /mod_status> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. not sure what There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. That is the path that one would use on the endpoint for the Apache receiver. The OTel receiver and most of the samples defaults to |
||
<Location /server-status> | ||
SetHandler server-status | ||
</Location> |
This file was deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These are already know facts here. I meant to say it holds for all discovery apps/services/dbs. May be we can skip linke16
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good point, unfortunately,
use_host_bindings
is not explicitly listed there. To be fair I didn't read that doc carefully, but, I will add a task to review and update the doc, I think that there are a few things that we should be more explicit about.