# Need add more services (external service which the same service) on many target at the same time

**URL:** <https://forums.percona.com/t/need-add-more-services-external-service-which-the-same-service-on-many-target-at-the-same-time/13893>\
**Category:** PMM 1.x\
**Tags:** pmm, percona\
**Created:** [January 13, 2022, 8:50am UTC](https://forums.percona.com/t/need-add-more-services-external-service-which-the-same-service-on-many-target-at-the-same-time/13893 "2022-01-13T08:50:20Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![khuent](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/khuent/32/5211_2.png) [@khuent](https://forums.percona.com/u/khuent)\
**Post date:** [January 13, 2022, 8:50am UTC](https://forums.percona.com/t/need-add-more-services-external-service-which-the-same-service-on-many-target-at-the-same-time/13893/1 "2022-01-13T08:50:20Z")

</div>

Dear Supporters,  
My system is running PMM 1.17.4.  
I have problem with add external service on many target at the same time. I deployed clickhouse\_exporter , and add external service from pmm client. It worked perfectly.  
My deploy progress:  
1/ Compile clickhouse\_exporter with Go lang on this link without change any parameter: [GitHub - flant/clickhouse\_exporter: Image for Percona-Lab/clickhouse\_exporter](https://github.com/flant/clickhouse_exporter)  
2/ Execute exporter on the client : ./clickhouse\_exporter -scrape\_uri=[http://hostname:8123/](http://hostname:8123/) &  
3/ Add external service: pmm-admin add external:service clickhouse --service-port=9116

After that, i tried to deploy with the same progress on another hosts but i could only add 1 target, the new target replaced old one.  
I read this note : [External Services - Percona Monitoring and Management](https://www.percona.com/doc/percona-monitoring-and-management/2.x/setting-up/client/external.html)

I see the part can gather all target which same services into 1 group. But this note for pmm2.x. So I could not apply it.  
Could you please support me solve this problem ?

---

<div class="post-metadata">

**Author:** ![Vadim\_Yalovets](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/vadim_yalovets/32/43_2.png) [@Vadim\_Yalovets](https://forums.percona.com/u/Vadim_Yalovets)\
**Post date:** [January 14, 2022, 10:41am UTC](https://forums.percona.com/t/need-add-more-services-external-service-which-the-same-service-on-many-target-at-the-same-time/13893/2 "2022-01-14T10:41:29Z")

</div>

Hi Khue,

Did you specify different service names or it was clickhouse on all hosts?

e.g.  
$ pmm-admin add external:service --service-port=9116 clickhouse  
$ pmm-admin add external:service --service-port=9116 clickhouse2

---

<div class="post-metadata">

**Author:** ![khuent](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/khuent/32/5211_2.png) [@khuent](https://forums.percona.com/u/khuent)\
**Post date:** [January 17, 2022, 5:00am UTC](https://forums.percona.com/t/need-add-more-services-external-service-which-the-same-service-on-many-target-at-the-same-time/13893/3 "2022-01-17T05:00:31Z")

</div>

Dear Adivinho,  
Thank you for your quickly response. I did as your suggestion. It worked

 ![pmm-support01](https://us1.discourse-cdn.com/flex019/uploads/percona1/original/2X/5/5299d09f1eb1de4d491167ec587bda06dab08126.png)

But I really want add many target into only one job name as below. I did it by editing manually the /etc/prometheus.yml . Could you give me the command line (pmm-admin) for adding target without editing like that ?

 ![pmm-support02](https://us1.discourse-cdn.com/flex019/uploads/percona1/original/2X/5/5e72b50a76ea3223a256a41d9b94273ea05a9f33.png)

Thank you for your supporting !

---

<div class="post-metadata">

**Author:** ![Vadim\_Yalovets](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/vadim_yalovets/32/43_2.png) [@Vadim\_Yalovets](https://forums.percona.com/u/Vadim_Yalovets)\
**Post date:** [January 17, 2022, 11:10am UTC](https://forums.percona.com/t/need-add-more-services-external-service-which-the-same-service-on-many-target-at-the-same-time/13893/4 "2022-01-17T11:10:06Z")

</div>

> [@khuent](#):
>
> Could you give me the command line (pmm-admin) for adding target without editing like that ?

Sad to say but there is no such command.
