Skip to content

Instantly share code, notes, and snippets.

@jwieringa
Created September 1, 2021 19:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jwieringa/146c3721382e1f9c16680f3fa019df81 to your computer and use it in GitHub Desktop.
Save jwieringa/146c3721382e1f9c16680f3fa019df81 to your computer and use it in GitHub Desktop.
otel, prometheus blackbox exporter, honeycomb
modules:
http_2xx:
prober: http
http:
preferred_ip_protocol: "ip4"
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
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