Skip to content
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

Changed the eventing of archive location of monitoring data #344

Merged
merged 1 commit into from
Feb 23, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

from tendrl.commons import flows
from tendrl.commons.flows.exceptions import FlowExecutionFailedError
from tendrl.commons.utils import event_utils
from tendrl.commons.utils import log_utils as logger
from tendrl.monitoring_integration.grafana \
import alert_utils as grafana_utils
from tendrl.monitoring_integration.graphite import graphite_utils
Expand Down Expand Up @@ -54,18 +54,15 @@ def run(self):
ex
)

# Raise a notification mentioning the archive data location
event_utils.emit_event(
'cluster_health_status',
'unmanaged',
"Cluster %s moved to un-managed state.\n"
"The archived monitoring data available at: %s" %
(integration_id, archive_path),
"cluster_%s" % integration_id,
'WARNING',
integration_id=integration_id,
cluster_name=NS.tendrl_context.cluster_name,
node_id=NS.node_context.node_id
# Log an event mentioning the archive data location
logger.log(
"info",
NS.publisher_id,
{
"message": "Cluster %s moved to un-managed state.\n"
"The archived monitoring data available at: %s" %
(integration_id, archive_path)
}
)

return True