Skip to content

Metrics missing from documentation #13364

@maxb

Description

@maxb

https://www.consul.io/docs/agent/telemetry#metrics-reference claims "This is a full list of metrics emitted by Consul." but some are missing:

  • The family of new consul.acl.* metrics defined at

    var ACLEndpointSummaries = []prometheus.SummaryDefinition{

  • consul.consul.cache.entries_count defined at

    // TODO(kit): remove the namespace from these once the metrics themselves change
    var Gauges = []prometheus.GaugeDefinition{
    {
    Name: []string{"consul", "cache", "entries_count"},
    Help: "Represents the number of entries in this cache.",
    },
    }
    (the doubled initial consul. is presumably what the TODO comment is talking about - a number of other metrics are documented without the doubled consul. even though they are actually emitted with it - but that's a separate issue.)

  • consul.federation_state.* from

    var FederationStateSummaries = []prometheus.SummaryDefinition{
    {
    Name: []string{"federation_state", "apply"},
    Help: "",
    },
    {
    Name: []string{"federation_state", "get"},
    Help: "",
    },
    {
    Name: []string{"federation_state", "list"},
    Help: "",
    },
    {
    Name: []string{"federation_state", "list_mesh_gateways"},
    Help: "",
    },
    }

  • consul.intention.apply from

    defer metrics.MeasureSince([]string{"intention", "apply"}, time.Now())

  • consul.raft.peers from within the github.com/hashicorp/raft library

  • consul.runtime.gc_pause_ns, .free_count, .malloc_count, .total_gc_runs from within the github.com/armon/go-metrics library

  • consul.serf.member.update and consul.serf.queue.* from within the github.com/hashicorp/serf library

Metadata

Metadata

Assignees

Labels

good first issueA well-defined bug or improvement with sufficient context which should be approachable for new contrtheme/telemetryAnything related to telemetry or observabilitytype/docsDocumentation needs to be created/updated/clarified

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions