Hi folk, We are trying to setup Email Alerting wi...
# support
n
Hi folk, We are trying to setup Email Alerting with SMTP configuration Mentioned as in below doc. https://signoz.io/docs/alerts-management/notification-channel/email/#configuring-alertmanager We are getting below Error During the setup. "level=error ts=2024-05-15T144342.032Z caller=api.go:808 component=api version=v1 msg="API error" err="server_error: invalid receiver type" can you please guide us here. cc: @Patel Bhavesh77, @shashank.jain@einfochips.com
e
I’ve been struggling with the Email setup for a couple of days now see my chat here https://signoz-community.slack.com/archives/C01HWQ1R0BC/p1715502118961299?thread_ts=1714979708.880799&cid=C01HWQ1R0BC
1
@Navneet Mishra try port 587, not 465. That fixed it for us
b
@Eugene Evenwel: Yes, we have tried with 587. But, it's didn't work.
n
hi folk any further suggestion ? @Prashant Shahi any input here ?
p
@Bhavesh Patel @Navneet Mishra We have added docs on how to set up SMTP configuration for email alert channel. https://signoz.io/docs/alerts-management/notification-channel/email/#configuring-alertmanager
Do let us know if you still face any issues
l
Good afternoon, I have the same issue reported here. What I have observed is that the test request for both creating the alert channel and testing the alert notification makes a POST request to http://localhost:xxxx/api/v1/testChannel, which results in a 500 (Internal Server Error), making it impossible to pre-validate the configuration. Excluding the test for creating the channel and focusing on the creation of the alert, the logs from the alertmanager pod indicate the following: caller=email.go:78 integration=email msg="smtp_auth_username is not configured. Attempting to send email without authenticating" It should be noted that the environment variables were configured according to the documentation, and port 587 is being used.
p
@Laura Andrea Navas Diez which version of signoz are you using? Also, are you on Docker or Kubernetes?
If it is K8s, make sure to upgrade to latest release:
Copy code
helm repo update signoz

helm upgrade ...
l
it's kubernetes, version: '0.44.0'
p
helm chart version?
can you upgrade to latest chart
signoz-0.42.1
?
l
chart version: 0.42.0 app version: 0.46.0 eks version: 1.29 Do you know if version 0.42.1 fixes the issue or is it just to rule out version-related problems?
p
0.42.1
has the fixes for the testing the email alert.
In
0.42.0
, email alerts should work. But the
test
functionality doesn't work properly.
n
ok thanks for your input let us check with 0.42.1
l
Thank you for your contributions! I solved the problem by upgrading to version 0.43.0 of SigNoz and also updated the Alertmanager image version to docker.io/signoz/alertmanager:0.23.5.
2
s
Hi Team, I am u sing version 0.45.3, still facing issue sending the mail invite. If we use port 587 below error is thrown, when used 465, no error is printed. Any suggestions?
Copy code
"level":"ERROR","timestamp":"2024-07-17T12:08:53.301Z","caller":"auth/auth.go:134","msg":"failed to send email","error":"530 Authentication required","stacktrace":"<http://go.signoz.io/signoz/pkg/query-service/auth.inviteEmail|go.signoz.io/signoz/pkg/query-service/auth.inviteEmail>\n\t/home/runner/work/signoz/signoz/pkg/query-service/auth/auth.go:134\ngo.signoz.io/signoz/pkg/query-service/auth.Invite\n\t/home/runner/work/signoz/signoz/pkg/query-service/auth/auth.go:101\ngo.signoz.io/signoz/pkg/query-service/app.(*APIHandler).inviteUser\n\t/home/runner/work/signoz/signoz/pkg/query-service/app/http_handler.go:1676\ngo.signoz.io/signoz/pkg/query-service/app.(*APIHandler).RegisterRoutes.(*AuthMiddleware).AdminAccess.func66\n\t/home/runner/work/signoz/signoz/pkg/query-service/app/auth.go:120\nnet/http.HandlerFunc.ServeHTTP\n\t/opt/hostedtoolcache/go/1.21.11/x64/src/net/http/server.go:2136\ngo.signoz.io/signoz/ee/query-service/app.loggingMiddleware.func1\n\t/home/runner/work/signoz/signoz/ee/query-service/app/server.go:379\nnet/http.HandlerFunc.ServeHTTP\n\t/opt/hostedtoolcache/go/1.21.11/x64/src/net/http/server.go:2136\ngo.signoz.io/signoz/ee/query-service/app.(*Server).analyticsMiddleware-fm.(*Server).analyticsMiddleware.func1\n\t/home/runner/work/signoz/signoz/ee/query-service/app/server.go:534\nnet/http.HandlerFunc.ServeHTTP\n\t/opt/hostedtoolcache/go/1.21.11/x64/src/net/http/server.go:2136\ngo.signoz.io/signoz/ee/query-service/app.setTimeoutMiddleware.func1\n\t/home/runner/work/signoz/signoz/ee/query-service/app/server.go:565\nnet/http.HandlerFunc.ServeHTTP\n\t/opt/hostedtoolcache/go/1.21.11/x64/src/net/http/server.go:2136\ngo.signoz.io/signoz/pkg/query-service/app.LogCommentEnricher.func1\n\t/home/runner/work/signoz/signoz/pkg/query-service/app/server.go:360\nnet/http.HandlerFunc.ServeHTTP\n\t/opt/hostedtoolcache/go/1.21.11/x64/src/net/http/server.go:2136\ngithub.com/gorilla/mux.(*Router).ServeHTTP\n\t/home/runner/go/pkg/mod/github.com/gorilla/mux@v1.8.1/mux.go:212\ngo.signoz.io/signoz/ee/query-service/app.(*Server).createPublicServer.(*Cors).Handler.func2\n\t/home/runner/go/pkg/mod/github.com/rs/cors@v1.11.0/cors.go:289\nnet/http.HandlerFunc.ServeHTTP\n\t/opt/hostedtoolcache/go/1.21.11/x64/src/net/http/server.go:2136\ngo.signoz.io/signoz/ee/query-service/app.(*Server).createPublicServer.CompressHandler.CompressHandlerLevel.func3\n\t/home/runner/go/pkg/mod/github.com/gorilla/handlers@v1.5.1/compress.go:141\nnet/http.HandlerFunc.ServeHTTP\n\t/opt/hostedtoolcache/go/1.21.11/x64/src/net/http/server.go:2136\nnet/http.serverHandler.ServeHTTP\n\t/opt/hostedtoolcache/go/1.21.11/x64/src/net/http/server.go:2938\nnet/http.(*conn).serve\n\t/opt/hostedtoolcache/go/1.21.11/x64/src/net/http/server.go:2009"}
i
Where I have to place???
Copy code
- name: ALERTMANAGER_SMTP_FROM
              value: <>
            - name: ALERTMANAGER_SMTP_HOST
              value: <>
            - name: ALERTMANAGER_SMTP_PORT
              value: <>
            - name: ALERTMANAGER_SMTP_AUTH_USERNAME
              value: <>
            - name: ALERTMANAGER_SMTP_AUTH_PASSWORD
              valueFrom:
                secretKeyRef:
                  name: email-mdp
                  key: SMTP_AUTH_PASSWORD
@Prashant Shahi
250 Views