Ad Widget

Collapse

Configuring Triggers for ArgoCD

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • bartdb
    Junior Member
    • Oct 2023
    • 10

    #1

    Configuring Triggers for ArgoCD

    Hey folks,

    I've configured an ArgoCD template and now I'm trying to setup triggers for that. I can only setup a trigger for sync status individually per application, but I want to make that a variable to check it for every host.

    This expression works: last(/Argo CD Application/argocd.applications.sync[random-application-name])="OutOfSync"

    This doesn't work: last(/Argo CD Application/argocd.applications.sync[{#NAME}])="OutOfSync"

    error: Incorrect item key "argocd.applications.sync[{#NAME}]" provided for trigger expression on "Argo CD Application".​

    What am I missing / doing wrong?

    These are my LLD Macro's in my discovery for application sync status:

    Click image for larger version

Name:	image.png
Views:	287
Size:	15.8 KB
ID:	474796

    ​Anyone knows how to set these up?
  • bartdb
    Junior Member
    • Oct 2023
    • 10

    #2
    Ok, managed to solve it! I had to create item prototypes in my discovery rules in my template.

    Comment

    Working...