E5F8 Add pod_owner label to metrics when -spire-agent-address is set by kate-osborn · Pull Request #1137 · nginx/kubernetes-ingress · GitHub
[go: up one dir, main page]

Skip to content

Conversation

kate-osborn
Copy link
Contributor

Proposed changes

NGINX Service Mesh needs to know the owner kind and name of the pod in order to produce metrics according to the smi-spec. This PR adds a pod_owner label to metrics when the -spire-agent-address is set. The metrics produced by the mesh only support owner types of Deployment, StatefulSet, and DaemonSet. If the owner type is not one of these resources we default to deployment.

Checklist

Before creating a PR, run through this checklist and mark each as complete.

  • I have read the CONTRIBUTING doc
  • [] I have added tests that prove my fix is effective or that my feature works
  • I have checked that all unit tests pass after adding my changes
  • I have updated necessary documentation
  • I have rebased my branch onto master
  • I will ensure my PR is targeting the master branch and pulling from my branch from my own fork

Copy link
Contributor
@pleshakov pleshakov left a comment

Choose a reason for hiding this comment

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

🚀

Copy link
@lucacome lucacome left a comment

Choose a reason for hiding this comment

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

LGTM!

@kate-osborn kate-osborn merged commit d7d4b74 into master Sep 11, 2020
@kate-osborn kate-osborn deleted the mesh-pod-owner branch September 11, 2020 15:42
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
0