# Grafana sms notification using webhooks and AWS

**URL:** <https://forums.balena.io/t/grafana-sms-notification-using-webhooks-and-aws/349362>\
**Category:** balenaSense\
**Created:** [September 21, 2021, 5:38am UTC](https://forums.balena.io/t/grafana-sms-notification-using-webhooks-and-aws/349362 "2021-09-21T05:38:23Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ausyp](https://avatars.discourse-cdn.com/v4/letter/a/dbc845/32.png) [@Ausyp](https://forums.balena.io/u/Ausyp)\
**Post date:** [September 21, 2021, 5:38am UTC](https://forums.balena.io/t/grafana-sms-notification-using-webhooks-and-aws/349362/1 "2021-09-21T05:38:23Z")

</div>

Hi

I am trying to build an SMS notification service to use with grafana to send sms alerts.  
It is based of this article [SMS Alerts in Grafana using a Custom Webhook and AWS SNS | Medium](https://sean-bradley.medium.com/create-sms-alert-channel-using-a-custom-webhook-and-aws-sns-27e03d55524b).

The configuration I used : [https://github.com/ausyp/Balena\_sms](https://github.com/ausyp/Balena_sms)

I was able to spin up the container and get it working.

 ![Screen Shot 2021-09-21 at 15.16.56](https://global.discourse-cdn.com/balena/original/2X/0/0a82157145b6a2e8c93f05820919104005999aa8.png)

When trying to setup notification on grafana the test is failing.

 ![Screen Shot 2021-09-21 at 15.28.20](https://global.discourse-cdn.com/balena/original/2X/f/f24c3964abf693ba819b7c0a89fe2679d62167d9.png)

I have tried using localhost but no use.

As way to test the python script used (not.py) I tried running the script in the same container as grafana on port 5000 and the notification sms is succesfull. So the script must be okay.

this is my docker-compse

```auto
version: '2'
volumes:
    sense-data:
services:
  influxdb:
    restart: always
    build: ./influxdb
    volumes:
      - 'sense-data:/data'
  grafana:
    restart: always
    build: ./grafana
    ports:
      - "80"
    volumes:
      - 'sense-data:/data'
    environment:
        - 'HOME_DASHBOARD_UID=balenaSense'
        - 'GF_PATHS_DATA=/data/grafana'
        - 'GF_SERVER_HTTP_PORT=80'
        - 'GF_SESSION_PROVIDER=memory'
        - 'GF_AUTH_ANONYMOUS_ENABLED=true'
  sensor:
    build: ./sensor
    privileged: true
    restart: always
    volumes:
      - 'sense-data:/data'

  sms:
    build: ./sms
    restart: always

```

Does anyone have any suggession or ideas what I might be doing wrong ?  
Any help appriciated.

---

<div class="post-metadata">

**Author:** ![Ausyp](https://avatars.discourse-cdn.com/v4/letter/a/dbc845/32.png) [@Ausyp](https://forums.balena.io/u/Ausyp)\
**Post date:** [September 21, 2021, 6:17am UTC](https://forums.balena.io/t/grafana-sms-notification-using-webhooks-and-aws/349362/2 "2021-09-21T06:17:07Z")

</div>

Never mind Figured it out. use

```auto
  sms:
    build: ./sms
    restart: always
    hostname: sms

```

---

<div class="post-metadata">

**Author:** ![mpous](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/mpous/32/4742_2.png) [@mpous](https://forums.balena.io/u/mpous)\
**Post date:** [September 21, 2021, 8:42am UTC](https://forums.balena.io/t/grafana-sms-notification-using-webhooks-and-aws/349362/3 "2021-09-21T08:42:51Z")

</div>

Super cool project @Ausyp

Tell us more on the [Show & Tell](https://forums.balena.io/c/show-and-tell/92) category why are you using Grafana + SMS alerts on your IoT Edge project.

Looking forward to learn more about it.

---

<div class="post-metadata">

**Author:** ![Ausyp](https://avatars.discourse-cdn.com/v4/letter/a/dbc845/32.png) [@Ausyp](https://forums.balena.io/u/Ausyp)\
**Post date:** [September 22, 2021, 8:03am UTC](https://forums.balena.io/t/grafana-sms-notification-using-webhooks-and-aws/349362/5 "2021-09-22T08:03:38Z")

</div>

So I am building temperature monitoring device for vaccine fridges. The main Idea being to be able to intervene before a temperature breach and prevent vaccine wastage. Thats why SMS notification is needed.

---

<div class="post-metadata">

**Author:** ![mpous](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/mpous/32/4742_2.png) [@mpous](https://forums.balena.io/u/mpous)\
**Post date:** [October 18, 2021, 11:48am UTC](https://forums.balena.io/t/grafana-sms-notification-using-webhooks-and-aws/349362/7 "2021-10-18T11:48:43Z")

</div>

Hello @Ausyp did you solve your issues on your project?

---

<div class="post-metadata">

**Author:** ![mpous](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/mpous/32/4742_2.png) [@mpous](https://forums.balena.io/u/mpous)\
**Post date:** [October 25, 2021, 9:30am UTC](https://forums.balena.io/t/grafana-sms-notification-using-webhooks-and-aws/349362/9 "2021-10-25T09:30:08Z")

</div>

Hey! is everything running good now?

---

<div class="post-metadata">

**Author:** ![Ausyp](https://avatars.discourse-cdn.com/v4/letter/a/dbc845/32.png) [@Ausyp](https://forums.balena.io/u/Ausyp)\
**Post date:** [October 25, 2021, 9:41am UTC](https://forums.balena.io/t/grafana-sms-notification-using-webhooks-and-aws/349362/11 "2021-10-25T09:41:43Z")

</div>

I have been away for a while. Everything is going good thanks for checking. thanks for all your help. 🙂

---

<div class="post-metadata">

**Author:** ![mpous](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/mpous/32/4742_2.png) [@mpous](https://forums.balena.io/u/mpous)\
**Post date:** [October 25, 2021, 10:06am UTC](https://forums.balena.io/t/grafana-sms-notification-using-webhooks-and-aws/349362/12 "2021-10-25T10:06:39Z")

</div>

Good to hear that the wproject works now @Ausyp

Let us know how more we can help you!
