Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[KYUUBI #5944] Introduce Prometheus and Grafana for Kyuubi Playground #5945

Closed
wants to merge 8 commits into from
Closed
Show file tree
Hide file tree
Changes from 6 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
2 changes: 2 additions & 0 deletions docker/playground/.env
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,5 @@ SPARK_VERSION=3.4.2
SPARK_BINARY_VERSION=3.4
SPARK_HADOOP_VERSION=3.3.4
ZOOKEEPER_VERSION=3.6.3
PROMETHEUS_VERSION=2.45.2
GRAFANA_VERSION=10.0.10
2 changes: 2 additions & 0 deletions docker/playground/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ Kyuubi supply some built-in dataset, after Kyuubi started, you can run the follo
- MinIO: http://localhost:9001
- PostgreSQL localhost:5432 (username: postgres, password: postgres)
- Spark UI: http://localhost:4040 (available after Spark application launching by Kyuubi, port may be 4041, 4042... if you launch more than one Spark applications)
- Prometheus: http://localhost:9090
- grafana: http://localhost:3000 (username: admin, password: admin)
zwangsheng marked this conversation as resolved.
Show resolved Hide resolved

### Shutdown

Expand Down
25 changes: 25 additions & 0 deletions docker/playground/compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,3 +81,28 @@ services:
- metastore
- minio
- zookeeper

prometheus:
# leave `v` here for match prometheus docker image tag
image: prom/prometheus:v${PROMETHEUS_VERSION}
container_name: prometheus
hostname: prometheus
ports:
- 9090:9090
- 8123:8123
volumes:
- ./prometheus/prometheus.yml:/etc/prometheus/prometheus.yml

grafana:
image: grafana/grafana-oss:${GRAFANA_VERSION}
container_name: grafana
hostname: grafana
ports:
- 3000:3000
environment:
- GF_AUTH_ANONYMOUS_ENABLED=true
- GF_AUTH_ANONYMOUS_ORG_ROLE=Admin
volumes:
- ./grafana/datasource/prometheus.yaml:/etc/grafana/provisioning/datasources/prometheus.yaml
depends_on:
- prometheus
28 changes: 28 additions & 0 deletions docker/playground/grafana/datasource/prometheus.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You 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.
#

apiVersion: 1

datasources:
- name: prometheus
type: prometheus
url: http://prometheus:9090
orgId: 1
isDefault: false
access: server
editable: true
version: 1
21 changes: 21 additions & 0 deletions docker/playground/prometheus/prometheus.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You 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.
#

scrape_configs:
- job_name: kyuubi
static_configs:
- targets: ['kyuubi:10019']
zwangsheng marked this conversation as resolved.
Show resolved Hide resolved
Loading