Skip to content

Add daemon which periodically pushes process and docker stats to State DB#3525

Merged
jleveque merged 21 commits into
sonic-net:masterfrom
pra-moh:dev/pramoh/procdockdaemon
Nov 27, 2019
Merged

Add daemon which periodically pushes process and docker stats to State DB#3525
jleveque merged 21 commits into
sonic-net:masterfrom
pra-moh:dev/pramoh/procdockdaemon

Conversation

@pra-moh

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

Copy link
Copy Markdown
Contributor

- 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)

Comment thread files/image_config/procdockerstats/procdockerstats Outdated
Comment thread files/image_config/procdockerstats/procdockerstats Outdated
Comment thread files/image_config/procdockerstats/procdockerstats Outdated
Comment thread files/image_config/procdockerstats/procdockerstats Outdated
Comment thread files/image_config/procdockerstats/procdockerstats Outdated
Comment thread files/image_config/procdockerstats/procdockerstats Outdated
Comment thread files/image_config/procdockerstats/procdockerstats Outdated
Comment thread files/image_config/procdockerstats/procdockerstats Outdated
Comment thread files/image_config/procdockerstats/procdockerstats Outdated
Comment thread files/image_config/procdockerstats/procdockerstats Outdated
Comment thread files/image_config/procdockerstats/procdockerstats Outdated
Comment thread files/image_config/procdockerstats/procdockerstats Outdated
Comment thread files/image_config/procdockerstats/procdockerstats Outdated
Comment thread files/image_config/procdockerstats/procdockerstats Outdated
Comment thread files/image_config/procdockerstats/procdockerstats Outdated
Comment thread files/image_config/procdockerstats/procdockerstats Outdated
Comment thread files/image_config/procdockerstats/procdockerstats Outdated
Comment thread files/image_config/procdockerstats/procdockerstats Outdated
Comment thread files/image_config/procdockerstats/procdockerstats Outdated
Comment thread files/image_config/procdockerstats/procdockerstats.service Outdated
Comment thread files/image_config/procdockerstats/procdockerstats Outdated
Comment thread files/image_config/procdockerstats/procdockerstats Outdated
Comment thread files/image_config/procdockerstats/procdockerstats Outdated
@pra-moh pra-moh marked this pull request as ready for review October 2, 2019 22:38
Comment thread files/image_config/procdockerstats/procdockerstats Outdated
Comment thread files/image_config/procdockerstats/procdockerstats
Comment thread files/image_config/procdockerstats/procdockerstats
Comment thread files/image_config/procdockerstats/procdockerstats Outdated
Comment thread files/image_config/procdockerstats/procdockerstats Outdated
Comment thread files/image_config/procdockerstats/procdockerstats Outdated
Comment thread files/image_config/procdockerstats/procdockerstats Outdated
Comment thread files/image_config/procdockerstats/procdockerstats Outdated
Comment thread files/image_config/procdockerstats/procdockerstats Outdated
Comment thread files/image_config/procdockerstats/procdockerstats Outdated
Comment thread files/image_config/procdockerstats/procdockerstats Outdated
Comment thread files/image_config/procdockerstats/procdockerstats Outdated
Comment thread files/image_config/procdockerstats/procdockerstats Outdated

@hui-ma hui-ma left a comment

Copy link
Copy Markdown
Contributor

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?

Comment thread files/image_config/procdockerstats/procdockerstats Outdated
@hui-ma

hui-ma commented Oct 25, 2019

Copy link
Copy Markdown
Contributor

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

@jleveque

jleveque commented Oct 25, 2019

Copy link
Copy Markdown
Contributor

@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

hui-ma commented Oct 25, 2019

Copy link
Copy Markdown
Contributor

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

@jleveque

Copy link
Copy Markdown
Contributor

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

Comment thread files/image_config/procdockerstats/procdockerstats Outdated
Comment thread files/image_config/procdockerstats/procdockerstats Outdated
Comment thread files/image_config/procdockerstats/procdockerstats Outdated
Comment thread files/image_config/procdockerstats/procdockerstats Outdated
Comment thread files/image_config/procdockerstats/procdockerstats Outdated
Comment thread files/image_config/procdockerstats/procdockerstats Outdated
adding more descriptive names
line indented
returning explicitly none
Comment thread files/image_config/procdockerstats/procdockerstats Outdated
Comment thread files/image_config/procdockerstats/procdockerstats Outdated
Comment thread files/image_config/procdockerstats/procdockerstats.service Outdated
changed comment for daemon
Comment thread files/image_config/procdockerstats/procdockerstats Outdated
Comment thread files/image_config/procdockerstats/procdockerstats
Comment thread files/image_config/procdockerstats/procdockerstats Outdated

@jleveque jleveque left a comment

Copy link
Copy Markdown
Contributor

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

pra-moh commented Nov 21, 2019

Copy link
Copy Markdown
Contributor Author

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

Comment thread files/image_config/procdockerstatsd/procdockerstatsd Outdated
@jleveque

Copy link
Copy Markdown
Contributor

Retest broadcom please

Comment thread files/build_templates/sonic_debian_extension.j2 Outdated
Comment thread files/image_config/procdockerstatsd/procdockerstatsd.service Outdated
adding process/docker in comment
@jleveque

Copy link
Copy Markdown
Contributor

Retest vs please

@jleveque

Copy link
Copy Markdown
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
Copy Markdown
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
```
* a7897d1 - (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]
* 5fdc1b6 - [Mellanox] Add new SKU Mellanox-SN5600-C256 (#3431) (34 hours ago) [DavidZagury]
* d103bfd - Fix ntp conf file path (#3525) (34 hours ago) [Vivek]
* 5eb266a - [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
roger530-ho pushed a commit to roger530-ho/sonic-buildimage that referenced this pull request Jun 23, 2026
…atically (sonic-net#20202)

#### Why I did it
src/sonic-utilities
```
* a7897d1 - (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]
* 5fdc1b6 - [Mellanox] Add new SKU Mellanox-SN5600-C256 (sonic-net#3431) (34 hours ago) [DavidZagury]
* d103bfd - Fix ntp conf file path (sonic-net#3525) (34 hours ago) [Vivek]
* 5eb266a - [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
xdqi pushed a commit to canonical/sonic-buildimage that referenced this pull request Jul 6, 2026
xdqi pushed a commit to canonical/sonic-buildimage that referenced this pull request Jul 6, 2026
…atically (sonic-net#20202)

#### Why I did it
src/sonic-utilities
```
* a7897d1 - (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]
* 5fdc1b6 - [Mellanox] Add new SKU Mellanox-SN5600-C256 (sonic-net#3431) (34 hours ago) [DavidZagury]
* d103bfd - Fix ntp conf file path (sonic-net#3525) (34 hours ago) [Vivek]
* 5eb266a - [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