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

Alertmanager configured route metric #554

Merged

Conversation

paulfantom
Copy link
Contributor

@paulfantom paulfantom commented Nov 14, 2019

Idea is to have a metric which can be gathered by telemetry and tell us if clients use alertmanager and send notifications/alerts at all.

This will return simple binary value.

/cc @smarterclayton @simonpasquier @s-urbaniak

@openshift-ci-robot openshift-ci-robot added approved Indicates a PR has been approved by an approver from all required OWNERS files. size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Nov 14, 2019
@smarterclayton
Copy link
Contributor

This looks sufficient to test the outcome for me.

Can we add a warning alert with a 1h interval that suggests the user configure notifications? Not having notification sinks configured to me seems like it crosses the warning threshold in that without notification sinks alert manager is at best a dashboard function. If there's controversy on that, we can take it as a separate PR, otherwise I'd suggest doing it here.

@brancz @s-urbaniak @lilic opinions?

@openshift-ci-robot openshift-ci-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Nov 25, 2019
@s-urbaniak
Copy link
Contributor

@smarterclayton I guess this is a good suggestion. While we have a watchdog alert by default, it still doesn't really kick in until you have fully configured alertmanager. A concrete alert showing up in console highlighting the fact of an unconfigured monitoring stack is probably a good addition, wdyt @lilic @brancz.

Copy link
Contributor

@simonpasquier simonpasquier left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Nov 26, 2019
@smarterclayton
Copy link
Contributor

smarterclayton commented Dec 1, 2019 via email

@s-urbaniak
Copy link
Contributor

@paulfantom ping, this needs a rebase

@openshift-ci-robot openshift-ci-robot removed the lgtm Indicates that a PR is ready to be merged. label Dec 2, 2019
@paulfantom
Copy link
Contributor Author

rebased

@openshift-ci-robot openshift-ci-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Dec 2, 2019
@s-urbaniak
Copy link
Contributor

/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Dec 2, 2019
@openshift-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: paulfantom, s-urbaniak, simonpasquier

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:
  • OWNERS [paulfantom,s-urbaniak,simonpasquier]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-merge-robot openshift-merge-robot merged commit 8e56235 into openshift:master Dec 2, 2019
Copy link
Contributor

@brancz brancz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Generally happy with having a critical alert for this to indicate the importance.

@@ -356,6 +356,8 @@ spec:
label_node_hyperthread_enabled, label_node_openshift_io_os_id,label_node_role_kubernetes_io_master,label_node_role_kubernetes_io_infra)
) by (label_kubernetes_io_arch, label_node_hyperthread_enabled, label_node_openshift_io_os_id,label_node_role_kubernetes_io_master,label_node_role_kubernetes_io_infra)
record: node_role_os_version_machine:cpu_capacity_sockets:sum
- expr: clamp_max(sum(alertmanager_notifications_total),1)
record: alertmanager_routing_enabled
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This doesn’t follow naming best practices.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you think something like cluster:alertmanager_routing_enabled:max would be better?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes

@smarterclayton
Copy link
Contributor

When the alert is added can you link it to here?

/cherry-pick release-4.3

@openshift-cherrypick-robot

@smarterclayton: failed to push cherry-picked changes in GitHub: pushing failed, output: "remote: Not Found\nfatal: repository 'https://openshift-cherrypick-robot:CENSORED@github.com/openshift-cherrypick-robot/openshift/cluster-monitoring-operator/' not found\n", error: exit status 128

In response to this:

When the alert is added can you link it to here?

/cherry-pick release-4.3

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

8 participants