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

Add support for complex counter values #260

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft

Conversation

bobrik
Copy link
Contributor

@bobrik bobrik commented Sep 3, 2023

This allows having a single map value to support multiple counters:

ivan@vm:~$ curl -s http://localhost:9435/metrics | fgrep block_rq
# HELP ebpf_exporter_block_rq_completed_bytes_total Total number of bytes served by block requests completions
# TYPE ebpf_exporter_block_rq_completed_bytes_total counter
ebpf_exporter_block_rq_completed_bytes_total{device="nvme0n1"} 258048
ebpf_exporter_block_rq_completed_bytes_total{device="nvme1n1"} 966656
# HELP ebpf_exporter_block_rq_completions_total Total number of block request completions
# TYPE ebpf_exporter_block_rq_completions_total counter
ebpf_exporter_block_rq_completions_total{device="nvme0n1"} 35
ebpf_exporter_block_rq_completions_total{device="nvme1n1"} 103
ebpf_exporter_ebpf_program_info{config="complex-value",id="72",program="block_rq_complete",tag="34d2100b313409cd"} 1

@bobrik bobrik marked this pull request as draft September 3, 2023 02:33
@bobrik
Copy link
Contributor Author

bobrik commented Sep 3, 2023

I would like some numbers from #253 before moving this further.

@bobrik bobrik force-pushed the ivan/complex-value branch 3 times, most recently from b73f3e0 to 5e5b6d1 Compare June 24, 2024 01:27
This allows having a single map value to support multiple counters:

    ivan@vm:~$ curl -s http://localhost:9435/metrics | fgrep block_rq
    # HELP ebpf_exporter_block_rq_completed_bytes_total Total number of bytes served by block requests completions
    # TYPE ebpf_exporter_block_rq_completed_bytes_total counter
    ebpf_exporter_block_rq_completed_bytes_total{device="nvme0n1"} 258048
    ebpf_exporter_block_rq_completed_bytes_total{device="nvme1n1"} 966656
    # HELP ebpf_exporter_block_rq_completions_total Total number of block request completions
    # TYPE ebpf_exporter_block_rq_completions_total counter
    ebpf_exporter_block_rq_completions_total{device="nvme0n1"} 35
    ebpf_exporter_block_rq_completions_total{device="nvme1n1"} 103
    ebpf_exporter_ebpf_program_info{config="complex-value",id="72",program="block_rq_complete",tag="34d2100b313409cd"} 1
@bobrik bobrik force-pushed the ivan/complex-value branch from 5e5b6d1 to dc471a1 Compare June 24, 2024 01:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant