Need to update rules

Open
#40 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
25/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Stale
Tech stack
prometheus
Domain
observability

Research direction

Locate the configuration containing the replace_expr rules and inspect how existing monitoring rules are defined and validated. Review the three named rules and their PromQL expressions, then determine the expected updated configuration; done means the requested rules are updated and any available rule validation passes.

Written by the indexing model from the issue text.

Description

replace_expr:
- rule_name: "pd_cluster_low_space"
expr: '(sum(pd_cluster_status{type="store_low_space_count"}) by (instance) > 0) and (sum(etcd_server_is_leader) by (instance) > 0)'
- rule_name: "pd_cluster_lost_connect_tikv_nums"
expr: '(sum ( pd_cluster_status{type="store_disconnected_count"} ) by (instance) > 0) and (sum(etcd_server_is_leader) by (instance) > 0)'
- rule_name: "pd_pending_peer_region_count"
expr: '(sum( pd_regions_status{type="pending_peer_region_count"} ) by (instance) > 100) and (sum(etcd_server_is_leader) by (instance) > 0)'

Dominant language
Go
Stars
29
Forks
46
Avg merge
8h 3m
Merged PRs (30d)
62

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from pingcap/monitoring

All issues in pingcap/monitoring

Similar issues

More Go issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.