-
-
Save lmangani/7e5d14e9470acdd262073dd2d17481a6 to your computer and use it in GitHub Desktop.
qryn: otel httpcheck example
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.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 |
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: | |
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] |
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: | |
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