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
"alerta heartbeats --alert" is not adding customer field to alerts that are generated #57
Comments
If you use an API key associated with a customer then the customer attribute will be filled in. |
when creating an alert the customer attribute is indeed filled in, but when using "alerta heartbeats --alert" to create alerts for timed-out heartbeats these alerts do not have the customer attribute I am using alerta/docker-alerta |
can you run the command with |
|
btw. the heartbeats page in the GUI is not showing a Customer column |
what does |
in the container nothing, with a key I created without customer:
|
You are using API key |
the heartbeats are created with etZp1bweLSMCqhGsLDG3OWp3xUHfln0y-y92LbJS but the cron job is running with a key without customer |
if I create a key with customer for the cron job it should work ? |
will try |
the new key lists the keys but doesn't find the heartbeat:
|
the heartbeats are created without customer although I use a key with customer:
|
Ok. I'll see if I can reproduce. |
I have an API key with an associated customer ...
If I send a heartbeat using this API key the customer will be sent as "null" but I'll get a customer auto-assigned and sent back in the payload...
I can use the same API key to check for heartbeats associated with that customer ...
|
Note that if I use an "admin" API Key I can see heartbeats for all customers, including those without a customer defined.
But I have just noticed that heartbeats with the same origin are overwritten if they come from different customers. |
the problem is that the customer attrib is not set when the api key is created by an admin
` |
You're right. I'll fix. Thanks for raising the issue. |
I also updated alertaclient/shell.py to add the customer attrib from the heartbeat to the alert that is created. This makes it possible to create heartbeat alerts for all customers at once. |
Ok. I'll take a look. Thanks. |
my update to shell.py was not ok, this should be. |
Fixed by #60 , alerta/alerta#361 and alerta/angular-alerta-webui#79. |
@wimfabri Thanks for the |
"alerta heartbeats --alert" should add customer from heartbeat to alert
The text was updated successfully, but these errors were encountered: