Giter Club home page Giter Club logo

No configuration file loaded - checking env: While parsing config: invalid character '\x7f' looking for beginning of value ERRO[0000] No configuration file loaded - using defaults - checking env We don't have any active DB session configured. Please check your config about promcasa HOT 5 CLOSED

aitudorm avatar aitudorm commented on September 26, 2024
No configuration file loaded - checking env: While parsing config: invalid character '\x7f' looking for beginning of value ERRO[0000] No configuration file loaded - using defaults - checking env We don't have any active DB session configured. Please check your config

from promcasa.

Comments (5)

lmangani avatar lmangani commented on September 26, 2024

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.

aitudorm avatar aitudorm commented on September 26, 2024

Ok then, is it required to install certain version of Golang (1.19) on instance?

from promcasa.

lmangani avatar lmangani commented on September 26, 2024

@aitudorm not unless you want to compile it. just download a release

from promcasa.

aitudorm avatar aitudorm commented on September 26, 2024

@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.

lmangani avatar lmangani commented on September 26, 2024

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 photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.