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

adding labels to Stackdriver metrics #9362

Open
awolde opened this issue Jul 1, 2020 · 0 comments
Open

adding labels to Stackdriver metrics #9362

awolde opened this issue Jul 1, 2020 · 0 comments

Comments

@awolde
Copy link

awolde commented Jul 1, 2020

Have a way to add custom labels to stackdriver metrics.

**Alternative:
Using telegraf I can do something like this which is what Im doing for Consul:

telemetry {
  dogstatsd_addr = "localhost:8125"
  disable_hostname = true
  dogstatsd_tags = [ "environment:${env}" ]
}

But I dont want to install telegraf agent on Vault.

This is a sample config in vault.hcl I have:

telemetry {
  stackdriver_project_id = "${project}"
  stackdriver_location = "${region}"
  stackdriver_namespace = "vault-cluster-${env}"
  disable_hostname = true
  enable_hostname_label = true
}

I dont know how the namespace is being used, I changed the namespace to different strings and I cannot filter with the namespace. Maybe having something like
tags = [ "foo:bar" ] in the stackdriver telemetry block would help.

This way we can filter the metrics in any way we like in Stackdriver.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants