- Jul 15, 2019
-
-
Robert Fratto authored
This commit rolls back the changes to the Makefile and build/Dockerfile that caused CGO_ENABLED=1 to be present during some builds. This commit causes the journal support to be disabled in any build produced by make. Journal support can still be enabled in a manual build: go build -o cmd/promtail/promtail cmd/promtail
-
Robert Fratto authored
Support for reading systemd journal entries has been added. promtail will look for a job in scrape_configs with a journal key to activate the journal target. If GOOS=linux and CGO_ENABLED=1, promtail will now require libsystemd headers to be available for building. If GOOS is not linux or CGO_ENABLED is not 1, journal support will be unavailable and a log message will be printed warning the user that their config file has journal tailing configured without it being built into promtail. See docs/promtail-examples.md for a concrete example of using journal support. Other structural changes made: 1. Ability for checking if scrape.Config.ServiceDiscoveryConfig is non-zero has been added. This was chosen over making ServiceDiscoveryConfig a pointer as yaml.v2 cannot parse an inline struct into a pointer value. 2. Updated pipeline logger component name to journal_pipeline and file_pipeline for JournalTargetManager and FileTargetManager respectively. 3. The positions file will now store positions as strings instead of integers. Existing positions will be read in properly but written out as strings the next time the positions file is saved. This is done to be able to store the journal cursor, which is a string. The positions API has been updated to support reading in the old integer values and the new string values.
-
- Jul 08, 2019
-
-
Cyril Tovena authored
* move Dockerfile multi-arch to build and ignore that folder * docker-driver fix
-