prometheus-community / json_exporter

A prometheus exporter which scrapes remote JSON by JSONPath
Apache License 2.0
638 stars 197 forks source link

convert string format to timestamp #315

Open turalmirza opened 4 months ago

turalmirza commented 4 months ago

{ "id": 329, "username": "demo", "last_activity_on": "2024-06-29" } hi , I have a json output like this.i use last_activity as label in my metrics. but in promtheus side when i want to list last_activiy users more than 30 day promtheus cant understant it. beacuse date format writing in label as a string format. how can i solve this problem? here is my config file

modules: gitlab:
metrics: