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

Add metrics support to k8s processor #358

Commits on Jun 24, 2020

  1. Add metrics support to k8s processor

    Kubernetes processor can be used to enrich not only spans but metrics with k8s metadata. In order to find a source of the metrics we take a different approach then for spans. The processor looks at "host.hostname" resource attribute which is set by prometheus receiver and some metrics instrumentation libraries to an originated IP address. That IP address is used by k8s processor to lookup for a k8s pod and fetch its metadata.
    
    The processor uses the old-style metrics data model since the new metric model is not available in contrib yet. But it must be easy to switch over later once we wave it the new metrics model support.
    dmitryax committed Jun 24, 2020
    Configuration menu
    Copy the full SHA
    1412776 View commit details
    Browse the repository at this point in the history