Skip to content
This repository was archived by the owner on Mar 6, 2025. It is now read-only.
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 18 additions & 0 deletions .idea/ChatGPTCopilotChannelManager.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions .idea/integrations.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

55 changes: 55 additions & 0 deletions collector/scylla/examples/compose/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
# Scylla metrics using the OpenTelemetry Collector

## Overview

Name: natively exposes a Prometheus endpoint and the OpenTelemetry Collector has a [Prometheus receiver][otel-prom-receiver] that can be used to scrape its Prometheus endpoint. This directory contains an example showing how to configure Name: and the Collector to send metrics to Lightstep Observability.

## Prerequisites

* Docker
* Docker Compose
* A Lightstep Observability [access token][ls-docs-access-token]

## How to run the example

* Export your Lightstep access token

```sh
export LS_ACCESS_TOKEN=<YOUR_TOKEN>
```

* Run the docker compose example

```sh
docker-compose up -d
```

### Explore Metrics in Lightstep

See the [Name: Telemetry Docs][scylla-docs-telemetry] for comprehensive documentation on metrics emitted and the [dashboard documentation][ls-docs-dashboards] for more details.

## Configure the Collector

Below is a snippet showing how to configure the Prometheus Receiver to scrape the Prometheus endpoint exposed by the Name: Server.

```yaml
receivers:
prometheus:
config:
scrape_configs:
- job_name: 'scylladb'
scrape_interval: 10s
static_configs:
- targets: ['localhost:9180']
```


## Additional information

- [OpenTelemetry Collector Prometheus Receiver][otel-prom-receiver]
- [Name: Telemetry Reference][scylla-docs-telemetry]

[ls-docs-access-token]: https://docs.lightstep.com/docs/create-and-manage-access-tokens
[ls-docs-dashboards]: https://docs.lightstep.com/docs/create-and-manage-dashboards
[otel-prom-receiver]: https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/receiver/prometheusreceiver
[scylla-docs-telemetry]: https://cloud.docs.scylladb.com/stable/monitoring/cloud-prom-proxy.html
26 changes: 26 additions & 0 deletions collector/scylla/examples/compose/collector.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
receivers:
prometheus:
config:
scrape_configs:
- job_name: 'scylladb'
scrape_interval: 10s
static_configs:
- targets: ['scylladb:9180']

processors:
batch:

exporters:
logging:
loglevel: debug
otlp:
endpoint: ingest.staging.lightstep.com:443
headers:
- lightstep-access-token: ${LS_ACCESS_TOKEN}

service:
pipelines:
metrics:
receivers: [prometheus]
processors: [batch]
exporters: [logging,otlp]
18 changes: 18 additions & 0 deletions collector/scylla/examples/compose/docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
version: '3.7'
services:
scylladb:
container_name: scylladb
image: scylladb/scylla:latest
ports:
- "9042:9042"

otel-collector:
container_name: otel-collector
image: otel/opentelemetry-collector-contrib:0.81.0
hostname: otel-collector
restart: always
command: [ "--config=/conf/collector.yaml" ]
volumes:
- ./collector.yaml:/conf/collector.yaml:rw
environment:
LS_ACCESS_TOKEN: "${LS_ACCESS_TOKEN}"