瀏覽代碼

Add elastic stack (#134) (#174)

* Add elastic stack (#134)

* (#134) Fix Upper case
tags/v0.13.0
gabriel-tessier 4 年之前
committed by GitHub
父節點
當前提交
1eed33692a
沒有發現已知的金鑰在資料庫的簽署中 GPG 金鑰 ID: 4AEE18F83AFDEB23
共有 35 個檔案被更改,包括 220 行新增3 行删除
  1. +1
    -1
      autogen.sh
  2. +8
    -1
      config.py
  3. +12
    -0
      diagrams/elastic/__init__.py
  4. +49
    -0
      diagrams/elastic/elasticsearch.py
  5. +27
    -0
      diagrams/elastic/enterprisesearch.py
  6. +31
    -0
      diagrams/elastic/observability.py
  7. +19
    -0
      diagrams/elastic/orchestration.py
  8. +23
    -0
      diagrams/elastic/security.py
  9. +44
    -0
      docs/nodes/elastic.md
  10. 二進制
      resources/elastic/cloud.png
  11. 二進制
      resources/elastic/elasticsearch/alerting.png
  12. 二進制
      resources/elastic/elasticsearch/elasticsearch.png
  13. 二進制
      resources/elastic/elasticsearch/kibana.png
  14. 二進制
      resources/elastic/elasticsearch/logstash.png
  15. 二進制
      resources/elastic/elasticsearch/machine-learning.png
  16. 二進制
      resources/elastic/elasticsearch/maps.png
  17. 二進制
      resources/elastic/elasticsearch/monitoring.png
  18. 二進制
      resources/elastic/elasticsearch/security-settings.png
  19. 二進制
      resources/elastic/elasticsearch/sql.png
  20. 二進制
      resources/elastic/enterprisesearch/app-search.png
  21. 二進制
      resources/elastic/enterprisesearch/enterprise-search.png
  22. 二進制
      resources/elastic/enterprisesearch/site-search.png
  23. 二進制
      resources/elastic/enterprisesearch/workplace-search.png
  24. 二進制
      resources/elastic/observability/apm.png
  25. 二進制
      resources/elastic/observability/logs.png
  26. 二進制
      resources/elastic/observability/metrics.png
  27. 二進制
      resources/elastic/observability/observability.png
  28. 二進制
      resources/elastic/observability/uptime.png
  29. 二進制
      resources/elastic/orchestration/ece.png
  30. 二進制
      resources/elastic/orchestration/eck.png
  31. 二進制
      resources/elastic/security/endpoint.png
  32. 二進制
      resources/elastic/security/security.png
  33. 二進制
      resources/elastic/security/siem.png
  34. +1
    -1
      scripts/generate.py
  35. +5
    -0
      scripts/resource.py

+ 1
- 1
autogen.sh 查看文件

@@ -4,7 +4,7 @@ set -e
app_root_dir="diagrams"

# NOTE: azure icon set is not latest version
providers=("onprem" "aws" "azure" "gcp" "firebase" "k8s" "alibabacloud" "oci" "programming" "saas")
providers=("onprem" "aws" "azure" "gcp" "firebase" "k8s" "alibabacloud" "oci" "programming" "saas" "elastic")

if ! [ -x "$(command -v round)" ]; then
echo 'round is not installed'


+ 8
- 1
config.py 查看文件

@@ -11,7 +11,7 @@ DIR_APP_ROOT = "diagrams"
DIR_RESOURCE = "resources"
DIR_TEMPLATE = "templates"

PROVIDERS = ("base", "onprem", "aws", "azure", "gcp", "firebase", "k8s", "alibabacloud", "oci", "programming", "saas")
PROVIDERS = ("base", "onprem", "aws", "azure", "gcp", "firebase", "k8s", "alibabacloud", "oci", "programming", "saas", "elastic")

#########################
# Resource Processing #
@@ -35,6 +35,7 @@ FILE_PREFIXES = {
"oci": ("OCI-",),
"programming": (),
"saas": (),
"elastic": (),
}

#########################
@@ -59,6 +60,7 @@ UPPER_WORDS = {
"sa", "sc", "sts", "svc",
),
"oci": ("oci",),
"elastic": ("apm", "siem", "ece", "eck"),
}

TITLE_WORDS = {
@@ -356,4 +358,9 @@ ALIASES = {
},
},
"saas": {},
"elastic": {
"elasticsearch": {
"Logstash": "LogStash",
}
},
}

+ 12
- 0
diagrams/elastic/__init__.py 查看文件

@@ -0,0 +1,12 @@
"""
Elastic provides a set of general elastic services.
"""

from diagrams import Node


class _Elastic(Node):
_provider = "elastic"
_icon_dir = "resources/elastic"

fontcolor = "#ffffff"

+ 49
- 0
diagrams/elastic/elasticsearch.py 查看文件

@@ -0,0 +1,49 @@
# This module is automatically generated by autogen.sh. DO NOT EDIT.

from . import _Elastic


class _Elasticsearch(_Elastic):
_type = "elasticsearch"
_icon_dir = "resources/elastic/elasticsearch"


class Alerting(_Elasticsearch):
_icon = "alerting.png"


class Elasticsearch(_Elasticsearch):
_icon = "elasticsearch.png"


class Kibana(_Elasticsearch):
_icon = "kibana.png"


class Logstash(_Elasticsearch):
_icon = "logstash.png"


class MachineLearning(_Elasticsearch):
_icon = "machine-learning.png"


class Maps(_Elasticsearch):
_icon = "maps.png"


class Monitoring(_Elasticsearch):
_icon = "monitoring.png"


class SecuritySettings(_Elasticsearch):
_icon = "security-settings.png"


class Sql(_Elasticsearch):
_icon = "sql.png"


# Aliases

LogStash = Logstash

+ 27
- 0
diagrams/elastic/enterprisesearch.py 查看文件

@@ -0,0 +1,27 @@
# This module is automatically generated by autogen.sh. DO NOT EDIT.

from . import _Elastic


class _Enterprisesearch(_Elastic):
_type = "enterprisesearch"
_icon_dir = "resources/elastic/enterprisesearch"


class AppSearch(_Enterprisesearch):
_icon = "app-search.png"


class EnterpriseSearch(_Enterprisesearch):
_icon = "enterprise-search.png"


class SiteSearch(_Enterprisesearch):
_icon = "site-search.png"


class WorkplaceSearch(_Enterprisesearch):
_icon = "workplace-search.png"


# Aliases

+ 31
- 0
diagrams/elastic/observability.py 查看文件

@@ -0,0 +1,31 @@
# This module is automatically generated by autogen.sh. DO NOT EDIT.

from . import _Elastic


class _Observability(_Elastic):
_type = "observability"
_icon_dir = "resources/elastic/observability"


class APM(_Observability):
_icon = "apm.png"


class Logs(_Observability):
_icon = "logs.png"


class Metrics(_Observability):
_icon = "metrics.png"


class Observability(_Observability):
_icon = "observability.png"


class Uptime(_Observability):
_icon = "uptime.png"


# Aliases

+ 19
- 0
diagrams/elastic/orchestration.py 查看文件

@@ -0,0 +1,19 @@
# This module is automatically generated by autogen.sh. DO NOT EDIT.

from . import _Elastic


class _Orchestration(_Elastic):
_type = "orchestration"
_icon_dir = "resources/elastic/orchestration"


class ECE(_Orchestration):
_icon = "ece.png"


class ECK(_Orchestration):
_icon = "eck.png"


# Aliases

+ 23
- 0
diagrams/elastic/security.py 查看文件

@@ -0,0 +1,23 @@
# This module is automatically generated by autogen.sh. DO NOT EDIT.

from . import _Elastic


class _Security(_Elastic):
_type = "security"
_icon_dir = "resources/elastic/security"


class Endpoint(_Security):
_icon = "endpoint.png"


class Security(_Security):
_icon = "security.png"


class SIEM(_Security):
_icon = "siem.png"


# Aliases

+ 44
- 0
docs/nodes/elastic.md 查看文件

@@ -0,0 +1,44 @@
---
id: elastic
title: Elastic
---

Node classes list of elastic provider.

## elastic.elasticsearch

- **diagrams.elastic.elasticsearch.Alerting**
- **diagrams.elastic.elasticsearch.Elasticsearch**
- **diagrams.elastic.elasticsearch.Kibana**
- **diagrams.elastic.elasticsearch.Logstash**, **LogStash** (alias)
- **diagrams.elastic.elasticsearch.MachineLearning**
- **diagrams.elastic.elasticsearch.Maps**
- **diagrams.elastic.elasticsearch.Monitoring**
- **diagrams.elastic.elasticsearch.SecuritySettings**
- **diagrams.elastic.elasticsearch.Sql**

## elastic.enterprisesearch

- **diagrams.elastic.enterprisesearch.AppSearch**
- **diagrams.elastic.enterprisesearch.EnterpriseSearch**
- **diagrams.elastic.enterprisesearch.SiteSearch**
- **diagrams.elastic.enterprisesearch.WorkplaceSearch**

## elastic.observability

- **diagrams.elastic.observability.APM**
- **diagrams.elastic.observability.Logs**
- **diagrams.elastic.observability.Metrics**
- **diagrams.elastic.observability.Observability**
- **diagrams.elastic.observability.Uptime**

## elastic.orchestration

- **diagrams.elastic.orchestration.ECE**
- **diagrams.elastic.orchestration.ECK**

## elastic.security

- **diagrams.elastic.security.Endpoint**
- **diagrams.elastic.security.Security**
- **diagrams.elastic.security.SIEM**

二進制
resources/elastic/cloud.png 查看文件

Before After
Width: 256  |  Height: 256  |  Size: 7.9 KiB

二進制
resources/elastic/elasticsearch/alerting.png 查看文件

Before After
Width: 256  |  Height: 256  |  Size: 12 KiB

二進制
resources/elastic/elasticsearch/elasticsearch.png 查看文件

Before After
Width: 256  |  Height: 256  |  Size: 4.6 KiB

二進制
resources/elastic/elasticsearch/kibana.png 查看文件

Before After
Width: 256  |  Height: 256  |  Size: 5.2 KiB

二進制
resources/elastic/elasticsearch/logstash.png 查看文件

Before After
Width: 256  |  Height: 256  |  Size: 2.5 KiB

二進制
resources/elastic/elasticsearch/machine-learning.png 查看文件

Before After
Width: 256  |  Height: 256  |  Size: 7.9 KiB

二進制
resources/elastic/elasticsearch/maps.png 查看文件

Before After
Width: 256  |  Height: 256  |  Size: 6.5 KiB

二進制
resources/elastic/elasticsearch/monitoring.png 查看文件

Before After
Width: 256  |  Height: 256  |  Size: 10 KiB

二進制
resources/elastic/elasticsearch/security-settings.png 查看文件

Before After
Width: 256  |  Height: 256  |  Size: 9.0 KiB

二進制
resources/elastic/elasticsearch/sql.png 查看文件

Before After
Width: 256  |  Height: 256  |  Size: 2.3 KiB

二進制
resources/elastic/enterprisesearch/app-search.png 查看文件

Before After
Width: 256  |  Height: 256  |  Size: 7.3 KiB

二進制
resources/elastic/enterprisesearch/enterprise-search.png 查看文件

Before After
Width: 256  |  Height: 256  |  Size: 7.6 KiB

二進制
resources/elastic/enterprisesearch/site-search.png 查看文件

Before After
Width: 256  |  Height: 256  |  Size: 4.3 KiB

二進制
resources/elastic/enterprisesearch/workplace-search.png 查看文件

Before After
Width: 256  |  Height: 256  |  Size: 6.7 KiB

二進制
resources/elastic/observability/apm.png 查看文件

Before After
Width: 256  |  Height: 256  |  Size: 1.4 KiB

二進制
resources/elastic/observability/logs.png 查看文件

Before After
Width: 256  |  Height: 256  |  Size: 5.0 KiB

二進制
resources/elastic/observability/metrics.png 查看文件

Before After
Width: 256  |  Height: 256  |  Size: 4.6 KiB

二進制
resources/elastic/observability/observability.png 查看文件

Before After
Width: 256  |  Height: 256  |  Size: 1.9 KiB

二進制
resources/elastic/observability/uptime.png 查看文件

Before After
Width: 256  |  Height: 256  |  Size: 6.5 KiB

二進制
resources/elastic/orchestration/ece.png 查看文件

Before After
Width: 256  |  Height: 256  |  Size: 8.8 KiB

二進制
resources/elastic/orchestration/eck.png 查看文件

Before After
Width: 256  |  Height: 256  |  Size: 10 KiB

二進制
resources/elastic/security/endpoint.png 查看文件

Before After
Width: 256  |  Height: 256  |  Size: 5.0 KiB

二進制
resources/elastic/security/security.png 查看文件

Before After
Width: 256  |  Height: 256  |  Size: 3.2 KiB

二進制
resources/elastic/security/siem.png 查看文件

Before After
Width: 256  |  Height: 256  |  Size: 5.2 KiB

+ 1
- 1
scripts/generate.py 查看文件

@@ -7,7 +7,7 @@ from jinja2 import Environment, FileSystemLoader, Template
import config as cfg
from . import app_root_dir, doc_root_dir, resource_dir, template_dir

_usage = "Usage: generate.py <onprem|aws|gcp|azure|k8s|alibabacloud|oci|programming|saas>"
_usage = "Usage: generate.py <onprem|aws|gcp|azure|k8s|alibabacloud|oci|programming|saas|elastic>"


def load_tmpl(tmpl: str) -> Template:


+ 5
- 0
scripts/resource.py 查看文件

@@ -98,6 +98,10 @@ def cleaner_saas(f):
return f.lower()


def cleaner_elastic(f):
return f.lower()


cleaners = {
"onprem": cleaner_onprem,
"aws": cleaner_aws,
@@ -109,6 +113,7 @@ cleaners = {
"oci": cleaner_oci,
"programming": cleaner_programming,
"saas": cleaner_saas,
"elastic": cleaner_elastic,
}




Loading…
取消
儲存