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

Add elastic stack (#134) #174

Merged
merged 2 commits into from
May 31, 2020
Merged
Show file tree
Hide file tree
Changes from 1 commit
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: 1 addition & 1 deletion autogen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
8 changes: 7 additions & 1 deletion config.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
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 #
Expand All @@ -35,6 +35,7 @@
"oci": ("OCI-",),
"programming": (),
"saas": (),
"elastic": (),
}

#########################
Expand Down Expand Up @@ -356,4 +357,9 @@
},
},
"saas": {},
"elastic": {
"elasticsearch": {
"Logstash": "LogStash",
}
},
}
12 changes: 12 additions & 0 deletions diagrams/elastic/__init__.py
Original file line number Diff line number Diff line change
@@ -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 changes: 49 additions & 0 deletions diagrams/elastic/elasticsearch.py
Original file line number Diff line number Diff line change
@@ -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 changes: 27 additions & 0 deletions diagrams/elastic/enterprisesearch.py
Original file line number Diff line number Diff line change
@@ -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 changes: 31 additions & 0 deletions diagrams/elastic/observability.py
Original file line number Diff line number Diff line change
@@ -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 changes: 19 additions & 0 deletions diagrams/elastic/orchestration.py
Original file line number Diff line number Diff line change
@@ -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 changes: 23 additions & 0 deletions diagrams/elastic/security.py
Original file line number Diff line number Diff line change
@@ -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 changes: 44 additions & 0 deletions docs/nodes/elastic.md
Original file line number Diff line number Diff line change
@@ -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**
Binary file added resources/elastic/cloud.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added resources/elastic/elasticsearch/alerting.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added resources/elastic/elasticsearch/kibana.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added resources/elastic/elasticsearch/logstash.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added resources/elastic/elasticsearch/maps.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added resources/elastic/elasticsearch/monitoring.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added resources/elastic/elasticsearch/sql.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added resources/elastic/enterprisesearch/app-search.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added resources/elastic/observability/apm.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added resources/elastic/observability/logs.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added resources/elastic/observability/metrics.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added resources/elastic/observability/observability.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added resources/elastic/observability/uptime.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added resources/elastic/orchestration/ece.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added resources/elastic/orchestration/eck.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added resources/elastic/security/endpoint.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added resources/elastic/security/security.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added resources/elastic/security/siem.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion scripts/generate.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
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:
Expand Down
5 changes: 5 additions & 0 deletions scripts/resource.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -109,6 +113,7 @@ def cleaner_saas(f):
"oci": cleaner_oci,
"programming": cleaner_programming,
"saas": cleaner_saas,
"elastic": cleaner_elastic,
}


Expand Down