Created
September 1, 2021 19:12
-
-
Save jwieringa/146c3721382e1f9c16680f3fa019df81 to your computer and use it in GitHub Desktop.
otel, prometheus blackbox exporter, honeycomb
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
modules: | |
http_2xx: | |
prober: http | |
http: | |
preferred_ip_protocol: "ip4" |
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
version: '3.8' | |
networks: | |
otel: | |
services: | |
otel: | |
image: otel/opentelemetry-collector:0.33.0 | |
volumes: | |
- './otel-config.yml:/etc/otel/config.yaml' | |
ports: | |
- "55680-55681:55680-55681" | |
- "14268:14268" | |
networks: | |
- otel | |
blackbox-exporter: | |
image: prom/blackbox-exporter:v0.19.0 | |
volumes: | |
- './blackbox-config.yml:/config/blackbox.yml' | |
command: | |
- '--config.file=/config/blackbox.yml' | |
ports: | |
- 9115:9115 | |
networks: | |
- otel |
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
receivers: | |
prometheus: | |
config: | |
scrape_configs: | |
- job_name: "blackbox" | |
metrics_path: "/probe" | |
params: | |
module: [http_2xx] | |
scrape_interval: 10s | |
static_configs: | |
- targets: | |
- "https://google.com" | |
relabel_configs: | |
- source_labels: [__address__] | |
target_label: __param_target | |
- source_labels: [__param_target] | |
target_label: instance | |
- target_label: __address__ | |
replacement: host.docker.internal:9115 | |
exporters: | |
otlp/metrics: | |
endpoint: "api.honeycomb.io:443" | |
headers: | |
"x-honeycomb-team": "secret" | |
"x-honeycomb-dataset": "otel-experiment" | |
service: | |
pipelines: | |
metrics: | |
receivers: [prometheus] | |
processors: [] | |
exporters: [otlp/metrics] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment