Skip to content

Comments

label all metrics with namespace if available#105

Open
bunsenmcdubbs wants to merge 1 commit intoshamil:masterfrom
bunsenmcdubbs:additional-tags
Open

label all metrics with namespace if available#105
bunsenmcdubbs wants to merge 1 commit intoshamil:masterfrom
bunsenmcdubbs:additional-tags

Conversation

@bunsenmcdubbs
Copy link
Contributor

No description provided.

io.on('connect', (socket) => {
connectTotal.inc();
connectedSockets.inc();
connectTotal.labels({namespace}).inc();
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Note: I tried to manually, with my eyes reading code, verify that this syntax is compatible with prom-client 10.x and I believe this is the case. I haven't tried running this to verify

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.

1 participant