WEBVTT

00:00.090 --> 00:07.050
OK, so now we'll set up an influx, Debbie DataSource, and for that will install Influx Debbie version

00:07.050 --> 00:07.420
two.

00:07.440 --> 00:08.720
And that's what we'll set up in this video.

00:08.730 --> 00:14.310
The next video we'll set up a telegraph collector that will collect data using various plug ins and

00:14.310 --> 00:16.470
store it in the influx DB database.

00:16.470 --> 00:17.190
And then we can raid.

00:17.190 --> 00:22.250
That's record pharma anomaly already installed in flux DB on the same server as Mega-fauna server.

00:22.260 --> 00:27.000
And that was the case when I was using influx to version one for version two is a much bigger system

00:27.000 --> 00:30.780
now, so it warrants being on its own server in a way.

00:30.810 --> 00:33.120
So in this video, I'll set it up on a new server.

00:33.150 --> 00:34.320
So I'm using digitalization.

00:34.320 --> 00:36.300
I'm going to create a new droplet.

00:37.560 --> 00:37.970
OK.

00:38.010 --> 00:43.200
Ubuntu twenty point zero for Basic, just a $6 a month is good enough.

00:43.620 --> 00:44.940
I'm going to put in Amsterdam.

00:45.450 --> 00:47.650
I'm going to use my suicide cookie credit password.

00:47.670 --> 00:51.570
If you need it, I'm just going to call it in flux.

00:51.900 --> 00:53.130
Debug, for example.

00:53.610 --> 00:54.270
Anything you like?

00:54.330 --> 00:54.630
OK.

00:54.660 --> 00:55.380
Great droplet.

00:59.020 --> 01:01.030
OK, nice job dress he gave me.

01:01.060 --> 01:01.720
Copy that.

01:01.840 --> 01:03.580
OK, so I'm going to quickly set up party.

01:03.610 --> 01:08.950
I'm going to call it in flux, going to set my key because I'm using an associated key.

01:09.010 --> 01:11.980
I'm going to set the appearance so that the text is larger.

01:13.130 --> 01:15.060
Back to session and then just press.

01:15.540 --> 01:16.540
And there it is there now.

01:16.560 --> 01:18.210
Open it up, take root.

01:18.600 --> 01:24.090
Up logged on to my new server that I'm going to use for influx Debbie and also the IP addresses that

01:24.150 --> 01:24.390
now.

01:24.390 --> 01:26.990
I'm also going to use the VPC network in this example.

01:27.000 --> 01:31.380
So the microphone, a server mine in flux DB servers will communicate across the private network.

01:31.530 --> 01:37.290
OK, so let's next install influx DB on that server install commands you can find in this link.

01:38.540 --> 01:42.120
And down here, I'll be installing version two point one point one.

01:42.140 --> 01:44.590
That is the latest version of the Tom of making this video.

01:44.600 --> 01:48.650
If there are new versions when you watch this video, then you can try and install those.

01:48.650 --> 01:52.850
But all my examples and documentation will be for version two point one point one.

01:52.850 --> 01:53.210
Okay?

01:53.240 --> 01:57.420
I'll also be selecting Ubuntu and Debian, so I'll be running those commands.

01:57.440 --> 02:02.130
Now that's a lot of commands there, so I've got those commands on my documentation already here.

02:02.150 --> 02:04.590
I recommend running those commands one line at a time.

02:04.650 --> 02:09.260
Okay, so the first line, so I'm just copying that I'm on my server, it's going to right click and

02:09.290 --> 02:10.110
pastes.

02:10.130 --> 02:11.110
And so that's good.

02:11.120 --> 02:11.900
The next line?

02:11.930 --> 02:15.900
Copy that paste by right clicking into the next line.

02:15.920 --> 02:16.520
Same again.

02:16.520 --> 02:18.410
I'm clicking that copy to Clipboard Link.

02:18.890 --> 02:21.140
Right click Paste now.

02:21.170 --> 02:27.170
Sudo apt get update and celebrity get install influx TV to enter.

02:28.480 --> 02:29.020
Yes.

02:30.770 --> 02:36.080
OK, now normally it's not started by default, so we'll just verify that doing the studies in flux

02:36.080 --> 02:39.590
TB status says it's loaded, but it's not active.

02:39.620 --> 02:44.390
So let's start it controls sea start and check status again.

02:44.720 --> 02:46.220
We go active running control.

02:46.220 --> 02:46.520
See?

02:46.610 --> 02:49.010
Now that will be running on that IP address.

02:49.700 --> 02:51.390
Colon eight or eight.

02:51.410 --> 02:51.980
Six.

02:53.160 --> 02:57.840
OK, so there's a fancy user device, which comes part of influx debate to get started.

02:57.870 --> 02:58.930
We need to create a user.

02:58.950 --> 03:00.870
So a lot of ways it's very similar to Gravano.

03:00.880 --> 03:03.870
So I'm going to try to use Koger Pharma and the password.

03:03.900 --> 03:06.760
I'm just keeping it simple, but you can make yours very complicated.

03:06.780 --> 03:08.250
We need to put in an organization.

03:08.260 --> 03:09.460
You can put anything you like.

03:09.540 --> 03:15.390
I'm just going to put in ESP code and a default bucket and call that telegraph like that because will

03:15.390 --> 03:20.310
install the Telegraph collector and all the information will be stored into that bucket code telegraph.

03:20.490 --> 03:21.520
OK, continue.

03:21.540 --> 03:22.560
I'm going to press click start.

03:23.370 --> 03:25.980
OK, and then you'll say it's an application similar to Kafala.

03:25.990 --> 03:30.740
It's about reading time series data, and you can get that data from many places.

03:30.750 --> 03:31.850
So data there.

03:31.920 --> 03:36.630
So here are a whole bunch of instructions on how to get data from various places, but more of that

03:36.630 --> 03:37.910
later buckets.

03:37.950 --> 03:38.820
This is important.

03:38.820 --> 03:44.250
The Telegraph bucket is our default bucket that we just credit, and we'll be reading from that in Gravano.

03:44.280 --> 03:49.230
And if you click it, we can start to see some measurements on it submit and we can start to see some

03:49.230 --> 03:49.800
graphs.

03:50.100 --> 03:50.940
Five minutes.

03:50.980 --> 03:55.800
OK, so what we're seeing here is just default properties about the telegraph bucket.

03:55.800 --> 04:00.930
In the next video, we'll continue to set up a telegraph collector and we'll have a lot more properties

04:00.930 --> 04:05.230
that we can query before we continue to add functionality to the Telegraph Collector.

04:05.250 --> 04:10.710
We'll set up the data source in Gravano so that we can at least start seeing some of the data in gharana.

04:10.740 --> 04:12.820
So go into data first.

04:12.870 --> 04:17.640
Me to make sure we have a scraper and we do have a scraper is giving us a default so we can call that

04:17.640 --> 04:18.510
anything we like.

04:18.570 --> 04:20.520
I'll call it my scraper.

04:20.610 --> 04:21.330
It doesn't really matter.

04:21.370 --> 04:22.020
Just important.

04:22.020 --> 04:24.540
There is one scraper there and it displays the metrics.

04:24.540 --> 04:25.440
You are OK.

04:25.530 --> 04:31.170
The API tokens we have one token on a token will need that copy the clipboard.

04:31.260 --> 04:33.030
Now your token will be different.

04:33.060 --> 04:33.710
That's my one.

04:33.720 --> 04:40.620
Now go into Gravano, got into configuration data sources and added data source influx DB.

04:40.620 --> 04:43.500
So select that influx language.

04:43.500 --> 04:47.940
We're using influx DB two, so we need to select Flux the address.

04:47.940 --> 04:51.060
I'll be using the VPC address of my influx DB server.

04:51.090 --> 05:00.000
So if I go to distillation, networking, VPC and if I look at my Amsterdam remembers influx DB, it's

05:00.000 --> 05:03.300
IP address is that so I'll be connecting to my influx DB server.

05:03.300 --> 05:07.680
Using the internal IP, you could use the external IP, or you could have been stored in flux DB on

05:07.680 --> 05:11.340
the same server and you'd be using one 27 zero zero one or localhost.

05:11.550 --> 05:18.360
But I'm using 10 one three three zero two five column eight 000 eight six.

05:18.540 --> 05:20.400
OK, server default.

05:21.120 --> 05:26.160
We're not using Basic Cause organization code is the one I used.

05:26.220 --> 05:32.160
The token is what I just copied, so I'm pasting that in the token I got from this Raphinha's token

05:32.160 --> 05:32.670
right here.

05:32.700 --> 05:35.010
This is essentially a password that will be used.

05:35.070 --> 05:39.090
The default bucket doesn't matter what you right here, but I'm going to write Telegraph Save Sabin

05:39.090 --> 05:39.600
Test.

05:39.690 --> 05:40.080
Okay?

05:40.080 --> 05:42.960
And I were reading influx looks to be OK.

05:43.020 --> 05:45.400
Three buckets found sometimes doesn't work.

05:45.400 --> 05:47.100
Burscough Okay, now.

05:48.010 --> 05:55.720
We can go to explore and do a simple test, so in flux to be run a sample query, show buckets and a

05:55.720 --> 06:01.090
go telegraph tasks and monitoring those to our system buckets, we won't be using those.

06:01.090 --> 06:02.850
We'll be using the telegraph bucket.

06:02.860 --> 06:07.870
So if you can see a telegraph bucket when you use Explore in Flux DB, you run the sample query, then

06:08.020 --> 06:08.800
we can continue.

06:09.160 --> 06:17.140
OK, so I have connected to the BBC IP address and that was 10 Dot one three three zero five.

06:17.230 --> 06:22.760
Now I'm going to configure the firewall because that address up there is a public address.

06:22.780 --> 06:28.360
I'm now going to set up a firewall to restrict access to that to only my server that I'm using to make

06:28.360 --> 06:32.470
this video and also to the Raphinha's internal VPC address.

06:32.500 --> 06:36.810
So if I look at Mega-fauna server, it has an internal IP address as well.

06:36.820 --> 06:41.950
10 one three three zero three a copy that does put that in my diagram there.

06:42.070 --> 06:42.490
OK.

06:42.520 --> 06:49.090
I'm now going to set up the firewall, so only Mega-fauna server can access the influx DB server on

06:49.270 --> 06:53.500
eight zero eight six and also my computer's I'm creating this video on.

06:53.620 --> 06:54.010
OK.

06:54.040 --> 06:55.330
So firewalls.

06:56.880 --> 07:01.880
Create a new firewall in flux, be firewall, for example.

07:02.710 --> 07:11.320
Port, 20, to remove those and just use my IP address, which happens to be that so I can S.H. at a

07:11.320 --> 07:14.830
new rule for custom eight zero eight six.

07:16.030 --> 07:20.270
We're going to allow that IP address so that I can visit it in a browser just like I'm doing here.

07:20.490 --> 07:29.180
086 from my address and also allow Bafana's the PC address, which was that one they're into.

07:29.360 --> 07:30.350
OK, so.

07:31.370 --> 07:33.680
I'm not going to change any outbound rules.

07:33.770 --> 07:40.460
I'm going to apply it to my influx DB Droplet Crate Firewall now, if you're using IWC or some other

07:40.460 --> 07:46.130
cloud provider, you have a similar process for creating firewalls when I was the called security groups.

07:46.190 --> 07:51.560
If you don't want to use firewall like that, I've created some IP tables rules that you can adapt so

07:51.560 --> 07:55.850
you can accept from the particular IP address or domain isolate.

07:55.850 --> 07:56.370
Six.

07:56.390 --> 08:02.090
You can have multiple accept statements, drop everything else and then just verify that it exists in

08:02.090 --> 08:03.200
the IP tables list.

08:03.380 --> 08:08.600
OK, so going back to Gravano, we should verify that firewall set up still hasn't stopped our ability

08:08.600 --> 08:10.060
to query through Farnum.

08:10.070 --> 08:15.770
So data sources in flux DB and just do a quick test like three buckets found.

08:15.830 --> 08:21.260
So going back to Explore tab should better run that simple query again, and we can still see it, and

08:21.260 --> 08:23.690
these applications should still work in my browser.

08:23.810 --> 08:27.030
Scrapers Telegraph Buckets, sources.

08:27.050 --> 08:27.450
Excellent.

08:27.470 --> 08:33.080
In the next video will set up the Telegraph collector to start collecting statistics about the actual

08:33.080 --> 08:36.170
server that I've installed this influx DB onto.

08:36.200 --> 08:36.770
Excellent.
