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

DRAFT: Signoz feature #814

Open
wants to merge 2 commits into
base: version-2
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
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
61 changes: 38 additions & 23 deletions docker/docker-compose.yml
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -180,25 +180,6 @@ services:
- testing
networks:
- VE-network

# vachan-demos:
# image: kavitha3797/vachan-demos:v2-0-0-alpha-11
# expose:
# - 8002
# command: uvicorn main:app --host 0.0.0.0 --port 8002
# restart: always
# environment:
# - VACHAN_DOMAIN=${VACHAN_DOMAIN:-api.vachanengine.org}
# - VACHAN_LOGGING_LEVEL=INFO
# volumes:
# - logs-vol:/app/logs
# depends_on:
# - vachan-api
# profiles:
# - local-run
# - deployment
# networks:
# - VE-network

vachan-cms-rest:
image: vachanengine/vachan-cms-rest:v2.0.7
Expand Down Expand Up @@ -344,7 +325,6 @@ services:
networks:
- VE-network


vachan-ai:
image: jayasankarkk/vachan-ai:0.0.0-alpha.6
healthcheck:
Expand Down Expand Up @@ -407,7 +387,6 @@ services:
- VE-network
container_name: vachan-ai


worker:
image: jayasankarkk/vachan-ai:0.0.0-alpha.6
healthcheck:
Expand Down Expand Up @@ -444,7 +423,6 @@ services:
- VE-network
container_name: redis-worker


# Web Server
web-server-local:
image: nginx:latest
Expand Down Expand Up @@ -496,7 +474,6 @@ services:
networks:
- VE-network


ofelia-scheduler:
image: mcuadros/ofelia:v0.3.7
depends_on:
Expand Down Expand Up @@ -578,6 +555,44 @@ services:
networks:
- VE-network

# SigNoz services (copied from signoz/deploy/docker-compose.yaml, networks section removed)
clickhouse:
image: clickhouse/clickhouse-server:24.1.2-alpine
container_name: signoz-clickhouse
volumes:
- ./signoz/data/clickhouse:/var/lib/clickhouse
- ./signoz/clickhouse-config.xml:/etc/clickhouse-server/config.xml:ro
- ./signoz/clickhouse-config.xml:/etc/clickhouse-server/config.xml
- ./signoz/clickhouse-users.xml:/etc/clickhouse-server/users.xml
- ./signoz/custom-function.xml:/etc/clickhouse-server/custom-function.xml
- ./signoz/user_scripts:/var/lib/clickhouse/user_scripts/
ports:
- "9000:9000" # Adjust if needed to avoid conflicts

alertmanager:
image: signoz/alertmanager:${ALERTMANAGER_TAG:-0.23.5} # Adjust version if needed
container_name: signoz-alertmanager
volumes:
- ./signoz/alertmanager.yml:/prometheus/alertmanager.yml:ro # Adjust path if needed
command:
- '--config.file=/prometheus/alertmanager.yml'
- '--storage.path=/data'
ports:
- "9093:9093" # Adjust if needed

query-service:
image: signoz/query-service:${DOCKER_TAG:-0.39.0} # Adjust version if needed
command:
- "-config=/root/config/prometheus.yml"
ports:
- "8080:8080" # Adjust if needed
volumes:
- ./signoz/prometheus.yml:/root/config/prometheus.yml:ro # Adjust path if needed
- ../dashboards:/root/config/dashboards:ro # Adjust path if needed
- ./signoz/data/signoz/:/var/lib/signoz/
depends_on:
- clickhouse

networks:
VE-network:

Expand Down
35 changes: 35 additions & 0 deletions docker/signoz/alertmanager.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
global:
resolve_timeout: 1m
slack_api_url: 'https://hooks.slack.com/services/xxx'

route:
receiver: 'slack-notifications'

receivers:
- name: 'slack-notifications'
slack_configs:
- channel: '#alerts'
send_resolved: true
icon_url: https://avatars3.githubusercontent.com/u/3380462
title: |-
[{{ .Status | toUpper }}{{ if eq .Status "firing" }}:{{ .Alerts.Firing | len }}{{ end }}] {{ .CommonLabels.alertname }} for {{ .CommonLabels.job }}
{{- if gt (len .CommonLabels) (len .GroupLabels) -}}
{{" "}}(
{{- with .CommonLabels.Remove .GroupLabels.Names }}
{{- range $index, $label := .SortedPairs -}}
{{ if $index }}, {{ end }}
{{- $label.Name }}="{{ $label.Value -}}"
{{- end }}
{{- end -}}
)
{{- end }}
text: >-
{{ range .Alerts -}}
*Alert:* {{ .Annotations.title }}{{ if .Labels.severity }} - `{{ .Labels.severity }}`{{ end }}

*Description:* {{ .Annotations.description }}

*Details:*
{{ range .Labels.SortedPairs }} • *{{ .Name }}:* `{{ .Value }}`
{{ end }}
{{ end }}
11 changes: 11 additions & 0 deletions docker/signoz/alerts.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
groups:
- name: ExampleCPULoadGroup
rules:
- alert: HighCpuLoad
expr: system_cpu_load_average_1m > 0.1
for: 0m
labels:
severity: warning
annotations:
summary: High CPU load
description: "CPU load is > 0.1\n VALUE = {{ $value }}\n LABELS = {{ $labels }}"
Loading
Loading