-
Notifications
You must be signed in to change notification settings - Fork 2
feat: Add local server hostname to tags #234
Conversation
I am concerned this tag will be too high granularity - every single k8s pod will have a different hostname. What are you trying to measure by adding the hostname? |
per the source issue: We can probably skip adding this tag to anything other than metric reporting, but we'll probably still hit granularity issues. |
Ok, refactored a bit. I also added the tag only in |
Nothing too specific but it's helpful for diagnosing general individual pod behavior, allowing more correlation across metrics. E.g. the most recently spun up pod has this certain CPU usage with this number of adM request calls. Though this is a good point, one I hadn't considered because we emit hostname tags for all autopush and some syncstorage metrics. I suppose it's a potential issue there but nobody's complained (yet). Would a hostname tag in practice be much different from e.g. k8s metrics' |
huh. So, looking at: https://kubernetes.io/docs/tasks/inject-data-application/environment-variable-expose-pod-information/ I don't believe that pods generally know what their name is, that info would have to be exposed in some way. I'm going to drop this one in favor of better identifying the requirement in #200 |
In light of the conversation in #200, reopening. |
…le into feat/200-hostname
…le into feat/200-hostname
Description
Adds the local server hostname to the metric and logging tags.
Testing
Unit test modified to include check for presence.
Issue(s)
Closes #200