From 27c627f735a2d706800a60f39674cd4637c20ad7 Mon Sep 17 00:00:00 2001 From: Maksym Makuch Date: Fri, 24 May 2024 11:51:13 +0100 Subject: [PATCH 1/3] Adds OTEL HTTP endpoints for different data types --- sending-data/platforms/opentelemetry/opentelemetry.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sending-data/platforms/opentelemetry/opentelemetry.md b/sending-data/platforms/opentelemetry/opentelemetry.md index 5fe32a7c..55ced15b 100644 --- a/sending-data/platforms/opentelemetry/opentelemetry.md +++ b/sending-data/platforms/opentelemetry/opentelemetry.md @@ -9,7 +9,10 @@ If your codebase is already instrumented with [OpenTelemetry](https://openteleme ## Configuration ### Endpoint -* HTTP: `otel.baselime.io/v1/` +* HTTP: + * `otel.baselime.io/v1/traces` - traces + * `otel.baselime.io/v1/metrics` - metrics + * `otel.baselime.io/v1/logs` - logs * gRPC: `otel-ingest.baselime.io:4317` ### Headers From f103ca8a027a6f9ce231e77eae66e2c986642cf8 Mon Sep 17 00:00:00 2001 From: Maksym Makuch Date: Wed, 5 Jun 2024 14:05:38 +0100 Subject: [PATCH 2/3] Updates port for gRPC OTEL --- sending-data/platforms/opentelemetry/opentelemetry.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sending-data/platforms/opentelemetry/opentelemetry.md b/sending-data/platforms/opentelemetry/opentelemetry.md index 55ced15b..7f68c91c 100644 --- a/sending-data/platforms/opentelemetry/opentelemetry.md +++ b/sending-data/platforms/opentelemetry/opentelemetry.md @@ -13,7 +13,7 @@ If your codebase is already instrumented with [OpenTelemetry](https://openteleme * `otel.baselime.io/v1/traces` - traces * `otel.baselime.io/v1/metrics` - metrics * `otel.baselime.io/v1/logs` - logs -* gRPC: `otel-ingest.baselime.io:4317` +* gRPC: `otel-ingest.baselime.io:8443` ### Headers ```yaml From f7b281336ecb6d1e587e6e74977b7094f03cad78 Mon Sep 17 00:00:00 2001 From: Boris Tane Date: Thu, 6 Jun 2024 15:54:07 +0100 Subject: [PATCH 3/3] adds api docs for services --- api-docs/index.md | 64 ++++++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 61 insertions(+), 3 deletions(-) diff --git a/api-docs/index.md b/api-docs/index.md index 24e82317..18102083 100644 --- a/api-docs/index.md +++ b/api-docs/index.md @@ -17,7 +17,7 @@ This endpoint enables the client to interact with resources on Baselime platform ## Authentication Headers * `content-type: application/json` -* `x-api-key: ` - get your API key from [Baselime console](https://console.baselime.io) +* `x-api-key: ` - get your admin API key from [Baselime console](https://console.baselime.io) ## Dashboards @@ -371,7 +371,6 @@ This endpoint enables the client to interact with resources on Baselime platform } ``` === - ## Alerts ==- [!badge GET] `/alerts` @@ -621,6 +620,65 @@ This endpoint enables the client to interact with resources on Baselime platform --- +## Services + +==- [!badge GET] `/services` +**Description:** Lists all services in the environment. + +**Response** +```typescript Body +{ + "data": Array<{ + "name": string + "workspaceId": string + "environmentId": string + "userId": string + "generated": boolean + "created": string + "updated": string + "metadata": Record + }> +} + +``` + +==- [!badge GET] `/services/{name}` +**Description:** Gets a service by name. + + +**Request** +* `{id}` - The name of the service. + +**Response** +```typescript Body +{ + "data": { + "name": string + "workspaceId": string + "environmentId": string + "userId": string + "generated": boolean + "created": string + "updated": string + "metadata": Record + } +} +``` + +==- [!badge variant="danger" text="DELETE"] `/services/{name}` +**Description:** Deletes a service. + +**Request** +* `{name}` - The name of the service. + +**Response** +```typescript Body +{ + "message": "Service deleted", +} +``` +=== + # Telemetry data @@ -630,7 +688,7 @@ This endpoint enables you to query your telemetry data. ## Authentication * `content-type: application/json` -* `x-api-key: ` - get your API key from [Baselime console](https://console.baselime.io) +* `x-api-key: ` - get your admin API key from [Baselime console](https://console.baselime.io) ==- [!badge POST] `/query_runs` **Description:** Creates a new query run and returns its results.