Skip to content

Render query result with 1st column as datetime as is #625

Closed Answered by burningalchemist
brunogonzalez asked this question in Q&A
Discussion options

You must be logged in to vote

Some thoughts:

  • You might want to use transformations in Grafana as datetimeutc is just a label, so it's not processed as a timestamp in Grafana (and maybe that's the reason of a broken chart);

  • You also might want to try timestamp_value parameter as in the example:

# Timestamp value (optional). Should point at the existing column containing valid timestamps to return a metric with an explicit timestamp.
timestamp_value: CreatedAt

This feature is available in sql_exporter since v0.14, but if you're using the embedded exporter from Alloy, I don't know if they updated the config file in Grafana Alloy (they never reached out to me, so I don't know the current status of this integration).

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@burningalchemist
Comment options

Answer selected by burningalchemist
Comment options

You must be logged in to vote
1 reply
@burningalchemist
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants