You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, the following configuration in promtail can expose data to metrics
xxx.yaml
- metrics:
GRPCDelay:
source: GRPCDelay
type: Gauge
config:
action: set
Now I want to add a timestamp after the value. How to modify the yaml file?
For example, the logs exposed to the metric are as follows:
promtail_custom_GRPCDelay{Login="100001",Time="2024-09-05 15:05:10.670",filename="/data/server/logs/tradingservice.log"} 2.4105026 1692241058502(time)
The text was updated successfully, but these errors were encountered:
Currently, the following configuration in promtail can expose data to metrics
xxx.yaml
- metrics:
GRPCDelay:
source: GRPCDelay
type: Gauge
config:
action: set
promtail_custom_GRPCDelay{Login="100001",Time="2024-09-05 15:05:10.670",filename="/data/server/logs/tradingservice.log"} 2.4105026
Now I want to add a timestamp after the value. How to modify the yaml file?
For example, the logs exposed to the metric are as follows:
promtail_custom_GRPCDelay{Login="100001",Time="2024-09-05 15:05:10.670",filename="/data/server/logs/tradingservice.log"} 2.4105026 1692241058502(time)
The text was updated successfully, but these errors were encountered: