Skip to content

Conversation

tomwilkie
Copy link
Contributor

To stop the monitoring showing "unamed_path" everywhere.


// MakeLabelValue converts a Gorilla mux path to a string suitable for use in
// a Prometheus label value.
func MakeLabelValue(path string) string {

This comment was marked as abuse.

This comment was marked as abuse.

@jml
Copy link
Contributor

jml commented Jun 9, 2016

Mostly looks good but I've got a couple of questions. Thanks!

@tomwilkie
Copy link
Contributor Author

@jml you're comments prompted me to give this some more thought. Have added a comment explaining what I'm trying to achieve in ae39936.

Would you mind sanity checking this? Also /cc @peterbourgon

// 3. The request doesn't match a mux route. Munge the Path in the same
// manner as (2).
// We do all this as we do not wish to emit high cardinality labels to
// prometheus.

This comment was marked as abuse.

This comment was marked as abuse.

@jml
Copy link
Contributor

jml commented Jun 9, 2016

Looks good to me. I very much appreciate the comment explaining the intent.

Punting to @peterbourgon for approval.

@tomwilkie
Copy link
Contributor Author

Merging w/o @peterbourgon as I'd like to deploy this today, along with the NATS stuff.

@tomwilkie tomwilkie merged commit 9821891 into master Jun 9, 2016
@tomwilkie tomwilkie deleted the unamed_path branch June 9, 2016 11:48
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