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
First off, thank you for Huginn. I've tried using it for several years and never had a good use case for it, but it's been on my radar for a long time. The fact that it's still here is a testament to the product and to the team!
I have an EventFormattingAgent that's taking input from a WebsiteAgent. I'd like the resulting output of the EventFormattingAgent to have keys that are based on an item in the input - in short, I'm trying to use EventFormattingAgent to format the events such that they could be put in to prometheus. However, Huginn doesn't seem to apply liquid templating to the keys of the options, only to the values. When I dry run the agent, I get the unmodified version of the keys as shown below.
Am I doing something wrong? Is there a better way to get what I want?
EventFormattingAgent options
{
"instructions": {
"action{{ prom_gauge_group_start }}{{gauge}}{{ prom_gauge_group_end }}": "{{ action }}",
"bankfull{% raw %}{{gauge=\"{% endraw %}{{gauge}}{% raw %}}}{%endraw%}": "{{ bankfull }}",
"flood{% raw %}{{gauge=\"{% endraw %}{{gauge}}{% raw %}}}{%endraw%}": "{{ flood }}",
"moderate{% raw %}{{gauge=\"{% endraw %}{{gauge}}{% raw %}}}{%endraw%}": "{{ moderate }}",
"major{% raw %}{{gauge=\"{% endraw %}{{gauge}}{% raw %}}}{%endraw%}": "{{ major }}",
"record{% raw %}{{gauge=\"{% endraw %}{{gauge}}{% raw %}}}{%endraw%}": "{{ record }}",
"forecast{% raw %}{{gauge=\"{% endraw %}{{gauge}}{% raw %}}}{%endraw%}": "{{ forecast }}"
},
"mode": "clean"
}
[
{
"action{{ prom_gauge_group_start }}{{gauge}}{{ prom_gauge_group_end }}": "21",
"bankfull{% raw %}{{gauge=\"{% endraw %}{{gauge}}{% raw %}}}{%endraw%}": "20",
"flood{% raw %}{{gauge=\"{% endraw %}{{gauge}}{% raw %}}}{%endraw%}": "23",
"moderate{% raw %}{{gauge=\"{% endraw %}{{gauge}}{% raw %}}}{%endraw%}": "30",
"major{% raw %}{{gauge=\"{% endraw %}{{gauge}}{% raw %}}}{%endraw%}": "38",
"record{% raw %}{{gauge=\"{% endraw %}{{gauge}}{% raw %}}}{%endraw%}": "5215",
"forecast{% raw %}{{gauge=\"{% endraw %}{{gauge}}{% raw %}}}{%endraw%}": "1250"
}
]
The text was updated successfully, but these errors were encountered:
First off, thank you for Huginn. I've tried using it for several years and never had a good use case for it, but it's been on my radar for a long time. The fact that it's still here is a testament to the product and to the team!
I have an
EventFormattingAgent
that's taking input from aWebsiteAgent
. I'd like the resulting output of theEventFormattingAgent
to have keys that are based on an item in the input - in short, I'm trying to use EventFormattingAgent to format the events such that they could be put in to prometheus. However, Huginn doesn't seem to apply liquid templating to the keys of the options, only to the values. When I dry run the agent, I get the unmodified version of the keys as shown below.Am I doing something wrong? Is there a better way to get what I want?
EventFormattingAgent options
Incoming data
Dry run results
The text was updated successfully, but these errors were encountered: