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

Update to metrics sample #197

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

tsurdilo
Copy link
Contributor

@tsurdilo tsurdilo commented May 2, 2022

Signed-off-by: Tihomir Surdilovic [email protected]

  • adds how to add custom metric in workflow code
  • adds how to set custom tags
  • updates worker to publish metrics on port 9092 (default server metrics are exposed on port 9090 so this way it wont clash).

Signed-off-by: Tihomir Surdilovic <[email protected]>
@@ -55,6 +55,8 @@ func newPrometheusScope(c prometheus.Configuration) tally.Scope {
Separator: prometheus.DefaultSeparator,
SanitizeOptions: &sanitizeOptions,
Prefix: "temporal_samples",
Tags: map[string]string{"my_key1": "my_value1",
"my_key2": "my_value2"},
Copy link
Member

Choose a reason for hiding this comment

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

You need to run go fmt on this file. All Go IDEs should do this automatically for you on save.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@cretz done

Signed-off-by: Tihomir Surdilovic <[email protected]>
Signed-off-by: Tihomir Surdilovic <[email protected]>
@cretz
Copy link
Member

cretz commented Aug 9, 2022

@tsurdilo - Should we still merge this?

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.

2 participants