internal_metrics

Collect logs from Internal Metrics

Type: internal_metrics

Sample YAML

{% code title=”sources.yaml” %}

sources:
  internal_metrics_example:
    type: internal_metrics
    route_label: ''
    metric_to_log: false
  # optional:
  #   <key>: <value>

{% endcode %}

Fields Reference

Below are tables for Base, TLS, and Optional sections. Columns: Key, Label, Type, Default, Required, Depends on, Enum / Notes.

Base

Key

Label

Type

Default

Required

Enum / Notes

Depends on

route_label

Event Routing Label

string

β€œβ€

β€”

The label to use in routing these events to a destination. Defaults to source name-type.

β€”

metric_to_log

Metric to Log

bool

false

β€”

Convert a metric event into a log event, which can be useful for sending metrics to log-support downstream components.

β€”

Optional

Key

Label

Type

Default

Required

Enum / Notes

Depends on

description

Description

string

β€œβ€

β€”

The description of the entry.

β€”

namespace

Namespace

string

vector

β€”

Overrides the default namespace for the metrics emitted by the source.

β€”

scrape_interval_secs

Scrape Interval Secs

int

1

β€”

The interval between metric gathering, in seconds.

β€”