HPCC-Platform icon indicating copy to clipboard operation
HPCC-Platform copied to clipboard

HPCC-31299 Publish metrics for the index cache

Open richardkchapman opened this issue 10 months ago • 3 comments

Type of change:

  • [ ] This change is a bug fix (non-breaking change which fixes an issue).
  • [x] This change is a new feature (non-breaking change which adds functionality).
  • [ ] This change improves the code (refactor or other change that does not change the functionality)
  • [ ] This change fixes warnings (the fix does not alter the functionality or the generated code)
  • [ ] This change is a breaking change (fix or feature that will cause existing behavior to change).
  • [ ] This change alters the query API (existing queries will have to be recompiled)

Checklist:

  • [x] My code follows the code style of this project.
    • [x] My code does not create any new warnings from compiler, build system, or lint.
  • [x] The commit message is properly formatted and free of typos.
    • [x] The commit message title makes sense in a changelog, by itself.
    • [x] The commit is signed.
  • [ ] My change requires a change to the documentation.
    • [ ] I have updated the documentation accordingly, or...
    • [ ] I have created a JIRA ticket to update the documentation.
    • [ ] Any new interfaces or exported functions are appropriately commented.
  • [x] I have read the CONTRIBUTORS document.
  • [ ] The change has been fully tested:
    • [ ] I have added tests to cover my changes.
    • [ ] All new and existing tests passed.
    • [ ] I have checked that this change does not introduce memory leaks.
    • [ ] I have used Valgrind or similar tools to check for potential issues.
  • [x] I have given due consideration to all of the following potential concerns:
    • [x] Scalability
    • [x] Performance
    • [x] Security
    • [x] Thread-safety
    • [x] Cloud-compatibility
    • [x] Premature optimization
    • [x] Existing deployed queries will not be broken
    • [x] This change fixes the problem, not just the symptom
    • [x] The target branch of this pull request is appropriate for such a change.
  • [ ] There are no similar instances of the same problem that should be addressed
    • [ ] I have addressed them here
    • [ ] I have raised JIRA issues to address them separately
  • [ ] This is a user interface / front-end modification
    • [ ] I have tested my changes in multiple modern browsers
    • [ ] The component(s) render as expected

Smoketest:

  • [ ] Send notifications about my Pull Request position in Smoketest queue.
  • [ ] Test my draft Pull Request.

Testing:

Compiled

richardkchapman avatar Apr 10 '24 14:04 richardkchapman

Jira Issue: https://hpccsystems.atlassian.net//browse/HPCC-31299

Jirabot Action Result: Workflow Transition: Merge Pending Updated PR Changing assignee from: [email protected] to: [email protected]

github-actions[bot] avatar Apr 10 '24 14:04 github-actions[bot]

I highly recommend that the clear is removed from the counter metric. Collection systems do not expect counters to be reset except in the case of a system restart. Based on comments from @jakesmith if the need persists to have the ability to clear the count of a counter metric, I think a new metric should be created. ClearableCounter, for example. That way it is explicit that it can be cleared, sinks can handle it as needed, and regular counters would not be cleared incorrectly by consumers of the metrics framework. I do stress that this new metric class should only be added if the need to clear the count persists.

kenrowland avatar Apr 11 '24 14:04 kenrowland

Pushed new commits with comments above addressed

richardkchapman avatar May 01 '24 11:05 richardkchapman

@ghalliday Squashed and rebased to latest 9.6.x

richardkchapman avatar May 22 '24 10:05 richardkchapman