# Getting Started with PMM2

**URL:** <https://forums.percona.com/t/getting-started-with-pmm2/14903>\
**Category:** Percona Monitoring and Management (PMM)\
**Created:** [March 25, 2022, 5:44pm UTC](https://forums.percona.com/t/getting-started-with-pmm2/14903 "2022-03-25T17:44:21Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bryan\_Dees](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/bryan_dees/32/7061_2.png) [@Bryan\_Dees](https://forums.percona.com/u/Bryan_Dees)\
**Post date:** [March 25, 2022, 5:44pm UTC](https://forums.percona.com/t/getting-started-with-pmm2/14903/1 "2022-03-25T17:44:21Z")

</div>

Hi,

I installed the server and registered my first client, but I’m having problems finding/understanding the setup moving forward. For example, after registering the client, I see OS metrics, but not MySQL metrics. I can create an instance, using the UI which will report the database info, but I now have 2 instances within the UI. Is there a way to add the MySQL credentials to the pmm client yaml, or is it standard to have 2 instances, one for OS metrics, the other Database? Is there a comprehensive how-to document someplace?

Thanks,

Bryan

---

<div class="post-metadata">

**Author:** ![Michael\_Coburn](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/michael_coburn/32/18_2.png) [@Michael\_Coburn](https://forums.percona.com/u/Michael_Coburn)\
**Post date:** [March 25, 2022, 5:50pm UTC](https://forums.percona.com/t/getting-started-with-pmm2/14903/2 "2022-03-25T17:50:38Z")

</div>

Hi @Bryan_Dees , welcome to the Percona forums!

I find the quickstart guide to be very helpful in terms of setting up hosts and clients such as MySQL:

> **[Install Percona Monitoring and Management](https://www.percona.com/software/pmm/quickstart#mysql80)**
>
> Quickstart: Install Percona Monitoring and Management

First create a user in MySQL to be used for monitoring:

```auto
CREATE USER 'pmm'@'localhost' IDENTIFIED BY 'pass' WITH MAX_USER_CONNECTIONS 10;
GRANT SELECT, PROCESS, SUPER, REPLICATION CLIENT, RELOAD, BACKUP_ADMIN ON *.* TO 'pmm'@'localhost';

```

Then add the MySQL instance to PMM using `pmm-admin` command line interface:

```auto
sudo pmm-admin add mysql --username=pmm --password=<password> --query-source=perfschema

```

See the full list of options available - for example I recommend you include the optional flags `--environment` and `--replication-set` as it improves the usefulness of some dashboards when you have many MySQL instances:

> **[MySQL - Percona Monitoring and Management](https://docs.percona.com/percona-monitoring-and-management/setting-up/client/mysql.html)**
>
> Documentation

---

<div class="post-metadata">

**Author:** ![Bryan\_Dees](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/bryan_dees/32/7061_2.png) [@Bryan\_Dees](https://forums.percona.com/u/Bryan_Dees)\
**Post date:** [March 25, 2022, 5:55pm UTC](https://forums.percona.com/t/getting-started-with-pmm2/14903/3 "2022-03-25T17:55:01Z")

</div>

Thanks! I’ll try that.
