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

Rework smart agent elasticsearch #542

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

Gati0
Copy link
Contributor

@Gati0 Gati0 commented Jan 10, 2024

Migration of all elasticsearch detectors to generated mode with the gen_detectors module.

@@ -0,0 +1,19 @@
module: ElasticSearch
name: "cluster status"
aggregation: true
Copy link
Contributor

Choose a reason for hiding this comment

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

If you have multiple clusters, this will do the transformation on all clusters 😃

module: ElasticSearch
name: "cluster status"
aggregation: true
transformation: ".mean(over='5m')"
Copy link
Contributor

Choose a reason for hiding this comment

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

Why do a mean on 5 minutes since thresholds are strict comparison and lasting is already set ?

@@ -0,0 +1,21 @@
module: ElasticSearch
name: "cluster initializing shards"
aggregation: true
Copy link
Contributor

Choose a reason for hiding this comment

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

If you have multiple clusters, this will do the transformation on all clusters 😃

module: ElasticSearch
name: "cluster initializing shards"
aggregation: true
transformation: ".min(over='15m')"
Copy link
Contributor

Choose a reason for hiding this comment

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

Already managed by triggering rule


signals:
signal:
metric: elasticsearch.cluster.number-of-nodes
Copy link
Contributor

Choose a reason for hiding this comment

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

should use elasticsearch.process.cpu.percent because current metric is not present if clusterHealthStatsMasterOnly: true

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants