Skip to content

error extracting command arguments for environment: couldn't retrieve argument for {Source:payload Name:alerts[0].status #726

Description

@yurenchen000
error extracting command arguments: couldn't retrieve argument for {Source:payload Name:ruleName EnvName: Base64Decode:false}
error extracting command arguments for environment: couldn't retrieve argument for {Source:payload Name:alerts[0].status EnvName:status Base64Decode:false}
error extracting command arguments for environment: couldn't retrieve argument for {Source:payload Name:alerts[].labels.alertname EnvName:alertname Base64Decode:false}

seems all argument with array [] are failed



the full request log:

> [a0ea1e] POST /hooks/grafana HTTP/1.1
> [a0ea1e] Host: jk4:7001
> [a0ea1e] Accept-Encoding: gzip
> [a0ea1e] Content-Length: 1206
> [a0ea1e] Content-Type: application/json
> [a0ea1e] User-Agent: Grafana
> [a0ea1e] 
> [a0ea1e] {"receiver":"test","status":"firing","alerts":[{"status":"firing","labels":{"alertname":"TestAlert","instance":"Grafana"},"annotations":{"summary":"Notification test"},"startsAt":"2025-04-04T17:33:47.70415858Z","endsAt":"0001-01-01T00:00:00Z","generatorURL":"","fingerprint":"57c6d9296de2ad39","silenceURL":"http://localhost:3000/alerting/silence/new?alertmanager=grafana\u0026matcher=alertname%3DTestAlert\u0026matcher=instance%3DGrafana","dashboardURL":"","panelURL":"","values":null,"valueString":"[ metric='foo' labels={instance=bar} value=10 ]"}],"groupLabels":{"alertname":"TestAlert","instance":"Grafana"},"commonLabels":{"alertname":"TestAlert","instance":"Grafana"},"commonAnnotations":{"summary":"Notification test"},"externalURL":"http://localhost:3000/","version":"1","groupKey":"test-57c6d9296de2ad39-1743788027","truncatedAlerts":0,"orgId":1,"title":"[FIRING:1] TestAlert Grafana ","state":"alerting","message":"**Firing**\n\nValue: [no value]\nLabels:\n - alertname = TestAlert\n - instance = Grafana\nAnnotations:\n - summary = Notification test\nSilence: http://localhost:3000/alerting/silence/new?alertmanager=grafana\u0026matcher=alertname%3DTestAlert\u0026matcher=instance%3DGrafana\n"}
[webhook] 2025/04/05 01:33:47 [a0ea1e] incoming HTTP POST request from 192.168.5.3:51102
[webhook] 2025/04/05 01:33:47 [a0ea1e] grafana got matched
[webhook] 2025/04/05 01:33:47 [a0ea1e] grafana hook triggered successfully
[webhook] 2025/04/05 01:33:47 [a0ea1e] error extracting command arguments: couldn't retrieve argument for {Source:payload Name:ruleName EnvName: Base64Decode:false}
[webhook] 2025/04/05 01:33:47 [a0ea1e] error extracting command arguments for environment: couldn't retrieve argument for {Source:payload Name:alerts[0].status EnvName:status Base64Decode:false}
[webhook] 2025/04/05 01:33:47 [a0ea1e] error extracting command arguments for environment: couldn't retrieve argument for {Source:payload Name:alerts[].labels.alertname EnvName:alertname Base64Decode:false}
[webhook] 2025/04/05 01:33:47 [a0ea1e] error extracting command arguments for environment: couldn't retrieve argument for {Source:payload Name:alerts[].annotations.summary EnvName:summary Base64Decode:false}
[webhook] 2025/04/05 01:33:47 [a0ea1e] error extracting command arguments for environment: couldn't retrieve argument for {Source:payload Name:alerts[].labels.grafana_folder EnvName:grafana_folder Base64Decode:false}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions