Comments (5)
Hello @aitudorm
The configuration is simply a parameter of the binary. For instance ./promcasa config.json
As of the ClickHouse queries, please refer to the examples and go from there. Note you need tags as well:
{
"_info": "Custom Metrics from Clickhouse",
"name": "my_status", // must be unique
"help": "My Status",
"query": "SELECT tags, count(*) as counter FROM orders FINAL PREWHERE (date>= toDateTime(now()-3600)) AND (date< toDateTime(now()) ) group by tags",
"labels": ["tags"], // must match columns
"counter_name": "counter",
"refresh": "1h", // Refesh takes unit sign: (ns, ms, s, m, h)
"type":"gauge" // gauge, histogram, counter
}
Promcasa queries ClickHouse and exposes it's own /metrics
endpoint.
Configuring an endpoint in ClickHouse is not part of the capabilities.
from promcasa.
Ok then, is it required to install certain version of Golang (1.19) on instance?
from promcasa.
@aitudorm not unless you want to compile it. just download a release
from promcasa.
@lmangani could you explain how to configure connection to database? What does mean "table_prefix" in json configuration. How to specify to which database connect. Also is there any opportunity to add one more query to fetch another custom metric? Or I should deploy second prompaca config?
from promcasa.
It seems you have not actually tried to use promcasa. Please do and feel free to submit any actual issues you might find.
from promcasa.
Related Issues (7)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from promcasa.