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

ipfs namespace is now being provided to prometheus #6643

Merged
merged 2 commits into from
Oct 23, 2019

Conversation

lanzafame
Copy link
Contributor

This fixes what was a rather confusing issue in prometheus where the http_response_size_bytes metrics was confused to be coming from nginx but was actually from ipfs.

Copy link
Member

@Stebalien Stebalien left a comment

Choose a reason for hiding this comment

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

Minor breaking change but I'm fine with it as long as you make sure to upgrade the Prometheus dashboards (and migrate any data if necessary).

Subsystem: "http",
ConstLabels: prometheus.Labels{"handler": handlerName},
Objectives: map[float64]float64{0.5: 0.05, 0.9: 0.01, 0.99: 0.001},
}

reqCnt := prometheus.NewCounterVec(
prometheus.CounterOpts{
Namespace: opts.Namespace,
Copy link
Member

Choose a reason for hiding this comment

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

Shouldn't we keep this?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ahh yes we should.

Copy link
Member

Choose a reason for hiding this comment

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

nudge @lanzafame

@aschmahmann aschmahmann removed their request for review September 18, 2019 16:33
Copy link
Member

@olizilla olizilla left a comment

Choose a reason for hiding this comment

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

👍

@lanzafame
Copy link
Contributor Author

@olizilla @Stebalien fixed. thanks for the nudge

@Stebalien Stebalien merged commit 4a10220 into master Oct 23, 2019
hacdias pushed a commit to ipfs/boxo that referenced this pull request Jan 27, 2023
…mespace

ipfs namespace is now being provided to prometheus

This commit was moved from ipfs/kubo@4a10220
@hacdias hacdias deleted the fix/provide-prometheus-namespace branch May 9, 2023 10:57
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.

3 participants