跳转到主要内容

从tin统计信息创建图形

项目描述

从tinc生成图形

待办事项

  • 目前,在 tinc_graphs/static/map.html 中硬编码了Maps API密钥,如果您想使用此功能,您需要手动替换此密钥

安装

Nix

# tinc_pre is required:
nix-env -i -f tinc_graphs.nix

## e.g. in Retiolum:
## krebs.retiolum.tinc = pkgs.tinc_pre

本地

python setup.py install
# also install graphviz,imagemagic for building graphs

使用

查看2个构建脚本的源代码

#all-around-builder
# env: EXTERNAL_FOLDER, INTERNAL_FOLDER, GEODB, TINC_HOSTPATH
all-the-graphs

# build actual graphs
build-graph

# exported py scripts
tinc-stats2json         # - parses tinc current state into json
tinc-build-graph        # - transfers json to graph
copy-map                # - copies map.html into $1
add-geodata             # - adds geodata to json
tinc-availability-stats # adds availability data to json

Geodb信息

上传到pypi

python setup.py sdist
twine upload dist/*

项目详情


下载文件

下载适合您的平台文件。如果您不确定要选择哪个,请了解有关安装包的更多信息。

源代码发行版

tinc_graphs-0.3.11.tar.gz (11.7 kB 查看哈希)

上传时间: 源代码

支持者

AWS AWS 云计算和安全赞助商 Datadog Datadog 监控 Fastly Fastly CDN Google Google 下载分析 Microsoft Microsoft PSF 赞助商 Pingdom Pingdom 监控 Sentry Sentry 错误记录 StatusPage StatusPage 状态页面