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

Logging #297

Merged
merged 27 commits into from
Jan 12, 2013
Merged

Logging #297

merged 27 commits into from
Jan 12, 2013

Conversation

xcolour
Copy link
Contributor

@xcolour xcolour commented Dec 11, 2012

Comprehensive logging reform.

# Force the hostname to whatever you want.
#hostname: mymachine.mydomain

# Set the host's tags
#tags: mytag0, mytag1

# Use the amazon EC2 instance-id instead of hostname (unless hostname is
# explicitly set)
use_ec2_instance_id: yes
Copy link
Contributor

Choose a reason for hiding this comment

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

Pretty sure we wanted this removed (3073c60)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ha, I'm even the one who removed it.

@clutchski
Copy link
Contributor

In general, I don't really like getLogger(get_logger_name). It's a pretty well known convention in Python land to do getLogger(__name_). Instead of always using the same logger everywhere, why not one FileHandler for each component which points to the right file, and then a small step in the initialization of each app that attaches that handler to the root logger. Then we don't lose the module name in the log lines. Does that make sense?

@clutchski
Copy link
Contributor

@xcolour we should merge this this week, so that is goes with the next agent release.

@alq666
Copy link
Member

alq666 commented Jan 4, 2013

@xcolour @clutchski using papertrail to gauge volume, 5-10% of syslog is non-agent log entries.

Jan 04 15:53:25 10.10.54.223 ntpd:  kernel time sync status change 2001

# then a ton of 
Jan 04 15:53:25 10.10.54.223 dd-agent:  - collector - INFO - Starting collection run #4324
Jan 04 15:53:31 10.10.54.223 dd-agent:  - collector - INFO - Finished run #4324. Collection time: 5.86s. Emit time: 0.01s
Jan 04 15:53:46 10.10.54.223 dd-agent:  - collector - INFO - Starting collection run #4325
Jan 04 15:53:52 10.10.54.223 dd-agent:  - collector - INFO - Finished run #4325. Collection time: 5.66s. Emit time: 0.01s
Jan 04 15:54:07 10.10.54.223 dd-agent:  - collector - INFO - Starting collection run #4326
Jan 04 15:54:13 10.10.54.223 dd-agent:  - collector - INFO - Finished run #4326. Collection time: 5.75s. Emit time: 0.01s
Jan 04 15:54:28 10.10.54.223 dd-agent:  - collector - INFO - Starting collection run #4327
Jan 04 15:54:33 10.10.54.223 dd-agent:  - collector - INFO - Finished run #4327. Collection time: 5.66s. Emit time: 0.01s
Jan 04 15:54:48 10.10.54.223 dd-agent:  - collector - INFO - Starting collection run #4328

Rather, can we post stats about runs every 20 runs (once every 5-10 mins), or when there is an exception during the run?

Conflicts:
	agent.py
	checks/collector.py
	config.py
	ddagent.py
	dogstatsd.py
	packaging/datadog-agent-rpm/supervisor.conf
	pup/pup.py
	util.py
@conorbranagan
Copy link
Member

@xcolour I merged master into this branch and fixed up the conflicts so it should be good to merge (if travis passes). I'd like to get this into the next release if possible.

@conorbranagan
Copy link
Member

Fixed up some issues that I didn't catch with the merge. It's running on dogdev0 but it still hasn't gotten through travis. I'll keep an eye on it to see what happens. It looks like travis is pretty backed up today so it might be a while.

@conorbranagan
Copy link
Member

Travis is finally passing (the last commit had 1/3 pass because 2 of the builds got stalled) so I'm going to merge now.

conorbranagan added a commit that referenced this pull request Jan 12, 2013
@conorbranagan conorbranagan merged commit c939854 into master Jan 12, 2013
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.

None yet

6 participants