Skip to content

Creates new record attributes for all applicable log types that map to prometheus labels

Adds the following default labels:

    stage <%= node.read('prometheus', 'labels', 'stage') || 'unknown' %>
    shard <%= node.read('prometheus', 'labels', 'shard') || 'unknown' %>
    tier <%= node.read('prometheus', 'labels', 'tier') || 'unknown' %>
    type <%= node.read('prometheus', 'labels', 'type') || 'unknown' %>

To the previous set:

    tag ${tag}
    environment <%= node.read('gitlab_fluentd', 'pubsub_log_env') || node.chef_environment %>
    hostname <%= node['hostname'] %>
    fqdn <%= node['fqdn'] %>

Also refactors these default labels into a partial template.

Merge request reports

Loading