So here's another video on Value Group's tags inside your Fana and remembering that Value Group's tags
behaves very differently depending on the data source that you're using the queries.
So this example will be more specific for when you're using influx DB and also using Telegraaf as the
collector.
OK, so this is our current drop down, and so far in the course, we know how to create a drop down
like this and we know how to fill it with data and we know how to create repeating graphs on the data
that will update the dashboard once we select a different combination of items from the dropdown.
And this example is shown in octets and out audits of all the interfaces of one of my specific hosts
to show the query.
OK, so we're selecting Interface where the agent Hosty calls one or more service because on that host
I have a whole lot of interfaces.
These are mostly DOCA interfaces and the S&P input that we set up and telegraphs returning the names
of all the interfaces I can afford on the host.
So this would be the same whether you had a meeting in Beirut or you'd have probably names for every
single port.
So this is what this is.
I want to be at a group these is some kind of way.
Now, you could say that this is perfect already, but it's not.
For example, let's say we had, say, 100 interfaces on here and you had all selected this page would
suddenly become quite slow to refresh and present and query.
So you might want to go, OK, I want to see all of these ones.
Right, so we can we can do that.
We can select for a time.
That's OK.
But Value Groups Tags allows us to create extra grouping to the right of the dropdown.
So I can say give me all the interfaces for my web servers or give me all the interfaces for my database
service, etc..
We're going to do that in this video.
We're going to create a customized tagging.
We're going to do that by creating custom input in a telegraph collector.
So, okay, so I'm on my Ravana server where the telegraph collector is running and I can see that it's
running a pseudo service telegraph status.
OK, that's good.
OK, so now let's open up the telegraph config and create this custom input.
Pseudo nanahara atcc tell a graph telegraaf dot com.
So inputs for CPU disk, IBM, net system, processor kernel and all the inputs we credit first and
MP Damons in the early elections for a new import.
This one is going to be.
Input's exec.
This allows me to run a S.H. file on the server itself, the commands it calls.
And you put your name on your script here, use it for my script, our site, and you can run that script
in and you can make a return, something that resembles a telegraph dataset.
But I'm not going to do that.
I'm just going to use the Echo Command to return it straight from the config file.
So I'm going to first off, I'm just going to create some extra sittings, time out a course of second
dot form that he calls.
Blocks.
OK, so the first example that I will return will be.
Echo.
Containers, my group will be Web, and the value for Web will be one of the interfaces in my dropdown.
So I might drop down here.
I got one called I.C.C., this one here that I'm going to put into a group called Web back on here.
This is what we're doing.
We're echoing a string.
And Tyner's is the measurement that will appear in influx.
DB you will have a K in it whose name is Web and it'll have a value being.
This and because it's a string, I've wrapped it in this escape, but it comes here on the side, so
this one command, I goes, it's just rather than calling a script on my server, I'm just calling Echo
directly saw the configuration.
So let's save that.
Yes.
Let's restart the telegraph service.
OK, I can do a status to be sure, when.
Let's go now back into Carafano.
OK, so if I was to go to explore, explore.
And I have an influx, DBI selected and select measurement, I now get a new measurement.
The containers, that's the one we just created, and inside there we have a group and we credit the
group called Web.
There it is there and inside that we have a value and it's text.
So I can remove that.
I can remove the group.
A select table and there we go, we have.
Some values down the right there now to improve this, we've got to get one value going to aggregate
that to being distinct.
OK, so one value we can use this now, let's go into our dashboard now that I.
Half created by the group's tax influx, Dbag Telegraaf and will now add the tag to the right of this
dropdown for Web.
There are variables.
Let's open it up.
He's my original query, I'm trying to tag values from interface with key if description, and since
I have several hosts, I don't want to make this lecture any more complicated than it is.
I'm just restricting it to one of the hosts being that one, which actually has a lot of interfaces
on it.
OK, so we've got multi value.
We'll leave the all.
But now, now we'll practice fairly groups tags and remembering that it is an experimental feature version
six point four.
OK, so a tags query is going to be a show tag.
Values from Container's.
Where the Cagle's group, we will just update that now and look at it.
OK, so there we go, this web, but if I press, that doesn't do anything yet.
It's going now add that query that will auto select, well, at least this one for now, clearly credit
one.
Variables select a distinct value from containers where the group equals the tag update, go back into
here.
Let's try this again if I click there.
There we go.
It's ticked, if I unticketed, it takes it away, let's group some more of these values back into.
The configuration fall down where we created our custom inputs exec, we're going to echo some more
lines.
I'm going to echo.
Pretty much the same lawn.
Like, so sort of using a comma here to separate each line, this one still going to be Container's
group web, but the value is different.
The name of a different interface and that dropdown, that will be that one, they're.
OK, so let's save that and see what that looks like, Triple X..
Yes, a restart the telegraph service, OK.
Let's check the status status is still good back into Ghafar now, it's safe where we are.
This is going to explore and see what we get container's.
A group he calls Web.
Most of.
Distinct.
And we get to now in the list I i.c.c. and see for if I go back into our dashboard dashboard in flux
and here if we select Web, we now get to select it on and off like that to describe two more groups.
And we'll put this all into one of the three groups back on Telegraaf.
Let's open up the configuration file, go down to the custom input here and we'll add some more lines
for the rest of those interfaces or.
OK, sir, I have three groups, Web DBE in cash now.
And I have each of those interfaces, names have been put into a their group, and I this is just an
example, it's control X years three start.
Let's check the status.
Very good, it's going back into Carafano, go into explore and see what we've got, select containers
where group equals cash, TV or web.
Let's have a look.
Distinct.
OK, so Cash DBE.
And Web.
They made have guessed three excellent, let's have a look at that inside the dashboard.
OK, still on this one.
OK, so let's update our variable here.
Was Cagle's group date.
OK, cash, Debbie Webb, slick cash, those three interfaces are selected by Slick Debbie, those three
devices and Web is those two devices.
There we go.
So now if I have the problem where all is just way too many, I can now create a way to group.
Hosts such as Cash or Davin Webb, that will give me all those ones that I've grouped, for example.
I can group those using insects using the exact same method.
That's a custom value group's tag using the influx, Debbie DataSource with the telegraph colectomy.