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 daemon which periodically pushes process and docker stats to State DB #3525

Merged
merged 21 commits into from
Nov 27, 2019

Conversation

pra-moh
Copy link
Contributor

@pra-moh pra-moh commented Sep 26, 2019

- What I did
Adding daemon which every 2 mins uploads docker and process stats data to state db
- How I did it

- How to verify it

- Description for the changelog

- A picture of a cute animal (not mandatory but encouraged)

files/image_config/procdockerstats/procdockerstats Outdated Show resolved Hide resolved
files/image_config/procdockerstats/procdockerstats Outdated Show resolved Hide resolved
files/image_config/procdockerstats/procdockerstats Outdated Show resolved Hide resolved
files/image_config/procdockerstats/procdockerstats Outdated Show resolved Hide resolved
files/image_config/procdockerstats/procdockerstats Outdated Show resolved Hide resolved
files/image_config/procdockerstats/procdockerstats Outdated Show resolved Hide resolved
files/image_config/procdockerstats/procdockerstats Outdated Show resolved Hide resolved
files/image_config/procdockerstats/procdockerstats Outdated Show resolved Hide resolved
files/image_config/procdockerstats/procdockerstats Outdated Show resolved Hide resolved
files/image_config/procdockerstats/procdockerstats Outdated Show resolved Hide resolved
files/image_config/procdockerstats/procdockerstats Outdated Show resolved Hide resolved
files/image_config/procdockerstats/procdockerstats Outdated Show resolved Hide resolved
files/image_config/procdockerstats/procdockerstats Outdated Show resolved Hide resolved
files/image_config/procdockerstats/procdockerstats Outdated Show resolved Hide resolved
files/image_config/procdockerstats/procdockerstats Outdated Show resolved Hide resolved
files/image_config/procdockerstats/procdockerstats Outdated Show resolved Hide resolved
files/image_config/procdockerstats/procdockerstats Outdated Show resolved Hide resolved
files/image_config/procdockerstats/procdockerstats Outdated Show resolved Hide resolved
files/image_config/procdockerstats/procdockerstats Outdated Show resolved Hide resolved
files/image_config/procdockerstats/procdockerstats.service Outdated Show resolved Hide resolved
files/image_config/procdockerstats/procdockerstats Outdated Show resolved Hide resolved
files/image_config/procdockerstats/procdockerstats Outdated Show resolved Hide resolved
files/image_config/procdockerstats/procdockerstats Outdated Show resolved Hide resolved
@pra-moh pra-moh marked this pull request as ready for review October 2, 2019 22:38
files/image_config/procdockerstats/procdockerstats Outdated Show resolved Hide resolved
files/image_config/procdockerstats/procdockerstats Outdated Show resolved Hide resolved
files/image_config/procdockerstats/procdockerstats Outdated Show resolved Hide resolved
files/image_config/procdockerstats/procdockerstats Outdated Show resolved Hide resolved
files/image_config/procdockerstats/procdockerstats Outdated Show resolved Hide resolved
files/image_config/procdockerstats/procdockerstats Outdated Show resolved Hide resolved
files/image_config/procdockerstats/procdockerstats Outdated Show resolved Hide resolved
files/image_config/procdockerstats/procdockerstats Outdated Show resolved Hide resolved
files/image_config/procdockerstats/procdockerstats Outdated Show resolved Hide resolved
files/image_config/procdockerstats/procdockerstats Outdated Show resolved Hide resolved
files/image_config/procdockerstats/procdockerstats Outdated Show resolved Hide resolved
files/image_config/procdockerstats/procdockerstats Outdated Show resolved Hide resolved
files/image_config/procdockerstats/procdockerstats Outdated Show resolved Hide resolved
Copy link
Contributor

@hui-ma hui-ma left a comment

Choose a reason for hiding this comment

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

LGTM. Will this demon be started automatically. And if it crash, how will it be restarted?

files/image_config/procdockerstats/procdockerstats Outdated Show resolved Hide resolved
@hui-ma
Copy link
Contributor

hui-ma commented Oct 25, 2019

Some questions:
Is this daemon enabled automatically?
If it crash, how to resume it?

@jleveque
Copy link
Contributor

jleveque commented Oct 25, 2019

@hui-ma: For the daemon to get included in the image and started automatically, Pradnya will need to add it to files/build_templates/sonic_debian_extension.j2.

To have the daemon auto-restart upon crash, she will need to add the line Restart=always to the [Service] section of the service file.

@hui-ma
Copy link
Contributor

hui-ma commented Oct 25, 2019

@jleveque Thanks for the info of files/build_templates/sonic_debian_extension.j2.. Let us do another PR for it later.

@jleveque
Copy link
Contributor

@hui-ma: I believe that change should be part of this PR. It is a small change, and I can help Pradnya.

files/image_config/procdockerstats/procdockerstats Outdated Show resolved Hide resolved
files/image_config/procdockerstats/procdockerstats Outdated Show resolved Hide resolved
files/image_config/procdockerstats/procdockerstats Outdated Show resolved Hide resolved
files/image_config/procdockerstats/procdockerstats Outdated Show resolved Hide resolved
adding more descriptive names
line indented
returning explicitly none
changed comment for daemon
Copy link
Contributor

@jleveque jleveque left a comment

Choose a reason for hiding this comment

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

I suggest appending a 'd' to the name of the daemon to follow the naming convention which signifies this application runs as a daemon (e.g., "procdockerstatsd").

@pra-moh
Copy link
Contributor Author

pra-moh commented Nov 21, 2019

I suggest appending a 'd' to the name of the daemon to follow the naming convention which signifies this application runs as a daemon (e.g., "procdockerstatsd").

done

@jleveque
Copy link
Contributor

Retest broadcom please

adding process/docker in comment
@jleveque
Copy link
Contributor

Retest vs please

@jleveque
Copy link
Contributor

Retest vsimage please

@jleveque jleveque changed the title adding daemon getting process data Add daemon which periodically pushes process and docker stats to State DB Nov 27, 2019
@jleveque
Copy link
Contributor

vsimage check build failure is unrelated. Merging PR in spite of this failure.

@jleveque jleveque merged commit bfa96bb into sonic-net:master Nov 27, 2019
zhenggen-xu pushed a commit to zhenggen-xu/sonic-buildimage that referenced this pull request Jan 10, 2020
mssonicbld added a commit that referenced this pull request Sep 11, 2024
…atically (#20220)

#### Why I did it
src/sonic-utilities
```
* e99077a4 - (HEAD -> 202405, origin/202405) Fix ntp conf file path (#3525) (54 minutes ago) [Vivek]
```
#### How I did it
#### How to verify it
#### Description for the changelog
mssonicbld added a commit that referenced this pull request Sep 11, 2024
…atically (#20202)

#### Why I did it
src/sonic-utilities
```
* a7897d1f - (HEAD -> master, origin/master, origin/HEAD) [show][interface][counters] Add proposal and changes for fec-histogram for interface counters fec-histogram subcommand (#3519) (10 hours ago) [vdahiya12]
* 5fdc1b61 - [Mellanox] Add new SKU Mellanox-SN5600-C256 (#3431) (34 hours ago) [DavidZagury]
* d103bfd7 - Fix ntp conf file path (#3525) (34 hours ago) [Vivek]
* 5eb266ac - [chassis] Modify the show ip route to hide the Ethernet-IB port in the output (#3537) (34 hours ago) [Arvindsrinivasan Lakshmi Narasimhan]
```
#### How I did it
#### How to verify it
#### Description for the changelog
vvolam pushed a commit to vvolam/sonic-buildimage that referenced this pull request Sep 12, 2024
…atically (sonic-net#20202)

#### Why I did it
src/sonic-utilities
```
* a7897d1f - (HEAD -> master, origin/master, origin/HEAD) [show][interface][counters] Add proposal and changes for fec-histogram for interface counters fec-histogram subcommand (sonic-net#3519) (10 hours ago) [vdahiya12]
* 5fdc1b61 - [Mellanox] Add new SKU Mellanox-SN5600-C256 (sonic-net#3431) (34 hours ago) [DavidZagury]
* d103bfd7 - Fix ntp conf file path (sonic-net#3525) (34 hours ago) [Vivek]
* 5eb266ac - [chassis] Modify the show ip route to hide the Ethernet-IB port in the output (sonic-net#3537) (34 hours ago) [Arvindsrinivasan Lakshmi Narasimhan]
```
#### How I did it
#### How to verify it
#### Description for the changelog
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants