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

Add CRD-based alert mapping #87

Open
bzurkowski opened this issue May 31, 2020 · 0 comments
Open

Add CRD-based alert mapping #87

bzurkowski opened this issue May 31, 2020 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@bzurkowski
Copy link
Member

Alert mappings could be organized into CRDs (Custom Resource Definition) manifests, e.g.::

api: ingestion.openrca.io/v1alpha1
kind: AlertMapping
metadata:
  name: zabbix-hosts
spec:
  source: zabbix
  mappings:
    - name: "XXX"
      source_mapping:
        origin: kubernetes
        kind: node
        properties:
           name: host
    - name: "YYY"
      source_mapping:
        origin: kubernetes
        kind: node
        properties:
           name: host          

Mappings could be organized into categories (nodes, kube-state, etc.):

api: ingestion.openrca.io/v1alpha1
kind: AlertMapping
metadata:
  name: prometheus-nodes
spec:
  source: proemtheus
  mappings:
    - name: "XXX"
      source_mapping:
        origin: kubernetes
        kind: node
        properties:
           name: node
    - name: "YYY"
      source_mapping:
        origin: kubernetes
        kind: node
        properties:
           name: node          
api: ingestion.openrca.io/v1alpha1
kind: AlertMapping
metadata:
  name: prometheus-kube-state
spec:
  source: proemtheus
  mappings:
    - name: "XXX"
      source_mapping:
        origin: kubernetes
        kind: pod
        properties:
           name: pod
    - name: "YYY"
      source_mapping:
        origin: kubernetes
        kind: deployment
        properties:
           name: deployment          
@bzurkowski bzurkowski added the enhancement New feature or request label May 31, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants