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

FIX target for kubernetes #34

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

Conversation

sirAnone
Copy link

Hi,
As i used powerapi inside a kubernetes cluster, i saw that the path for the pod and container's id do not match what is used by k8s. (which doesn't use dockershim anymore but containerd)
Powerapi use path like perf_event/kubepods/ where it should be perf_event/kubepods.slice/. I did some changes to match this pattern. Furthermore, in order to visualize data with Prometheus and Grafana whithout making changes to the formula, I modified the target-real-name to be like " podID-containerID " which is arbitrary as i use it with PromQL to have a consumption by pod and containers.

Changes:

  • Kubernetes path to match containerd
  • target real-name for kubernetes

@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

Copy link

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarCloud

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