diff --git a/docs/getting-started/examples.html b/docs/getting-started/examples.html index 48361e4b..20a2855c 100644 --- a/docs/getting-started/examples.html +++ b/docs/getting-started/examples.html @@ -243,6 +243,45 @@ ingress >> grpcsvc >> aggregator

advanced web service with on-premise diagram

+

Advanced Web Service with On-Premise (with colors and labels)

+
from diagrams import Cluster, Diagram, Edge
+from diagrams.onprem.analytics import Spark
+from diagrams.onprem.compute import Server
+from diagrams.onprem.database import PostgreSQL
+from diagrams.onprem.inmemory import Redis
+from diagrams.onprem.logging import Fluentd
+from diagrams.onprem.monitoring import Grafana, Prometheus
+from diagrams.onprem.network import Nginx
+from diagrams.onprem.queue import Kafka
+
+with Diagram(name="Advanced Web Service with On-Premise (colored)", show=False):
+    ingress = Nginx("ingress")
+
+    metrics = Prometheus("metric")
+    metrics << Edge(color="firebrick", style="dashed") << Grafana("monitoring")
+
+    with Cluster("Service Cluster"):
+        grpcsvc = [
+            Server("grpc1"),
+            Server("grpc2"),
+            Server("grpc3")]
+
+    with Cluster("Sessions HA"):
+        master = Redis("session")
+        master - Edge(color="brown", style="dashed") - Redis("replica") << Edge(label="collect") << metrics
+        grpcsvc >> Edge(color="brown") >> master
+
+    with Cluster("Database HA"):
+        master = PostgreSQL("users")
+        master - Edge(color="brown", style="dotted") - PostgreSQL("slave") << Edge(label="collect") << metrics
+        grpcsvc >> Edge(color="black") >> master
+
+    aggregator = Fluentd("logging")
+    aggregator >> Edge(label="parse") >> Kafka("stream") >> Edge(color="black", style="bold") >> Spark("analytics")
+
+    ingress >> Edge(color="darkgreen") << grpcsvc >> Edge(color="darkorange") >> aggregator
+
+

advanced web service with on-premise diagram colored

RabbitMQ Consumers with Custom Nodes

from urllib.request import urlretrieve
 
@@ -270,4 +309,4 @@ urlretrieve(rabbitmq_url, rabbitmq_icon)
     queue >> consumers >> Aurora("Database")
 

rabbitmq consumers diagram

-
Last updated on 2/23/2020
InstallationDiagrams
\ No newline at end of file +
Last updated on 3/9/2020
InstallationDiagrams
\ No newline at end of file diff --git a/docs/getting-started/examples/index.html b/docs/getting-started/examples/index.html index 48361e4b..20a2855c 100644 --- a/docs/getting-started/examples/index.html +++ b/docs/getting-started/examples/index.html @@ -243,6 +243,45 @@ ingress >> grpcsvc >> aggregator

advanced web service with on-premise diagram

+

Advanced Web Service with On-Premise (with colors and labels)

+
from diagrams import Cluster, Diagram, Edge
+from diagrams.onprem.analytics import Spark
+from diagrams.onprem.compute import Server
+from diagrams.onprem.database import PostgreSQL
+from diagrams.onprem.inmemory import Redis
+from diagrams.onprem.logging import Fluentd
+from diagrams.onprem.monitoring import Grafana, Prometheus
+from diagrams.onprem.network import Nginx
+from diagrams.onprem.queue import Kafka
+
+with Diagram(name="Advanced Web Service with On-Premise (colored)", show=False):
+    ingress = Nginx("ingress")
+
+    metrics = Prometheus("metric")
+    metrics << Edge(color="firebrick", style="dashed") << Grafana("monitoring")
+
+    with Cluster("Service Cluster"):
+        grpcsvc = [
+            Server("grpc1"),
+            Server("grpc2"),
+            Server("grpc3")]
+
+    with Cluster("Sessions HA"):
+        master = Redis("session")
+        master - Edge(color="brown", style="dashed") - Redis("replica") << Edge(label="collect") << metrics
+        grpcsvc >> Edge(color="brown") >> master
+
+    with Cluster("Database HA"):
+        master = PostgreSQL("users")
+        master - Edge(color="brown", style="dotted") - PostgreSQL("slave") << Edge(label="collect") << metrics
+        grpcsvc >> Edge(color="black") >> master
+
+    aggregator = Fluentd("logging")
+    aggregator >> Edge(label="parse") >> Kafka("stream") >> Edge(color="black", style="bold") >> Spark("analytics")
+
+    ingress >> Edge(color="darkgreen") << grpcsvc >> Edge(color="darkorange") >> aggregator
+
+

advanced web service with on-premise diagram colored

RabbitMQ Consumers with Custom Nodes

from urllib.request import urlretrieve
 
@@ -270,4 +309,4 @@ urlretrieve(rabbitmq_url, rabbitmq_icon)
     queue >> consumers >> Aurora("Database")
 

rabbitmq consumers diagram

-
Last updated on 2/23/2020
InstallationDiagrams
\ No newline at end of file +
Last updated on 3/9/2020
InstallationDiagrams
\ No newline at end of file diff --git a/docs/guides/edge.html b/docs/guides/edge.html new file mode 100644 index 00000000..e8bd47f9 --- /dev/null +++ b/docs/guides/edge.html @@ -0,0 +1,51 @@ +Edges · Diagrams
\ No newline at end of file diff --git a/docs/guides/edge/index.html b/docs/guides/edge/index.html new file mode 100644 index 00000000..e8bd47f9 --- /dev/null +++ b/docs/guides/edge/index.html @@ -0,0 +1,51 @@ +Edges · Diagrams
\ No newline at end of file diff --git a/docs/nodes/aws.html b/docs/nodes/aws.html index 3719921e..de8093d3 100644 --- a/docs/nodes/aws.html +++ b/docs/nodes/aws.html @@ -185,6 +185,12 @@
  • diagrams.aws.iot.IotSitewise
  • diagrams.aws.iot.IotThingsGraph
  • +

    aws.engagement

    +

    aws.compute

    -
    Last updated on 3/7/2020
    OnPremAzure
    \ No newline at end of file +
    Last updated on 3/9/2020
    OnPremAzure
    \ No newline at end of file diff --git a/docs/nodes/aws/index.html b/docs/nodes/aws/index.html index 3719921e..de8093d3 100644 --- a/docs/nodes/aws/index.html +++ b/docs/nodes/aws/index.html @@ -185,6 +185,12 @@
  • diagrams.aws.iot.IotSitewise
  • diagrams.aws.iot.IotThingsGraph
  • +

    aws.engagement

    +

    aws.compute

    -
    Last updated on 3/7/2020
    OnPremAzure
    \ No newline at end of file +
    Last updated on 3/9/2020
    OnPremAzure
    \ No newline at end of file diff --git a/img/advanced_web_service_with_on-premise_colored.png b/img/advanced_web_service_with_on-premise_colored.png new file mode 100644 index 00000000..168fa023 Binary files /dev/null and b/img/advanced_web_service_with_on-premise_colored.png differ diff --git a/sitemap.xml b/sitemap.xml index 984d73cc..32631d37 100644 --- a/sitemap.xml +++ b/sitemap.xml @@ -1 +1 @@ -https://diagrams.mingrammer.com/indexweekly0.5https://diagrams.mingrammer.com/docs/getting-started/exampleshourly1.0https://diagrams.mingrammer.com/docs/getting-started/installationhourly1.0https://diagrams.mingrammer.com/docs/guides/clusterhourly1.0https://diagrams.mingrammer.com/docs/guides/diagramhourly1.0https://diagrams.mingrammer.com/docs/guides/nodehourly1.0https://diagrams.mingrammer.com/docs/nodes/alibabacloudhourly1.0https://diagrams.mingrammer.com/docs/nodes/awshourly1.0https://diagrams.mingrammer.com/docs/nodes/azurehourly1.0https://diagrams.mingrammer.com/docs/nodes/gcphourly1.0https://diagrams.mingrammer.com/docs/nodes/k8shourly1.0https://diagrams.mingrammer.com/docs/nodes/ocihourly1.0https://diagrams.mingrammer.com/docs/nodes/onpremhourly1.0 \ No newline at end of file +https://diagrams.mingrammer.com/indexweekly0.5https://diagrams.mingrammer.com/docs/getting-started/exampleshourly1.0https://diagrams.mingrammer.com/docs/getting-started/installationhourly1.0https://diagrams.mingrammer.com/docs/guides/clusterhourly1.0https://diagrams.mingrammer.com/docs/guides/diagramhourly1.0https://diagrams.mingrammer.com/docs/guides/edgehourly1.0https://diagrams.mingrammer.com/docs/guides/nodehourly1.0https://diagrams.mingrammer.com/docs/nodes/alibabacloudhourly1.0https://diagrams.mingrammer.com/docs/nodes/awshourly1.0https://diagrams.mingrammer.com/docs/nodes/azurehourly1.0https://diagrams.mingrammer.com/docs/nodes/gcphourly1.0https://diagrams.mingrammer.com/docs/nodes/k8shourly1.0https://diagrams.mingrammer.com/docs/nodes/ocihourly1.0https://diagrams.mingrammer.com/docs/nodes/onpremhourly1.0 \ No newline at end of file