Skip to Content.
Sympa Menu

perfsonar-user - Re: [perfsonar-user] Grafana Destination Host Variable Not Showing IPs

Subject: perfSONAR User Q&A and Other Discussion

List archive

Re: [perfsonar-user] Grafana Destination Host Variable Not Showing IPs


Chronological Thread 
  • From: "Strelka, Justin" <>
  • To: Andrew Lake <>, "Yamamoto, Miguel" <>
  • Subject: Re: [perfsonar-user] Grafana Destination Host Variable Not Showing IPs
  • Date: Tue, 11 Jun 2024 21:58:27 +0000
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nrel.gov; dmarc=pass action=none header.from=nrel.gov; dkim=pass header.d=nrel.gov; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=YCb68minfYzOiIFppkjMFBVdieTQU8cAU2ALZKjd1Dw=; b=SflV3Jyu+yRDc7YFatTy5ZcOFA6PuGD65LflfuwYkY6QSbBvLco7bt3EArrHGEGg0mhLLVufj1JIGm80eCKmHqGC3VIoKzeEkf6rpO1YK6cs0fw12N3wvK57JmprFs2s1wirtIyJi/WfkzJdm3BDPl2bmt1QjF37heUHeUnozSLVdm5TBaNELeaNA985p3fz0XEtr/1zGd9ooHYGX+5yw0gBx0VwErkwYcBtP7R36VLjshv0nwRsj88ivRd2DTu4r+t76wrUzWK8g5aIk7qOWZt61l023XwY0DhKUZBl8R3I7lgigWN3Hvnwuh/Q6MSzl2Gvjgj8kz8jzdFZ5A/lcw==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=RCwCTuW2bWsEKzB8tjbuuvcGS3fHsX/2i6Q/pzcHdtK1R2tXgFPa0YyjQbrMAbmHxJ7mkoM6zhhVvqSnm9xXpmqYn1n4jApqFjxhmgmfE1ua4pnfu64EU/5SDXShT4U0ng6kg6izXYd5ik33gv3gkLzKHAwbujezzo4RDZ9K3V3DW5QmFZR7yMCLs5Pgt0UZbI2HEq6qJss2My42SUy19GUx3pouexD0ylHnN6INrHGB4aAleuoHvmZYg9KERnu+37FxcoiGi0bPNpmDdAqA/wi04nPnVXBDAXiRawe4RjWVXkL3Aa6pnM8y0ZH8pOWMeWlTOr6npkgYsd7bVjfPOA==
  • Msip_labels: MSIP_Label_95965d95-ecc0-4720-b759-1f33c42ed7da_Enabled=True;MSIP_Label_95965d95-ecc0-4720-b759-1f33c42ed7da_SiteId=a0f29d7e-28cd-4f54-8442-7885aee7c080;MSIP_Label_95965d95-ecc0-4720-b759-1f33c42ed7da_SetDate=2024-06-11T21:55:16.7552245Z;MSIP_Label_95965d95-ecc0-4720-b759-1f33c42ed7da_ContentBits=0;MSIP_Label_95965d95-ecc0-4720-b759-1f33c42ed7da_Method=Standard

Hello,

 

No not all of our testpoint destinations in the example provided have resolving hostnames. There are 2 that only have IP addresses which do not show up in the destination variable currently. When I change the variable to search on meta.destination.ip instead of the hostname field both the missing IPs show up as expected along with the IPs of the hosts that have hostnames.

 

What you are describing happens in the DB when a hostname is not present would be ideal but it does not seem to be working that way currently in version 5.0.8

 

-Justin

 

From: Andrew Lake <>
Date: Tuesday, June 11, 2024 at 3:40 PM
To: Yamamoto, Miguel <>, Strelka, Justin <>
Subject: Re: [perfsonar-user] Grafana Destination Host Variable Not Showing IPs

CAUTION: This email originated from outside of NREL. Do not click links or open attachments unless you recognize the sender and know the content is safe.

If an IP address does not resolve to a hostname then the hostname field in the database will have the IP address and it will display. In other words the current field will return the IP addresses in such a case. In your example are there any IPs missing or were you just using that as an example and all your endpoints have hostnames?

 

 

On June 11, 2024 at 11:17:50 PM, Strelka, Justin () wrote:

Hello,

 

I noticed on our Grafana instance that in the “Source” and “Destination” host variables only hostnames are displayed as available options from the “meta.destination.hostname.keyword” field. Hostnames are obviously preferred to IPs, however there are some test points in the PerfSonar community that do not have resolving hostnames and only have IPs.

 

Is it possible to alter the “Source” and “Destination” variable queries for the Grafana perfSONAR Endpoint Pair Explorer to provide hostname as preferred option and if hostname does not exist display the IP from the “meta.destination.ip” field?

 

Screenshot attached to show only hostnames are displayed for options in the variable drop downs.

 

 

Below is the query used in Grafana to display the hostnames which would need to be altered to display hostname if available and IP if hostname does not exist.

 

{"find": "terms", "field":"meta.destination.hostname.keyword", "size": 10000000}

 

Thanks,

Justin

--
To unsubscribe from this list: https://lists.internet2.edu/sympa/signoff/perfsonar-user

Attachment:
Description:




Archive powered by MHonArc 2.6.24.

Top of Page