Prometheus
Prometheus Filter
Overview
Prometheus Filter Plugin to count Incoming Records
Configuration
PrometheusConfig
metrics ([]MetricSection, optional)
Default: -
labels (Label, optional)
Default: -
Metrics Section
name (string, required)
Metrics name
Default: -
type (string, required)
Metrics type counter, gauge, summary, histogram
Default: -
desc (string, required)
Description of metric
Default: -
key (string, optional)
Key name of record for instrumentation.
Default: -
buckets (string, optional)
Buckets of record for instrumentation
Default: -
labels (Label, optional)
Additional labels for this metric
Default: -
Example Prometheus
filter configurations
Fluentd Config Result
<filter **>
@type prometheus
@id logging-demo-flow_2_prometheus
<metric>
desc The total number of foo in message.
name total_counter
type counter
<labels>
foo bar
</labels>
</metric>
<labels>
host ${hostname}
namespace $.kubernetes.namespace
tag ${tag}
</labels>
</filter>
Last modified August 31, 2023: Merge pull request #181 from kube-logging/lo-4.3-image-versions (2c7faf2)