Skip to content

Instantly share code, notes, and snippets.

@lmangani
Last active October 6, 2023 19:29
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 lmangani/7e5d14e9470acdd262073dd2d17481a6 to your computer and use it in GitHub Desktop.
Save lmangani/7e5d14e9470acdd262073dd2d17481a6 to your computer and use it in GitHub Desktop.
qryn: otel httpcheck example
version: "3.7"
services:
otel-collector:
container_name: otel-collector-httpcheck
image: otel/opentelemetry-collector-contrib
volumes:
- ./qryncloud-otel-httpcheck.yaml:/etc/otelcol-contrib/config.yaml
environment:
- ENV_QRYN_API_KEY=XXXXXXXXXXXX
- ENV_QRYN_API_SECRET=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
restart: on-failure
receivers:
httpcheck:
targets:
- endpoint: https://api.restful-api.dev/objects
method: GET
- endpoint: https://httpbin.org/delete
method: DELETE
- endpoint: https://httpbin.org/post
method: POST
headers:
test-key: 'test-123'
collection_interval: 10s
exporters:
prometheusremotewrite:
endpoint: "https://qryn.gigapipe.com/api/v1/prom/remote/write"
headers:
X-API-Key: ${ENV_QRYN_API_KEY}
X-API-Secret: ${ENV_QRYN_API_SECRET}
resource_to_telemetry_conversion:
enabled: true
processors:
batch:
service:
pipelines:
metrics:
receivers: [httpcheck]
processors: [batch]
exporters: [prometheusremotewrite]
receivers:
httpcheck:
targets:
- endpoint: https://api.restful-api.dev/objects
method: GET
- endpoint: https://httpbin.org/delete
method: DELETE
- endpoint: https://httpbin.org/post
method: POST
headers:
test-key: 'test-123'
collection_interval: 10s
exporters:
qryn:
dsn: tcp://clickhouse-server:9000/cloki?username=default&password=*************
timeout: 10s
sending_queue:
queue_size: 100
retry_on_failure:
enabled: true
initial_interval: 5s
max_interval: 30s
max_elapsed_time: 300s
logs:
format: raw
processors:
batch:
service:
pipelines:
metrics:
receivers: [httpcheck]
processors: [batch]
exporters: [qryn]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment