Skip to content

pkbhowmick/alert-manager-dashboard-setup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

alert-manager-dashboard-setup

Run Docker image locally:

docker run -p 8080:8080 --net=host -e ALERTMANAGER_URI=http://localhost:9093 ghcr.io/prymitive/karma:latest

To Run in Kubernetes

Change the --alertmanager.uri flag with your alertmanager address before applying the manifest file.

kubectl apply -f mainfest.yaml

To run Alert Dashboard in Kubernetes using ConfigMap to setup multiple AlertManager server(cluster):

kubectl apply -f deploy-with-config-file.yaml

Elasticsearch Alert for logs

helm repo add elastalert2 https://jertel.github.io/elastalert2/
helm install elastalert2 elastalert2/elastalert2 -n demo --values=values.yaml

Sample rules part of values file in the above helm chart:

rules:
  example_es_rule_flatline.yaml: |-
    ---
    es_host: es-quickstart.demo.svc
    es_port: 9200
    name: Example rule flatline
    index: my-index-000001
    type: flatline
    timestamp_field: "@timestamp"
    timestamp_type: "iso"
    threshold: 1000
    timeframe:
      minutes: 1
    filter:
    - query:
        query_string:
          query: "@timestamp:*"
    alert:
    - "alertmanager"
    alertmanager_hosts:
    - "http://prometheus-kube-prometheus-alertmanager.monitoring.svc:9093"
    alertmanager_alertname: "Title test"
    alertmanager_annotations:
      runbook_url: https://runbooks.prometheus-operator.dev/runbooks/general/targetdown
    alertmanager_labels:
      source: "elastalert"
      severity: "critical"
    alertmanager_fields:
      msg: "message"
      log: "@log_name"

Resources

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published