Let's go over the Prometheus Architecture.
So this is the Prometheus Architecture diagram.
You can find it on github.com/Prometheus/Prometheus.
There's a Prometheus Project under Prometheus User,
and here in the middle you find the Prometheus Server.
The Prometheus Server is going to do retrieval
using the configured targets,
as we explained in earlier lectures.
And the metrics that it retrieves
is going to store it on the node
using using the hard drive which can be HD
normals being this core SSD.
You can create all this data using PromQL.
Retrieval happens using Service Discovery, you can use DNS,
Kubernetes, Consul, something else for a custom integration.
So to find its targets you can either hard core two targets
or you can us the Service Discovery.
Prometheus pulls its metrics so it means that
there will be jobs and there will be exporters
where Prometheus can pull its data from
that's the /metrics that it is scraping.
Prometheus can also scrape from other Prometheus servers
so it can scrape from jobs exported,
but also from other Prometheus servers
so you can aggregate this data.
You can also have short-lived jobs which means
that you need a Pushgateway
because those jobs cannot be scraped anymore
because they don't live anymore.
Prometheus will also pull the metrics from a Pushgateway
so those keep in the metrics of the short-lived jobs.
So that's all what pulling concerns
and how you find your targets
and on the right you can do something with your metrics.
You can configure an Alertmanager so alerts are pushed
to the Alertmanager and then you can be notified
using email, using PagerDuty, using Slack or something else.
Using the Web UI you can then use PromQL
to query the Prometheus server.
You can also use Grafana I showed you
to create nice and meaningful dashboards.
Grafana can then do also authentication.
So you have a really nice use format
that you can use for customers or internally.
And then also Prometheus is an API
so API clients can connect to Prometheus
to get data to execute queries to do custom things.
You can also have third party software
that connects to Prometheus using the API to get the metrics
or to get some results out of Prometheus.