Преглед изворни кода

Add elastic stack (#134) (#174)

* Add elastic stack (#134)

* (#134) Fix Upper case
tags/v0.13.0
gabriel-tessier пре 4 година
committed by GitHub
родитељ
комит
1eed33692a
No known key found for this signature in database GPG Key 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. BIN
      resources/elastic/cloud.png
  11. BIN
      resources/elastic/elasticsearch/alerting.png
  12. BIN
      resources/elastic/elasticsearch/elasticsearch.png
  13. BIN
      resources/elastic/elasticsearch/kibana.png
  14. BIN
      resources/elastic/elasticsearch/logstash.png
  15. BIN
      resources/elastic/elasticsearch/machine-learning.png
  16. BIN
      resources/elastic/elasticsearch/maps.png
  17. BIN
      resources/elastic/elasticsearch/monitoring.png
  18. BIN
      resources/elastic/elasticsearch/security-settings.png
  19. BIN
      resources/elastic/elasticsearch/sql.png
  20. BIN
      resources/elastic/enterprisesearch/app-search.png
  21. BIN
      resources/elastic/enterprisesearch/enterprise-search.png
  22. BIN
      resources/elastic/enterprisesearch/site-search.png
  23. BIN
      resources/elastic/enterprisesearch/workplace-search.png
  24. BIN
      resources/elastic/observability/apm.png
  25. BIN
      resources/elastic/observability/logs.png
  26. BIN
      resources/elastic/observability/metrics.png
  27. BIN
      resources/elastic/observability/observability.png
  28. BIN
      resources/elastic/observability/uptime.png
  29. BIN
      resources/elastic/orchestration/ece.png
  30. BIN
      resources/elastic/orchestration/eck.png
  31. BIN
      resources/elastic/security/endpoint.png
  32. BIN
      resources/elastic/security/security.png
  33. BIN
      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**

BIN
resources/elastic/cloud.png Прегледај датотеку

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

BIN
resources/elastic/elasticsearch/alerting.png Прегледај датотеку

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

BIN
resources/elastic/elasticsearch/elasticsearch.png Прегледај датотеку

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

BIN
resources/elastic/elasticsearch/kibana.png Прегледај датотеку

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

BIN
resources/elastic/elasticsearch/logstash.png Прегледај датотеку

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

BIN
resources/elastic/elasticsearch/machine-learning.png Прегледај датотеку

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

BIN
resources/elastic/elasticsearch/maps.png Прегледај датотеку

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

BIN
resources/elastic/elasticsearch/monitoring.png Прегледај датотеку

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

BIN
resources/elastic/elasticsearch/security-settings.png Прегледај датотеку

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

BIN
resources/elastic/elasticsearch/sql.png Прегледај датотеку

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

BIN
resources/elastic/enterprisesearch/app-search.png Прегледај датотеку

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

BIN
resources/elastic/enterprisesearch/enterprise-search.png Прегледај датотеку

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

BIN
resources/elastic/enterprisesearch/site-search.png Прегледај датотеку

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

BIN
resources/elastic/enterprisesearch/workplace-search.png Прегледај датотеку

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

BIN
resources/elastic/observability/apm.png Прегледај датотеку

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

BIN
resources/elastic/observability/logs.png Прегледај датотеку

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

BIN
resources/elastic/observability/metrics.png Прегледај датотеку

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

BIN
resources/elastic/observability/observability.png Прегледај датотеку

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

BIN
resources/elastic/observability/uptime.png Прегледај датотеку

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

BIN
resources/elastic/orchestration/ece.png Прегледај датотеку

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

BIN
resources/elastic/orchestration/eck.png Прегледај датотеку

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

BIN
resources/elastic/security/endpoint.png Прегледај датотеку

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

BIN
resources/elastic/security/security.png Прегледај датотеку

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

BIN
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…
Откажи
Сачувај