Skip to content

Commit

Permalink
Prepare for Superset visualizations
Browse files Browse the repository at this point in the history
  • Loading branch information
arusevm committed Oct 16, 2024
1 parent 72cae3d commit b22d8cb
Show file tree
Hide file tree
Showing 8 changed files with 525 additions and 0 deletions.
14 changes: 14 additions & 0 deletions druid-otlp-format/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
# Copyright 2024 Mishmash IO UK Ltd.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

FROM maven AS builder

WORKDIR /tmp/maven-deps
Expand Down
14 changes: 14 additions & 0 deletions server-parquet/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
# Copyright 2024 Mishmash IO UK Ltd.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

FROM eclipse-temurin:17-jre-alpine
ADD ./target/dependency /opt/server-parquet
COPY target/server-parquet-*.jar /opt/server-parquet
Expand Down
19 changes: 19 additions & 0 deletions superset-visualizations/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Copyright 2024 Mishmash IO UK Ltd.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

FROM apache/superset:4.0.2

RUN pip install pydruid
COPY --chown=superset:superset --chmod=755 opentelemetry-demo.sh /app/
ADD --chown=superset:superset --chmod=755 resources /app/opentelemetry-import-resources
3 changes: 3 additions & 0 deletions superset-visualizations/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Visualizing OpenTelemetry data with Apache Superset

Coming soon!
28 changes: 28 additions & 0 deletions superset-visualizations/opentelemetry-demo.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
#!/bin/bash
# Copyright 2024 Mishmash IO UK Ltd.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

export FLASK_APP=superset

# Just init everything as a completely new Superset installation:
superset db upgrade && \
superset fab create-admin \
--username admin \
--firstname OpenTelemetry \
--lastname Demo \
--email [email protected] \
--password admin && \
superset init && \
superset import-directory /app/opentelemetry-import-resources && \
exec superset run -p 8088 --with-threads -h 0.0.0.0
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Copyright 2024 Mishmash IO UK Ltd.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

database_name: Apache Druid for OpenTelemetry
sqlalchemy_uri: druid://opentelemetry-demo-druid-broker:8888/druid/v2/sql
cache_timeout: null
expose_in_sqllab: true
allow_run_async: false
allow_ctas: false
allow_cvas: false
allow_dml: false
allow_csv_upload: false
extra:
allows_virtual_table_explore: true
uuid: 3a8d1686-9390-44c1-9108-81c35aa1280f
version: 1.0.0
Loading

0 comments on commit b22d8cb

Please sign in to comment.