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

telegraf telemetry can't get metrics microburst #2

Open
bienkma opened this issue Jul 28, 2023 · 0 comments
Open

telegraf telemetry can't get metrics microburst #2

bienkma opened this issue Jul 28, 2023 · 0 comments

Comments

@bienkma
Copy link

bienkma commented Jul 28, 2023

I had a telegraf with telemetry gRPC port. It did not collect microburst metric. My configuration is below:

[global_tags]
[agent]
  interval = "10s"
  round_interval = true
  metric_batch_size = 1000
  metric_buffer_limit = 10000
  collection_jitter = "0s"
  flush_interval = "10s"
  flush_jitter = "0s"
  precision = "0s"
  hostname = ""
  omit_hostname = false
[[outputs.influxdb_v2]]
   urls = ["http://127.0.0.1:8086"]
   token = "token"
   organization = "ghtk"
   bucket = "ghtk"

[[outputs.file]]
  ## Files to write to, "stdout" is a specially handled file.
  files = ["/tmp/metrics.out"]

  data_format = "influx"
  • and input
[[inputs.cisco_telemetry_mdt]]
 transport = "grpc"
 service_address = ":4317"
 max_msg_size = 20000000
  • cisco Nexus9000 C93180YC-FX3 Chassis; NXOS: version 10.2(5):
telemetry
  destination-profile
    use-vrf default
    source-interface Vlan851
  destination-group 1
    ip address [[telemetry_telegraf_ip]] port 4317 protocol gRPC encoding GPB 
      use-nodeid [[SWITCH-NODE-NAME]]
    use-chunking size 4096
  sensor-group 1
    data-source NATIVE
    path microburst
  subscription 1
    dst-grp 1
    snsr-grp 1 sample-interval 0
  • check output file on telegraf server
tail -f /tmp/metrics.out  -n 3000
show\ processes\ cpu\ sort,TABLE_process_cpu=28924,host=hn-fornix-testing-telemetry,path=show\ processes\ cpu\ sort,row_number=4,show\ processes\ cpu\ sort=show\ processes\ cpu\ sort,source=[[SWITCH-NODE-NAME]],subscription=2 process="sleep" 1690471005992000000
show\ processes\ cpu\ sort,host=hn-fornix-testing-telemetry,path=show\ processes\ cpu\ sort,row_number=5,show\ processes\ cpu\ sort=show\ processes\ cpu\ sort,source=[[SWITCH-NODE-NAME]],subscription=2 user_percent="21.98",kernel_percent="8.16",idle_percent="69.84",fivesec_percent=22i,fivesec_intr_percent=0i,onemin_percent=23i,fivemin_percent=23i 1690471005992000000
  • event on [[SWITCH-NODE-NAME]] switch
show telemetry event collector stats 

--------------------------------------------------------------------------------
Row ID         Collection Count  Latest Collection Time     Sensor Path(GroupId)
--------------------------------------------------------------------------------
1              883               Fri Jul 28 10:29:51.320    microburst(1)
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

No branches or pull requests

1 participant