Skip to content
This repository has been archived by the owner on Mar 3, 2023. It is now read-only.

push metrics to gateway error #24

Open
gtbio opened this issue Nov 4, 2022 · 2 comments
Open

push metrics to gateway error #24

gtbio opened this issue Nov 4, 2022 · 2 comments

Comments

@gtbio
Copy link

gtbio commented Nov 4, 2022

got error:
body="pushed metrics are invalid or inconsistent with existing metrics: pushed metrics must not have timestamps\n"

why is that?

@gtbio
Copy link
Author

gtbio commented Nov 4, 2022

config.ini:
[config]
push_interval = 60
pushgateway_url = "http://%s10.1.1.29:9091/metrics"
route_map = "/opt/prometheus-pusher/route.map"
#default_route = "prometheus1,prometheus2"

[resource1]
host = "10.1.1.218" # Default
path = "/metrics" # Default
ssl = false # Default
port = 9100

route.map is null

@pulecp
Copy link

pulecp commented Mar 1, 2023

The pushgateway URL looks wrong. Remove %s in the URL and try it again.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants