Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Joseph/consulproc #547

Closed
wants to merge 3 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 36 additions & 1 deletion other-examples/collector/hcp-consul/collector.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,41 @@ receivers:

processors:
batch:
# NOTE: This is to filter out only the key metrics from Consul according to their docs(https://developer.hashicorp.com/consul/docs/agent/telemetry#key-metrics).
# to get all Consul related metrics, you can remove this filter, but it will be more intensive amount of data ingested.
filter/resource_attributes_include:
metrics:
include:
match_type: strict
metric_names:
- consul_kvs_apply
- consul_txn_apply
- consul_raft_apply
- consul_raft_commitTime
- consul_raft_leader_lastContact
- consul_raft_state_candidate
- consul_raft_state_leader
- consul_server_isLeader
- consul_mesh_active-root-ca_expiry
- consul_mesh_active-signing-ca_expiry
- consul_agent_tls_cert_expiry
- consul_autopilot_healthy
- consul_runtime_alloc_bytes
- consul_runtime_sys_bytes
- consul_runtime_total_gc_pause_ns
- consul_client_rpc
- consul_client_rpc_exceeded
- consul_client_rpc_failed
- consul_raft_thread_main_saturation
- consul_raft_thread_fsm_saturation
- consul_raft_fsm_lastRestoreDuration
- consul_raft_leader_oldestLogAge
- consul_raft_rpc_installSnapshot
- consul_system_licenseExpiration
- consul_raft_boltdb_freelistBytes
- consul_raft_boltdb_logsPerBatch
- consul_raft_boltdb_storeLogs
- consul_raft_boltdb_writeCapacity

exporters:
otlphttp:
Expand All @@ -32,5 +67,5 @@ service:
pipelines:
metrics:
receivers: [prometheus]
processors: [batch]
processors: [batch, filter/resource_attributes_include]
exporters: [otlphttp]
Loading