-
Notifications
You must be signed in to change notification settings - Fork 76
Open
Description
Description
We noticed that some metrics are not pushed randomly. After some debugging, we found out that this only happens when vmagent is running for a short period of time and cannot push all the metrics because some of them were created between the last scrape and shutdown.
The metrics appear in the input file, but they are not sent to the -remoteWrite.url endpoint.
A possible solution might be to change the code here
Lines 236 to 242 in fdfd428
| case <-stopCh: | |
| if wg != nil { | |
| wg.Done() | |
| } | |
| return | |
| } | |
| } |
to push the metrics on shutdown
To reproduce
Use vmagent in an environment with a short life cycle.
Version
vmagent-20230313-021802-tags-v1.89.1-0-g388d6ee16
But it doesn't really matter since the same problem exists even in the last version of vmagent
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels