Logs
Prometheus logging is very terse when compared with most current software. This is a very conscious effort from the part of the Prometheus maintainers, as extraneous logging can lead to performance issues. Additionally, supporting different log streams (such as application logs, access logs, and slow query logs) without just writing it all to standard output - and thus spamming the application log with other types of logs - would force Prometheus to explicitly support writing to files, which is undesirable in cloud-native environments. Having said that, you can configure Prometheus to increase application log verbosity by setting the --log.level flag. As an example, failed scrapes are considered normal operating behavior and, as such, ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access