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

feat(process-exporter): Add process-exporter to dev and metal #1840

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

KaiyiLiu1234
Copy link
Collaborator

process-exporter is a useful tool for baremetal validation. It can be used for process to process performance metric comparison like cpu time.

process-exporter is a useful tool for baremetal validation.
It can be used for process to process performance metric comparison
like cpu time.

Signed-off-by: Kaiyi <[email protected]>
@KaiyiLiu1234
Copy link
Collaborator Author

From testing, it appears fixing the remaining yamllint errors will not impact the process-exporter service, but I followed exactly what https://github.com/ncabatoff/process-exporter does and it violates the yamllint rules.

ports:
- 9256:9256
command:
- '--procfs=/host/proc'
Copy link
Collaborator

Choose a reason for hiding this comment

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

'' can be removed

- 9256:9256
command:
- '--procfs=/host/proc'
- '--config.path=/config/process-exporter.yaml'
Copy link
Collaborator

Choose a reason for hiding this comment

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

same here

process_names:
- name: "{{.PID}}"
cmdline:
- '.+'
Copy link
Collaborator

Choose a reason for hiding this comment

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

we can omit the yaml rule here:

    cmdline:
      - ".+" # yamllint disable-line rule:quoted-strings

Copy link
Collaborator

Choose a reason for hiding this comment

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

@KaiyiLiu1234 Can you add this as well ⬆️

process_names:
- name: "{{.PID}}"
cmdline:
- '.+'
Copy link
Collaborator

Choose a reason for hiding this comment

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

same here

    cmdline:
      - ".+" # yamllint disable-line rule:quoted-strings

ports:
- 9256:9256
command:
- '--procfs=/host/proc'
Copy link
Collaborator

Choose a reason for hiding this comment

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

same here

Cleaned process exporter yaml files like removing unnecessary
quotes.

Signed-off-by: Kaiyi <[email protected]>
@KaiyiLiu1234
Copy link
Collaborator Author

@vprashar2929 all addressed

@vprashar2929
Copy link
Collaborator

@KaiyiLiu1234 Can you fix the commit message clean(process-exporter): Add yamllint fixes as clean is not a standard type as per conventional commit specification

Also looks like there is one more yamllint fix required. Can you run pip install pre-commit and pre-commit run --show-diff-on-failure --color=always --all-files to fix that as well

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