logging - 坚持尝试通过 google-fluentd.conf 自定义堆栈驱动程序的日志实体
问题描述
这是我的配置文件:
@include config.d/*.conf
<source>
@type prometheus
port 24231
</source>
<source>
@type prometheus_monitor
</source>
<match fluent.**>
@type null
</match>
<filter **>
@type add_insert_ids
</filter>
<filter **>
@type record_transformer
enable_ruby
<record>
logging.googleapis.com/labels foo=bar
severity info
</record>
</filter>
<match docker>
@type google_cloud
buffer_type file
buffer_path /var/log/google-fluentd/buffers
buffer_chunk_limit 512KB
flush_interval 5s
disable_retry_limit false
retry_limit 3
retry_wait 10
max_retry_wait 300
num_threads 8
use_grpc true
partial_success true
enable_monitoring true
monitoring_type prometheus
</match>
如您所见,它与默认版本完全相同,但有一些调整。
ESP,额外的<filter>
状态,当我尝试向日志输出添加严重性和标签时,但似乎没有任何改变。我什么时候错了?我跟着官方文档,顺便说一句。
先感谢您
解决方案
推荐阅读
- git - Git config --global user.email = "email@example.com" 和 GitHub 操作中的 user.name 错误
- azure - 我应该如何在 Azure 中部署我的微服务?
- sql - Oracle中的SQL - 如何搜索间隔中的事件?
- ios - Flutter 构建 iOS
- python - 在python3中更改方法的属性
- python - Django - 装饰器限制“员工”
- c# - 无法将数据从视图传递到控制器 ASP.NET MVC 5
- netbeans - 从 Apache Ant 构建 Netbeans
- html - 如何在 display:flex 结构中的其他 2 个项目之间水平对齐文本?
- algorithm - 在无向图中查找关键连接(桥梁)。我的方法不是线性时间吗?