Skip to content

akram/prometheus-file-webhook

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A Simple HTTP Server to act as http webhook for prometheus

A nodejs server running on port 8080 wwhich writes body received in HTTP to local ./logs directory

This was used to write alerts on file for later use.

Build and run in openshift

oc project monitoring
oc new-build  openshift/nodejs~https://github.com/akram/prometheus-file-webhook.git --name=file-webhook
oc new-app file-webhook
oc volume --add dc/file-webhook -t pvc --name=alerts --type=persistentVolumeClaim \
          --claim-name=alerts --claim-size='1Gi' --mount-path=/opt/app-root/src/logs

Configure alertmanager

Use this config map for alertmanager

global:
  resolve_timeout: 5m

route:
  group_by: ['alertname']
  group_wait: 10s
  group_interval: 10s
  repeat_interval: 1h
  receiver: 'web.hook'
receivers:
- name: 'web.hook'
  webhook_configs:
  - url: 'http://file-webhook.monitoring.svc.cluster.local:8080/'
  

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published