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

[BUG] Alerts in prometheus triggered from Cloud Watch metrics from YACE hangs in state PENDING, never gets to FIRING #1581

Open
1 task done
truskare opened this issue Nov 25, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@truskare
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

YACE version

0.43.0

Config file

No response

Current Behavior

Alerts in prometheus using cloud watch metrics from YACE never gets to FIRING state, always stuck in PENDING. I think this is because some cloudwatch metrics is not updated so often in AWS (around every 5 minutes) so prometheus treats the metrics/data as stale when evaluating the alerts.

Anyone else having this issue?

Expected Behavior

Alerts should get to FIRING state.

Steps To Reproduce

No response

Anything else?

No response

@truskare truskare added the bug Something isn't working label Nov 25, 2024
@tyagian
Copy link

tyagian commented Jan 14, 2025

No. I never had such issue.
It can be issue with tool used to fire the alert.
Alert stay in PENDING for a time period before firing. The time period depends on the alertmanager alert rule.

For example:


groups:
  - name: example-alert-rules
    rules:
      - alert: HighMemoryUsage
        expr: node_memory_Active_bytes > 0.9 * node_memory_MemTotal_bytes
        for: 5m
        labels:
          severity: warning
        annotations:
          summary: "High memory usage detected"

In this case, alertmanager will check the alert condition matching for 5m. After that it will fire the alert.
You can understand based on that, it has nothing to do with YACE exporter.
Role of YACE is just to send metrics. You should run promql query in prometheus to check if Prometheus getting the metrics.

@tyagian
Copy link

tyagian commented Jan 14, 2025

@truskare If you understand the workflow, we can close this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants