Coder Social home page Coder Social logo

Comments (2)

Griesbacher avatar Griesbacher commented on August 22, 2024

Hi,
I'm not sure if I got it correctly, if you change your rule to the following it is working:

$rule = new \histou\template\Rule(
    $host = '.*',
    $service = '.*myservice$',
    $command = '.*',
    $perfLabel = array('env1_process1_cpu', 'env1_process1_memory')
);

(I think you meant .* at the host and command field)
But otherwise you get an 500?

Normally the rule does not change the behaviour of a template, it just decides which template should be used for the current service.
There are typically two sources for errors

  • The template does not contain valid PHP code, which leads to the fact that the template will not be loaded, or it contains an runtimeerror which leads to an 500, in which case your webserver errorlog is your address.
  • The json object you generate with your PHP code is not a valid grafana dashboard, in this case you'll see an empty grafana website with an error text, that's a tricky one because there is no debug mode, so this means searching on your own.

Greetings,
Philip

from histou.

Griesbacher avatar Griesbacher commented on August 22, 2024

Closed due to inactivity.

from histou.

Related Issues (20)

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.