# scrape data from client with wrong interval

**URL:** <https://forums.percona.com/t/scrape-data-from-client-with-wrong-interval/6855>\
**Category:** PMM 1.x\
**Created:** [February 20, 2019, 4:08am UTC](https://forums.percona.com/t/scrape-data-from-client-with-wrong-interval/6855 "2019-02-20T04:08:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![aaron](https://avatars.discourse-cdn.com/v4/letter/a/e19adc/32.png) [@aaron](https://forums.percona.com/u/aaron)\
**Post date:** [February 20, 2019, 4:08am UTC](https://forums.percona.com/t/scrape-data-from-client-with-wrong-interval/6855/1 "2019-02-20T04:08:04Z")

</div>

I install pmm server:1.10.0 via docker.  
And I use pmm clinet 1.10.0 version also.

os : 7.4 redhat

There is not any abnormal things in the period of installation with default setting.  
After installation, I use [url][http://ip/prometheus[/url]](http://ip/prometheus%5B/url%5D) to get some machine information.  
Then i find that there are 4 records in 20 minutes. like pic 1.

So i try to check and tune the scrape setting in /etc/prometheus.yml.  
I find that whatever i tune the situation is no changed.

Any one could help me to figure it out?  
Following is the initial prometheus config file content.

global: scrape\_interval: 1m scrape\_timeout: 10s evaluation\_interval: 1m scrape\_configs: - job\_name: prometheus scrape\_interval: 1s scrape\_timeout: 1s metrics\_path: /prometheus/metrics scheme: http static\_configs: - targets: - localhost:9090 labels: instance: pmm-server - job\_name: grafana scrape\_interval: 5s scrape\_timeout: 4s metrics\_path: /metrics scheme: http static\_configs: - targets: - localhost:3000 labels: instance: pmm-server - job\_name: linux scrape\_interval: 1s scrape\_timeout: 1s metrics\_path: /metrics scheme: http static\_configs: - targets: - localhost:9100 labels: instance: pmm-server consul\_sd\_configs: - server: localhost:8500 datacenter: dc1 tag\_separator: ‘,’ scheme: http services: - linux:metrics basic\_auth: username: pmm password: tls\_config: insecure\_skip\_verify: true relabel\_configs: - source\_labels: [\__meta\_consul\_tags] separator: ; regex: .\*,alias_([-\w:.]+),.\* target\_label: instance replacement: $1 action: replace - source\_labels: [\_\_meta\_consul\_tags] separator: ; regex: ._,scheme\_https,._ target\_label: **scheme** replacement: https action: replace - job\_name: proxysql scrape\_interval: 1s scrape\_timeout: 1s metrics\_path: /metrics scheme: http consul\_sd\_configs: - server: localhost:8500 datacenter: dc1 tag\_separator: ‘,’ scheme: http services: - proxysql:metrics basic\_auth: username: pmm password: tls\_config: insecure\_skip\_verify: true relabel\_configs: - source\_labels: [\__meta\_consul\_tags] separator: ; regex: .\*,alias_([-\w:.]+),.\* target\_label: instance replacement: $1 action: replace - source\_labels: [\_\_meta\_consul\_tags] separator: ; regex: ._,scheme\_https,._ target\_label: **scheme** replacement: https action: replace - job\_name: mongodb scrape\_interval: 1s scrape\_timeout: 1s metrics\_path: /metrics scheme: http consul\_sd\_configs: - server: localhost:8500 datacenter: dc1 tag\_separator: ‘,’ scheme: http services: - mongodb:metrics basic\_auth: username: pmm password: tls\_config: insecure\_skip\_verify: true relabel\_configs: - source\_labels: [\__meta\_consul\_tags] separator: ; regex: .\*,alias_([-\w:.]+),.\* target\_label: instance replacement: $1 action: replace - source\_labels: [\_\_meta\_consul\_tags] separator: ; regex: ._,scheme\_https,._ target\_label: **scheme** replacement: https action: replace - source\_labels: [_meta\_consul\_tags] separator: ; regex: .\*,cluster([-\w:.]+),.\* target\_label: cluster replacement: $1 action: replace - job\_name: mysql-hr scrape\_interval: 1s scrape\_timeout: 1s metrics\_path: /metrics-hr scheme: http consul\_sd\_configs: - server: localhost:8500 datacenter: dc1 tag\_separator: ‘,’ scheme: http services: - mysql:metrics basic\_auth: username: pmm password: tls\_config: insecure\_skip\_verify: true relabel\_configs: - separator: ; regex: (.) target\_label: job replacement: mysql action: replace - source\_labels: [\_\_meta\_consul\_tags] separator: ; regex: .,alias_([-\w:.]+),.\* target\_label: instance replacement: $1 action: replace - source\_labels: [\__meta\_consul\_tags] separator: ; regex: .,scheme\_https,. target\_label: **scheme** replacement: https action: replace - job\_name: mysql-mr scrape\_interval: 5s scrape\_timeout: 1s metrics\_path: /metrics-mr scheme: http consul\_sd\_configs: - server: localhost:8500 datacenter: dc1 tag\_separator: ‘,’ scheme: http services: - mysql:metrics basic\_auth: username: pmm password: tls\_config: insecure\_skip\_verify: true relabel\_configs: - separator: ; regex: (.) target\_label: job replacement: mysql action: replace - source\_labels: [\_\_meta\_consul\_tags] separator: ; regex: .,alias_([-\w:.]+),.\* target\_label: instance replacement: $1 action: replace - source\_labels: [\__meta\_consul\_tags] separator: ; regex: .,scheme\_https,. target\_label: **scheme** replacement: https action: replace - job\_name: mysql-lr scrape\_interval: 1m scrape\_timeout: 5s metrics\_path: /metrics-lr scheme: http consul\_sd\_configs: - server: localhost:8500 datacenter: dc1 tag\_separator: ‘,’ scheme: http services: - mysql:metrics basic\_auth: username: pmm password: tls\_config: insecure\_skip\_verify: true relabel\_configs: - separator: ; regex: (.) target\_label: job replacement: mysql action: replace - source\_labels: [\_\_meta\_consul\_tags] separator: ; regex: .,alias_([-\w:.]+),.\* target\_label: instance replacement: $1 action: replace - source\_labels: [\_\_meta\_consul\_tags] separator: ; regex: ._,scheme\_https,._ target\_label: **scheme** replacement: https action: replace - job\_name: rds-mysql-hr honor\_labels: true scrape\_interval: 1s scrape\_timeout: 1s metrics\_path: /metrics-hr scheme: http relabel\_configs: - separator: ; regex: (._) target\_label: job replacement: mysql action: replace - job\_name: rds-mysql-mr honor\_labels: true scrape\_interval: 5s scrape\_timeout: 1s metrics\_path: /metrics-mr scheme: http relabel\_configs: - separator: ; regex: (._) target\_label: job replacement: mysql action: replace - job\_name: rds-mysql-lr honor\_labels: true scrape\_interval: 1m scrape\_timeout: 5s metrics\_path: /metrics-lr scheme: http relabel\_configs: - separator: ; regex: (.\*) target\_label: job replacement: mysql action: replace - job\_name: rds-basic honor\_labels: true scrape\_interval: 1m scrape\_timeout: 55s metrics\_path: /basic scheme: http - job\_name: rds-enhanced honor\_labels: true scrape\_interval: 10s scrape\_timeout: 9s metrics\_path: /enhanced scheme: http

 ![photoid=53581](https://us1.discourse-cdn.com/flex019/uploads/percona1/original/2X/5/5a74d9f76bd68a01e49d7a7fd4d9a88c742ecf99.png)

---

<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:** [February 20, 2019, 10:38am UTC](https://forums.percona.com/t/scrape-data-from-client-with-wrong-interval/6855/2 "2019-02-20T10:38:40Z")

</div>

Hi [aaron](https://percona.vanillacommunities.com/profile/x/x/42683)

First, is there a particular reason you selected 1.10 instead of our latest 1.17.1 (released today in fact)? 1.10 is fine but just old…

Also it is hard to read your paste due to formatting, but it looks like you modified scrape\_timeout=1m and scrape\_interval=10s. I’m not sure if those values will be valid, for example we generally maintain scrape\_interval=1s in order to gather very high resolution data.

So can you share with us the commands you used to create and start your docker instances? that way we can see how the config file got set based on environment variables passed to entrypoint.sh.

Thanks!
