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

Add broken index count metrics #2083

Merged
merged 8 commits into from
Jun 26, 2023
Merged

Conversation

ykadowak
Copy link
Contributor

@ykadowak ykadowak commented Jun 21, 2023

Description:

This PR makes it possible to get the number of broken indexes as a metric.
To check it's working, deployed vald to the local k3d with the settings of dev-broken-index-backup.yaml, and confirmed that the corresponding metric is correctly displayed on Grafana with the settings of 01-vald-agent.yaml.

Related Issue:

Versions:

  • Go Version: 1.20.3
  • Docker Version: 20.10.8
  • Kubernetes Version: 1.22.0
  • NGT Version: 2.0.11

Checklist:

Special notes for your reviewer:

@vdaas-ci
Copy link
Collaborator

[CHATOPS:HELP] ChatOps commands.

  • 🙆‍♀️ /approve - approve
  • 💌 /changelog - replace the PR body by changelog details
  • 🍱 /format - format codes and add licenses
  • /gen-test - generate test codes
  • 🏷️ /label - add labels
  • /rebase - rebase main
  • 🔚 2️⃣ 🔚 /label actions/e2e-deploy - run E2E deploy & integration test

@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Jun 21, 2023

Deploying with  Cloudflare Pages  Cloudflare Pages

Latest commit: 2710d88
Status: ✅  Deploy successful!
Preview URL: https://4254651d.vald.pages.dev
Branch Preview URL: https://feature-agent-broken-index-m.vald.pages.dev

View logs

@codecov
Copy link

codecov bot commented Jun 21, 2023

Codecov Report

Patch coverage: 9.55% and project coverage change: -0.02 ⚠️

Comparison is base (85ad070) 29.94% compared to head (35ff84d) 29.92%.

❗ Current head 35ff84d differs from pull request most recent head 2710d88. Consider uploading reports for the commit 2710d88 to get more accurate results

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2083      +/-   ##
==========================================
- Coverage   29.94%   29.92%   -0.02%     
==========================================
  Files         369      369              
  Lines       35048    35083      +35     
==========================================
+ Hits        10496    10500       +4     
- Misses      24070    24099      +29     
- Partials      482      484       +2     
Impacted Files Coverage Δ
...ternal/observability/metrics/agent/core/ngt/ngt.go 0.00% <0.00%> (ø)
pkg/gateway/lb/handler/grpc/aggregation.go 0.00% <0.00%> (ø)
pkg/agent/core/ngt/service/ngt.go 35.69% <68.00%> (+0.18%) ⬆️

... and 3 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@ykadowak ykadowak changed the title [WIP] Feature/agent/broken index metrics Add broken index count metrics Jun 23, 2023
@ykadowak ykadowak requested review from a team, kevindiu and kpango and removed request for a team June 23, 2023 02:27
kevindiu
kevindiu previously approved these changes Jun 23, 2023
kpango
kpango previously approved these changes Jun 23, 2023
Copy link
Collaborator

@kpango kpango left a comment

Choose a reason for hiding this comment

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

LGTM

}
message Request {
repeated float vector = 1 [ (validate.rules).repeated .min_items = 2 ];
Config config = 2;
Copy link
Contributor

Choose a reason for hiding this comment

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

[LanguageTool] reported by reviewdog 🐶
Possible typo: you repeated a word (ENGLISH_WORD_REPEAT_RULE)
Suggestions: Config
Rule: https://community.languagetool.org/rule/show/ENGLISH_WORD_REPEAT_RULE?lang=en-US
Category: MISC

Filter.Config ingress_filters = 6;
Filter.Config egress_filters = 7;
}
message Config {
Copy link
Contributor

Choose a reason for hiding this comment

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

[LanguageTool] reported by reviewdog 🐶
This sentence does not start with an uppercase letter. (UPPERCASE_SENTENCE_START)
Suggestions: Message
URL: https://languagetool.org/insights/post/spelling-capital-letters/
Rule: https://community.languagetool.org/rule/show/UPPERCASE_SENTENCE_START?lang=en-US
Category: CASING

}
message Request {
repeated float vector = 1 [ (validate.rules).repeated .min_items = 2 ];
Config config = 2;
Copy link
Contributor

Choose a reason for hiding this comment

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

[LanguageTool] reported by reviewdog 🐶
Possible typo: you repeated a word (ENGLISH_WORD_REPEAT_RULE)
Suggestions: Config
Rule: https://community.languagetool.org/rule/show/ENGLISH_WORD_REPEAT_RULE?lang=en-US
Category: MISC

Filter.Config ingress_filters = 6;
Filter.Config egress_filters = 7;
}
message Config {
Copy link
Contributor

Choose a reason for hiding this comment

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

[LanguageTool] reported by reviewdog 🐶
This sentence does not start with an uppercase letter. (UPPERCASE_SENTENCE_START)
Suggestions: Message
URL: https://languagetool.org/insights/post/spelling-capital-letters/
Rule: https://community.languagetool.org/rule/show/UPPERCASE_SENTENCE_START?lang=en-US
Category: CASING


| Algorithm | Description | Recommended Situation |
| :---------------- | :---------------------------------------------------------------------- | :------------------------------------------------------------------------------------------------------------------------------ |
| `ConcurrentQueue` | Traditional Vald proprietary aggregation algorithm | Good performance when asynchronous aggregation from a large number of Agents and a huge number of threads. |
Copy link
Contributor

Choose a reason for hiding this comment

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

[LanguageTool] reported by reviewdog 🐶
Specify a number, remove phrase, or simply use “many” or “numerous” (LARGE_NUMBER_OF[1])
Suggestions: many, numerous
URL: https://languagetool.org/insights/post/wordiness/
Rule: https://community.languagetool.org/rule/show/LARGE_NUMBER_OF?lang=en-US&subId=1
Category: REDUNDANCY

@github-actions github-actions bot added size/XL and removed size/XL labels Jun 26, 2023
@vankichi vankichi requested review from kevindiu and kpango June 26, 2023 05:21
@vankichi vankichi merged commit f1c432f into main Jun 26, 2023
@vankichi vankichi deleted the feature/agent/broken-index-metrics branch June 26, 2023 05:43
@hlts2 hlts2 mentioned this pull request Sep 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants