|
The docs, as far as I can tell, assume you are both using prometheus and/or in the Kubernetes ecosystem. I have had entirely negative experiences with both, so I don't use them. Which leaves me wondering how to monitor my greptime instance. I was in the middle of configuring a sidecar container to have telegraf or vector scrape the prometheus endpoint, when I realized that would likely not format the data in a manner the prebuilt Grafana dashboards would adapt to very well. Would it work to scrape the data using vector, save it to greptimedb using the opentsdb or loki protocols, then tell grafana to query greptime db using promql like the docs say? I was planning on pointing to a secondary standalone instance of greptimedb for the metrics storage. Thanks! |
Replies: 1 comment 1 reply
|
You can deploy a vector to scrape the data and write to a standalone instance of greptimedb. We do this in our self-monitor component. Vector has existing sinks for greptimedb.
Additionally, we have a pipeline and a transform for our logs. You can check our operator for more details.
We configured greptimedb to use the JSON log format for vector. [logging]
dir = "/data/greptimedb/logs"
level = "info"
log_format = "json" |
You can deploy a vector to scrape the data and write to a standalone instance of greptimedb. We do this in our self-monitor component. Vector has existing sinks for greptimedb.
Additionally, we have a pipeline and a transform for our logs. You can check our operator for more details.