Show HN:Delve,一个开源(AGPL)企业级数据分析平台
Show HN: Delve, an open source (AGPL) enterprise-grade data analytics platform

原始链接: https://github.com/iLoveTux/delve

Delve是一个企业级数据摄取、分析和洞察提取平台,目前处于Alpha预发布阶段(AGPL-3.0许可)。它具有REST API、syslog接收器、文件监控、直接上传、交互式搜索、基于管道的查询、自定义仪表板和实时警报等功能。企业级功能包括基于角色的访问控制、自定义应用程序开发和计划任务。 安装过程涉及解压预构建文件。基本使用方法包括复制示例设置、创建数据库、运行测试、创建管理员用户以及启动Web UI和任务运行器。默认设置适用于快速数据摄取,以进行故障排除和API抓取。配置位于`$DELVE_HOME/delve/settings.py`。 对于开发,需要克隆代码库,准备后端(数据库、Python依赖项),使用`webpack`捆绑前端依赖项,复制前端资源,创建数据库和管理员用户,然后启动服务器。部署、配置、使用和API的详细文档已提供。

Delve,一个开源的企业级数据分析平台,其创建者在Hacker News上宣布了它的发布。Delve 使用 Django、Django Rest Framework 和 Javascript 构建,旨在高效地摄取、搜索和报告大型数据集。它使用一个由 Python 脚本驱动的类似 Unix 管道的搜索语言,并具有一个 Web UI,用于以表格、折线图和条形图的形式显示数据。 早期反馈指出了与现有的软件(如 Go 调试器 "Delve" 和一款已停产的微软产品)的命名冲突。虽然开发者最初很喜欢这个名字并打算保留它,但关于 SEO 和用户混淆的担忧可能会导致改名。用户建议了一些名称,例如 "DelveDeep" 和 "DataDelve"。创建者还在寻求关于在 GitHub README 中托管演示视频以展示平台功能的建议。
相关文章

原文

NOTICE: Delve is in Alpha pre-release. Please try it out and provide feedback of any issues or missing features you encounter, but production use is discouraged at the moment.

Delve is licensed under the GNU Affero General Public License v3 (AGPL-3.0).

This means:

  • You are free to use, modify, and distribute this software, provided that any network-accessible modifications are also made available under the same license.
  • The full license text is available in the LICENSE file and at https://www.gnu.org/licenses/agpl-3.0.html.

If you deploy a modified version of Delve on a server and allow users to interact with it over a network, you must also make the source code of your modified version available to those users.

For more information, see the GNU AGPL FAQ.

Please use the Issues section of this repository for feature requests, bug reports, and general feedback.

Delve is an enterprise-grade platform for ingesting, analyzing, and deriving insights from any data source. Key capabilities include:

  • Data Integration

    • REST API endpoints
    • Syslog receiver (UDP/TCP/TLS)
    • File monitoring and ingestion
    • Direct uploads
  • Analysis & Visualization

    • Interactive search interface
    • Pipeline-based query language
    • Custom dashboards
    • Real-time alerts
  • Enterprise Features

    • Role-based access control
    • Custom app development
    • API-first architecture
    • Extensible search commands
    • Scheduled tasks and automation
  1. Download one of the pre-built zip files from the releases page.
  2. Unzip the file in the desired location.
  3. That's it!

After installation, setup can be as simple or as complex as you need.

The simplest setup involves using the default settings. The default settings are designed to be most useful to someone who is looking to quickly ingest some data (like log files or a REST API) and would like to search, transform, correlate, store, or otherwise interact with that data.

This use-case can be quite handy if you need to quickly troubleshoot an issue or would like to crawl a REST API for information.

To start using Delve with the simplest setup, use the following commands:

# Copy the example settings and urls files
cp ./delve/example-settings.py ./delve/settings.py
cp ./delve/example-urls.py ./delve/urls.py

# Create the database
./dl migrate

# Run the tests
./dl test

# Create an admin user
./dl createsuperuser

# Start serving the web UI
./dl serve

# In another window, you can start the task runner
./dl qcluster
  • Admin Manual: Deployment, configuration, and system administration
  • User Manual: Search syntax, dashboards, and data analysis
  • API Documentation: Available at /api/docs after installation

Configuration settings are located in $DELVE_HOME/delve/settings.py.

On a fresh install, there is no settings.py or urls.py. This is done to prevent overwriting a user's settings.py or urls.py if the install package is used as an update. So, if you are using the default configuration, you must copy the files ./delve/example-settings.py and ./delve/example-urls.py like in the command above.

All Delve-specific settings are prefixed with DELVE.

The other settings in settings.py are specific to Django and the Django Rest Framework and can be found throughout the file.

In order to run Delve directly from the repo for development purposes, use the following commands to perform standard tasks:

git clone $REPO_DIR    # TODO
cd delve

# Provision backend db, python requirements, etc
cd src
cd home

# Optionally, clear out old data
find . -type d -name __pycache__ -exec rm -fr {} ';'
rm -fr .venv
rm db.sqlite3
rm -fr staticfiles/*

# provision python venv, install Python dependencies and collect static assets
python -m venv .venv
.venv\Scripts\activate.bat
python -m pip install --upgrade pip
python -m pip install -r ..\..\windows-requirements.txt
python manage.py collectstatic --no-input

# Bundle frontend dependencies
cd ..
cd ..
npx webpack --config webpack.config.js
npx webpack --config dltable-webpack.config.js
npx webpack --config dlchart-webpack.config.js

# Copy frontend assets
mkdir src\home\staticfiles\js\
cp dist/staticfiles/dl-explore.js src/home/staticfiles/js/dl-explore.js
cp dist/staticfiles/dl-explore.js.LICENSE.txt src/home/staticfiles/js/dl-explore.js.LICENSE.txt

cp dist/staticfiles/dl-chart.js src/home/staticfiles/js/dl-chart.js
cp dist/staticfiles/dl-chart.js.LICENSE.txt src/home/staticfiles/js/dl-chart.js.LICENSE.txt

cp dist/staticfiles/dl-table.js src/home/staticfiles/js/dl-table.js
cp dist/staticfiles/dl-table.js.LICENSE.txt src/home/staticfiles/js/dl-table.js.LICENSE.txt

cp dist/main.css src/home/staticfiles/css/main.css
cp dist/*.woff src/home/staticfiles/css/
cp dist/*.woff2 src/home/staticfiles/css/

# Create database, admin user and start the server
cd src
cd home
python manage.py migrate
python manage.py createsuperuser
python manage.py serve
联系我们 contact @ memedata.com