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

Harvest should use HARVEST_CONF when set #2368

Closed
cgrinds opened this issue Sep 18, 2023 · 3 comments
Closed

Harvest should use HARVEST_CONF when set #2368

cgrinds opened this issue Sep 18, 2023 · 3 comments
Labels

Comments

@cgrinds
Copy link
Collaborator

cgrinds commented Sep 18, 2023

The following steps should work

mv conf/ /tmp/
bin/poller --poller sar --promPort 12990
# poller fails to start because templates can't be found since conf directory was removed

# Starts fine with env var
HARVEST_CONF=/tmp/ bin/poller --poller sar --promPort 12990
2023-09-18T14:12:23-04:00 INF poller/poller.go:215 > Init Poller=sar asup=false confPath=conf config=harvest.yml configPath=/tmp/harvest.yml daemon=false debug=false homePath=/tmp hostname=cgrindst-mac-0 logLevel=info logPath=/var/log/harvest/ profiling=0 promPort=12990 version="harvest version 23.09.1814-v23.08.0 (commit c4646c8e) (build date 2023-09-18T14:11:27-0400) darwin/amd64"
2023-09-18T14:12:23-04:00 INF poller/poller.go:239 > started in foreground Poller=sar pid=67308
...
2023-09-18T14:12:23-04:00 INF poller/poller.go:366 > poller start-up complete Poller=sar
2023-09-18T14:12:23-04:00 INF prometheus/httpd.go:40 > server listen Poller=sar exporter=prometheus1 url=http://localhost:12990/metrics
@cgrinds cgrinds added bug Something isn't working status/open customer 23.11 labels Sep 18, 2023
@cgrinds cgrinds self-assigned this Sep 18, 2023
@cgrinds
Copy link
Collaborator Author

cgrinds commented Sep 18, 2023

@cgrinds cgrinds closed this as completed Sep 18, 2023
@cgrinds
Copy link
Collaborator Author

cgrinds commented Sep 18, 2023

Related #368

@rahulguptajss
Copy link
Contributor

verified in main

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants