mirror of
https://github.com/Dokploy/templates.git
synced 2026-06-15 20:25:24 +02:00
add initial signoz template (#318)
* add initial signoz template * sort meta
This commit is contained in:
185
blueprints/signoz/docker-compose.yml
Normal file
185
blueprints/signoz/docker-compose.yml
Normal file
@@ -0,0 +1,185 @@
|
||||
services:
|
||||
otel-conf:
|
||||
image: alpine:3.20
|
||||
command:
|
||||
- /bin/sh
|
||||
- -lc
|
||||
- |
|
||||
cat > /otel/config.yaml <<'YAML'
|
||||
receivers:
|
||||
otlp:
|
||||
protocols:
|
||||
grpc:
|
||||
endpoint: 0.0.0.0:4317
|
||||
http:
|
||||
endpoint: 0.0.0.0:4318
|
||||
|
||||
processors:
|
||||
batch:
|
||||
|
||||
exporters:
|
||||
clickhousetraces:
|
||||
datasource: tcp://clickhouse:9000/signoz_traces
|
||||
use_new_schema: true
|
||||
|
||||
clickhousemetricswrite:
|
||||
endpoint: tcp://clickhouse:9000/signoz_metrics
|
||||
timeout: 15s
|
||||
resource_to_telemetry_conversion:
|
||||
enabled: true
|
||||
|
||||
clickhouselogsexporter:
|
||||
dsn: tcp://clickhouse:9000/signoz_logs
|
||||
timeout: 10s
|
||||
use_new_schema: true
|
||||
|
||||
metadataexporter:
|
||||
dsn: tcp://clickhouse:9000/signoz_metadata
|
||||
timeout: 10s
|
||||
|
||||
service:
|
||||
pipelines:
|
||||
traces:
|
||||
receivers: [otlp]
|
||||
processors: [batch]
|
||||
exporters: [clickhousetraces, metadataexporter]
|
||||
metrics:
|
||||
receivers: [otlp]
|
||||
processors: [batch]
|
||||
exporters: [clickhousemetricswrite, metadataexporter]
|
||||
logs:
|
||||
receivers: [otlp]
|
||||
processors: [batch]
|
||||
exporters: [clickhouselogsexporter, metadataexporter]
|
||||
YAML
|
||||
volumes:
|
||||
- otel-config:/otel
|
||||
restart: "no"
|
||||
|
||||
ch-conf:
|
||||
image: alpine:3.20
|
||||
command:
|
||||
- /bin/sh
|
||||
- -lc
|
||||
- |
|
||||
cat > /config/cluster.xml <<'XML'
|
||||
<?xml version="1.0"?>
|
||||
<clickhouse>
|
||||
<remote_servers>
|
||||
<cluster>
|
||||
<shard>
|
||||
<replica>
|
||||
<host>clickhouse</host>
|
||||
<port>9000</port>
|
||||
</replica>
|
||||
</shard>
|
||||
</cluster>
|
||||
</remote_servers>
|
||||
<zookeeper>
|
||||
<node index="1">
|
||||
<host>zookeeper-1</host>
|
||||
<port>2181</port>
|
||||
</node>
|
||||
</zookeeper>
|
||||
<distributed_ddl>
|
||||
<path>/clickhouse/task_queue/ddl</path>
|
||||
</distributed_ddl>
|
||||
</clickhouse>
|
||||
XML
|
||||
volumes:
|
||||
- ch-config:/config
|
||||
restart: "no"
|
||||
|
||||
zookeeper-1:
|
||||
image: bitnami/zookeeper:3.9
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
- ALLOW_ANONYMOUS_LOGIN=yes
|
||||
- ZOO_4LW_COMMANDS_WHITELIST=ruok,stat,envi,conf,mntr
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "echo ruok | nc -w 2 127.0.0.1 2181 | grep imok"]
|
||||
interval: 30s
|
||||
timeout: 5s
|
||||
retries: 3
|
||||
volumes:
|
||||
- zookeeper-data:/bitnami/zookeeper
|
||||
|
||||
clickhouse:
|
||||
image: clickhouse/clickhouse-server:24.1.2-alpine
|
||||
restart: unless-stopped
|
||||
depends_on:
|
||||
ch-conf:
|
||||
condition: service_completed_successfully
|
||||
ulimits:
|
||||
nproc: 65535
|
||||
nofile:
|
||||
soft: 262144
|
||||
hard: 262144
|
||||
healthcheck:
|
||||
test: ["CMD","wget","--spider","-q","0.0.0.0:8123/ping"]
|
||||
interval: 30s
|
||||
timeout: 5s
|
||||
retries: 3
|
||||
volumes:
|
||||
- clickhouse-data:/var/lib/clickhouse
|
||||
- ch-config:/etc/clickhouse-server/config.d
|
||||
|
||||
schema-migrator-sync:
|
||||
image: signoz/signoz-schema-migrator:v0.129.0
|
||||
command: ["sync","--dsn=tcp://clickhouse:9000","--cluster-name=cluster","--up="]
|
||||
depends_on:
|
||||
clickhouse:
|
||||
condition: service_healthy
|
||||
restart: "no"
|
||||
|
||||
schema-migrator-async:
|
||||
image: signoz/signoz-schema-migrator:v0.129.0
|
||||
command: ["async","--dsn=tcp://clickhouse:9000","--cluster-name=cluster","--up="]
|
||||
depends_on:
|
||||
clickhouse:
|
||||
condition: service_healthy
|
||||
schema-migrator-sync:
|
||||
condition: service_completed_successfully
|
||||
restart: unless-stopped
|
||||
|
||||
signoz:
|
||||
image: signoz/signoz:v0.92.1
|
||||
depends_on:
|
||||
clickhouse:
|
||||
condition: service_healthy
|
||||
schema-migrator-sync:
|
||||
condition: service_completed_successfully
|
||||
environment:
|
||||
- STORAGE=clickhouse
|
||||
- SIGNOZ_TELEMETRYSTORE_CLICKHOUSE_DSN=tcp://clickhouse:9000
|
||||
- SIGNOZ_ANALYTICS_ENABLED=false
|
||||
- SIGNOZ_JWT_SECRET=${SIGNOZ_JWT_SECRET}
|
||||
ports:
|
||||
- 8080
|
||||
restart: unless-stopped
|
||||
volumes:
|
||||
- signoz-data:/var/lib/signoz
|
||||
|
||||
signoz-otel-collector:
|
||||
image: signoz/signoz-otel-collector:v0.129.0
|
||||
depends_on:
|
||||
clickhouse:
|
||||
condition: service_healthy
|
||||
otel-conf:
|
||||
condition: service_completed_successfully
|
||||
schema-migrator-sync:
|
||||
condition: service_completed_successfully
|
||||
command: ["--config=/etc/otelcol/config.yaml"]
|
||||
volumes:
|
||||
- otel-config:/etc/otelcol:ro
|
||||
ports:
|
||||
- 4317
|
||||
- 4318
|
||||
restart: unless-stopped
|
||||
|
||||
volumes:
|
||||
clickhouse-data:
|
||||
ch-config:
|
||||
zookeeper-data:
|
||||
signoz-data:
|
||||
otel-config:
|
||||
5
blueprints/signoz/signoz.svg
Normal file
5
blueprints/signoz/signoz.svg
Normal file
@@ -0,0 +1,5 @@
|
||||
<svg width="800" height="240" viewBox="0 0 800 240" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M272.203 136.461L292.453 134.492C293.672 141.289 296.133 146.281 299.836 149.469C303.586 152.656 308.625 154.25 314.953 154.25C321.656 154.25 326.695 152.844 330.07 150.031C333.492 147.172 335.203 143.844 335.203 140.047C335.203 137.609 334.477 135.547 333.023 133.859C331.617 132.125 329.133 130.625 325.57 129.359C323.133 128.516 317.578 127.016 308.906 124.859C297.75 122.094 289.922 118.695 285.422 114.664C279.094 108.992 275.93 102.078 275.93 93.9219C275.93 88.6719 277.406 83.7734 280.359 79.2266C283.359 74.6328 287.648 71.1406 293.227 68.75C298.852 66.3594 305.625 65.1641 313.547 65.1641C326.484 65.1641 336.211 68 342.727 73.6719C349.289 79.3438 352.734 86.9141 353.062 96.3828L332.25 97.2969C331.359 92 329.438 88.2031 326.484 85.9062C323.578 83.5625 319.195 82.3906 313.336 82.3906C307.289 82.3906 302.555 83.6328 299.133 86.1172C296.93 87.7109 295.828 89.8438 295.828 92.5156C295.828 94.9531 296.859 97.0391 298.922 98.7734C301.547 100.977 307.922 103.273 318.047 105.664C328.172 108.055 335.648 110.539 340.477 113.117C345.352 115.648 349.148 119.141 351.867 123.594C354.633 128 356.016 133.461 356.016 139.977C356.016 145.883 354.375 151.414 351.094 156.57C347.812 161.727 343.172 165.57 337.172 168.102C331.172 170.586 323.695 171.828 314.742 171.828C301.711 171.828 291.703 168.828 284.719 162.828C277.734 156.781 273.562 147.992 272.203 136.461ZM373.383 85.2031V66.9219H393.141V85.2031H373.383ZM373.383 170V95.3281H393.141V170H373.383ZM411.633 174.922L434.203 177.664C434.578 180.289 435.445 182.094 436.805 183.078C438.68 184.484 441.633 185.188 445.664 185.188C450.82 185.188 454.688 184.414 457.266 182.867C459 181.836 460.312 180.172 461.203 177.875C461.812 176.234 462.117 173.211 462.117 168.805V157.906C456.211 165.969 448.758 170 439.758 170C429.727 170 421.781 165.758 415.922 157.273C411.328 150.57 409.031 142.227 409.031 132.242C409.031 119.727 412.031 110.164 418.031 103.555C424.078 96.9453 431.578 93.6406 440.531 93.6406C449.766 93.6406 457.383 97.6953 463.383 105.805V95.3281H481.875V162.336C481.875 171.148 481.148 177.734 479.695 182.094C478.242 186.453 476.203 189.875 473.578 192.359C470.953 194.844 467.438 196.789 463.031 198.195C458.672 199.602 453.141 200.305 446.438 200.305C433.781 200.305 424.805 198.125 419.508 193.766C414.211 189.453 411.562 183.969 411.562 177.312C411.562 176.656 411.586 175.859 411.633 174.922ZM429.281 131.117C429.281 139.039 430.805 144.852 433.852 148.555C436.945 152.211 440.742 154.039 445.242 154.039C450.07 154.039 454.148 152.164 457.477 148.414C460.805 144.617 462.469 139.016 462.469 131.609C462.469 123.875 460.875 118.133 457.688 114.383C454.5 110.633 450.469 108.758 445.594 108.758C440.859 108.758 436.945 110.609 433.852 114.312C430.805 117.969 429.281 123.57 429.281 131.117ZM501.844 170V66.9219H522.094L564.281 135.758V66.9219H583.617V170H562.734L521.18 102.781V170H501.844ZM600.984 131.609C600.984 125.047 602.602 118.695 605.836 112.555C609.07 106.414 613.641 101.727 619.547 98.4922C625.5 95.2578 632.133 93.6406 639.445 93.6406C650.742 93.6406 660 97.3203 667.219 104.68C674.438 111.992 678.047 121.25 678.047 132.453C678.047 143.75 674.391 153.125 667.078 160.578C659.812 167.984 650.648 171.688 639.586 171.688C632.742 171.688 626.203 170.141 619.969 167.047C613.781 163.953 609.07 159.43 605.836 153.477C602.602 147.477 600.984 140.188 600.984 131.609ZM621.234 132.664C621.234 140.07 622.992 145.742 626.508 149.68C630.023 153.617 634.359 155.586 639.516 155.586C644.672 155.586 648.984 153.617 652.453 149.68C655.969 145.742 657.727 140.023 657.727 132.523C657.727 125.211 655.969 119.586 652.453 115.648C648.984 111.711 644.672 109.742 639.516 109.742C634.359 109.742 630.023 111.711 626.508 115.648C622.992 119.586 621.234 125.258 621.234 132.664ZM685.641 170V154.602L713.625 122.469C718.219 117.219 721.617 113.492 723.82 111.289C721.523 111.43 718.5 111.523 714.75 111.57L688.383 111.711V95.3281H750.117V109.32L721.57 142.227L711.516 153.125C717 152.797 720.398 152.633 721.711 152.633H752.297V170H685.641Z" fill="#BDBDBD"/>
|
||||
<path opacity="0.9" d="M143.279 219.833C87.5682 219.833 43 176.12 43 121.479C43 67.3842 87.5682 23.1249 143.279 23.1249H206.231C226.844 23.1249 243 39.5172 243 59.1881V121.479C243 176.12 198.432 219.833 143.279 219.833Z" fill="#F25733"/>
|
||||
<path d="M142.492 78.9008C100.88 78.9008 77.4413 113.358 76.4637 114.825C74.0538 118.438 74.0538 123.111 76.4656 126.727C77.4413 128.191 100.88 162.649 142.492 162.649C184.103 162.649 207.543 128.191 208.52 126.724C210.93 123.111 210.93 118.438 208.518 114.823C207.543 113.358 184.103 78.9008 142.492 78.9008ZM82.2234 122.886C81.3678 121.603 81.3678 119.946 82.2234 118.663C83.0096 117.483 99.6977 92.9704 129.534 87.0903C116.014 92.3094 106.393 105.436 106.393 120.775C106.393 136.114 116.014 149.24 129.534 154.459C99.6977 148.579 83.0096 124.066 82.2234 122.886ZM125.857 120.775C125.857 122.686 124.308 124.235 122.396 124.235C120.485 124.235 118.935 122.686 118.935 120.775C118.935 107.786 129.503 97.2185 142.492 97.2185C144.403 97.2185 145.952 98.7675 145.952 100.679C145.952 102.591 144.403 104.14 142.492 104.14C133.319 104.14 125.857 111.602 125.857 120.775ZM142.492 129.188C137.853 129.188 134.078 125.414 134.078 120.775C134.078 116.136 137.853 112.361 142.492 112.361C147.132 112.361 150.906 116.135 150.906 120.775C150.906 125.414 147.132 129.188 142.492 129.188ZM202.76 122.886C201.974 124.066 185.286 148.579 155.45 154.459C168.971 149.24 178.591 136.114 178.591 120.775C178.591 105.436 168.971 92.3096 155.45 87.0905C185.286 92.9709 201.974 117.484 202.76 118.663C203.616 119.946 203.616 121.603 202.76 122.886Z" fill="#F9F2F9"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 5.6 KiB |
13
blueprints/signoz/template.toml
Normal file
13
blueprints/signoz/template.toml
Normal file
@@ -0,0 +1,13 @@
|
||||
[variables]
|
||||
main_domain = "${domain}"
|
||||
jwt_secret = "${password:64}"
|
||||
|
||||
[config]
|
||||
[[config.domains]]
|
||||
serviceName = "signoz"
|
||||
port = 8080
|
||||
host = "${main_domain}"
|
||||
path = "/"
|
||||
|
||||
[config.env]
|
||||
SIGNOZ_JWT_SECRET = "${jwt_secret}"
|
||||
21
meta.json
21
meta.json
@@ -3954,6 +3954,27 @@
|
||||
"url"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "signoz",
|
||||
"name": "SigNoz",
|
||||
"version": "v0.92.1",
|
||||
"description": "SigNoz is an open-source Datadog or New Relic alternative. Get APM, logs,traces, metrics, exceptions, & alerts in a single tool.",
|
||||
"logo": "signoz.svg",
|
||||
"links": {
|
||||
"github": "https://github.com/SigNoz/signoz",
|
||||
"website": "https://signoz.io/",
|
||||
"docs": "https://signoz.io/docs/"
|
||||
},
|
||||
"tags": [
|
||||
"monitoring",
|
||||
"observability",
|
||||
"metrics",
|
||||
"traces",
|
||||
"logs",
|
||||
"opentelemetry",
|
||||
"apm"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "slash",
|
||||
"name": "Slash",
|
||||
|
||||
Reference in New Issue
Block a user