You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The goal is this: go to the url with a whip and take information from it, then transfer this information to the alert. So that when a letter arrived that something was broken, it was immediately written what exactly (and what exactly broke was written in the check).
Check looks very simple:
{
"status": "OK",
"description": "All good",
"sql": null
}
I need to get the description. As a result, I made such a config, focusing on examples:
json_exporter | ts=2023-06-22T11:12:38.760Z caller=collector.go:136 level=error msg="Failed to execute jsonpath" err="description is not found" path={.description} data="\"All good\""
json_exporter | ts=2023-06-22T11:12:38.761Z caller=collector.go:88 level=error msg="Failed to extract value for metric" path={.description} err="description is not found" metric="Desc{fqName: \"jsonhc_description\", help: \"healthcheks description\", constLabels: {}, variableLabels: [env]}"
The data I get is correct, but I can't take it for an alert. When I check the curl for targets, it's not there.
#curl http://localhost:7979/probe
Target parameter is missing
I've tried different variants of the "path" variable (such as '$.*' and '{ [*] }') but it doesn't work. Please help me figure it out is this a bug or am I doing something wrong?
The text was updated successfully, but these errors were encountered:
Hi all!
How to fix the error "Failed to execute jsonpath"
The goal is this: go to the url with a whip and take information from it, then transfer this information to the alert. So that when a letter arrived that something was broken, it was immediately written what exactly (and what exactly broke was written in the check).
Check looks very simple:
I need to get the description. As a result, I made such a config, focusing on examples:
The answer I get is this:
The data I get is correct, but I can't take it for an alert. When I check the curl for targets, it's not there.
I've tried different variants of the "path" variable (such as
'$.*' and '{ [*] }'
) but it doesn't work. Please help me figure it out is this a bug or am I doing something wrong?The text was updated successfully, but these errors were encountered: