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

config.json requests not taken #57

Open
Elamurugan-Nallathambi opened this issue May 25, 2020 · 0 comments
Open

config.json requests not taken #57

Elamurugan-Nallathambi opened this issue May 25, 2020 · 0 comments

Comments

@Elamurugan-Nallathambi
Copy link

Elamurugan-Nallathambi commented May 25, 2020

Using docker based setup and this is how I have in my Macbook pro 2019 and all three docker services working ok.

config.json

{
	"notifications": {
		"slack":{
			"channel":"#general",
			"username":"my-slack-user-name",
			"channelWebhookURL":"https://hooks.slack.com/services/1235435/4543543/5435435"
		}
	},
	"requests": [
		{
			"url": "https://serviceofmine.me",
			"requestType": "GET",
			"headers": {
				"Authorization": "Bearer ac2168444f4de69c27d6384ea2ccf61a49669be5a2fb037ccc1f"
			},
			"urlParams": {
				"name": "statusok"
			},
			"checkEvery": 1,
			"responseCode": 300,
			"responseTime": 500
		}
	]
}

docker-compose.yml

version: '2'
services:
  statusok:
#    build: sanathp/statusok
    build: ..
    volumes:
      - .:/config
    depends_on:
      - influxdb
  influxdb:
    image: tutum/influxdb:0.9
    environment:
      - PRE_CREATE_DB="statusok"
    ports:
      - 8083:8083
      - 8086:8086
  grafana:
    image: grafana/grafana
    ports:
      - 3000:3000

Since not able to pull sanathp/statusok image I used available dockerfile.

This does posts message to slack channel but its always sending only test notification and not the actual service error notice.

I am missing some step, can you please point me in right direction

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant