Skip to content

Conversation

@khanhtc1202
Copy link
Member

What this PR does / why we need it:

Which issue(s) this PR fixes:

Fixes #

Does this PR introduce a user-facing change?:

NONE

@pipecd-bot
Copy link
Collaborator

COVERAGE

Code coverage for golang is 32.63%. This pull request increases coverage by 0.02%.

File Function Base Head Diff
pkg/cache/cachemetrics/metrics.go Register -- 0.00% +0.00%
pkg/cache/cachemetrics/metrics.go IncrementRequestCacheCounter -- 100.00% +100.00%
pkg/cache/cache.go multiGetter.Get 91.67% 87.50% -4.17%

Copy link
Collaborator

@pipecd-bot pipecd-bot left a comment

Choose a reason for hiding this comment

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

GO_LINTER

Some issues were detected while linting go source files in your changes.

@pipecd-bot pipecd-bot added size/L and removed size/M labels Jun 30, 2021
Copy link
Collaborator

@pipecd-bot pipecd-bot left a comment

Choose a reason for hiding this comment

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

GO_LINTER

Some issues were detected while linting go source files in your changes.

r.MustRegister(getCounter)
}

func IncrementRequestCacheCounter(status StatusLabel, source SourceLabel) {
Copy link
Member

Choose a reason for hiding this comment

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

nit: Increment or Inc? which is better?

Copy link
Member Author

Choose a reason for hiding this comment

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

Lets go with Inc for short 👍

Copy link
Collaborator

@pipecd-bot pipecd-bot left a comment

Choose a reason for hiding this comment

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

GO_LINTER

Some issues were detected while linting go source files in your changes.

@nghialv
Copy link
Member

nghialv commented Jun 30, 2021

Thank you.
/lgtm

var (
getCounter = prometheus.NewCounterVec(
prometheus.CounterOpts{
Name: "controlplane_cache_get_operation_total",
Copy link
Member

Choose a reason for hiding this comment

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

Is prefix controlplane okay? pipecd is better?

But it's okay to determine later.

Copy link
Member Author

Choose a reason for hiding this comment

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

Ops, should be as your suggestion 🙏 lets me address it in this PR 🙏

Copy link
Member

Choose a reason for hiding this comment

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

Oops, already merged lol

Copy link
Member Author

Choose a reason for hiding this comment

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

@nakabonne plz #2157 🙏

Copy link
Member

Choose a reason for hiding this comment

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

Gotcha!

@pipecd-bot
Copy link
Collaborator

COVERAGE

Code coverage for golang is 32.59%. This pull request decreases coverage by -0.02%.

File Function Base Head Diff
pkg/cache/cachemetrics/metrics.go Register -- 0.00% +0.00%
pkg/cache/cachemetrics/metrics.go IncGetOperationCounter -- 0.00% +0.00%
pkg/cache/rediscache/cache.go RedisCache.Get 0.00% 0.00% +0.00%

@nakabonne
Copy link
Member

I can't wait to see those metrics on our dashboard.
/approve

@pipecd-bot
Copy link
Collaborator

APPROVE

This pull request is APPROVED by nakabonne.

Approvers can cancel the approval by writing /approve cancel in a comment. Any additional commits also will change this pull request to be not-approved.

@pipecd-bot pipecd-bot merged commit 8bb26e0 into master Jun 30, 2021
@pipecd-bot pipecd-bot deleted the cache-git-metrics branch June 30, 2021 10:19
pipecd-bot pushed a commit that referenced this pull request Jun 30, 2021
**What this PR does / why we need it**:

Adopt #2156 (comment) 👀 

**Which issue(s) this PR fixes**:

Fixes #

**Does this PR introduce a user-facing change?**:
<!--
If no, just write "NONE" in the release-note block below.
-->
```release-note
NONE
```

This PR was merged by Kapetanios.
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