Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add graphs templates #112

Closed
falzm opened this issue Aug 28, 2014 · 4 comments
Closed

Add graphs templates #112

falzm opened this issue Aug 28, 2014 · 4 comments
Labels
Back-end Back-end component related (API) Front-end Front-end component related (Web UI, CLI) New Feature New feature introduction
Milestone

Comments

@falzm
Copy link
Member

falzm commented Aug 28, 2014

Implement a templating system to allow dynamic graphs rendering.

The idea is to be able to display collections featuring graphs based on a pre-defined "model", but without requiring explicitly defined graphs features such as sources and metrics.

@falzm falzm added this to the 0.3.0 milestone Aug 28, 2014
@falzm falzm added UI labels Aug 28, 2014
@vbatoufflet
Copy link
Member

Maybe we could use something like the following JSON structure to store template relations with their attributes:

{
    "id": "...",
    "template": "...",
    "attributes": {
        "source1": "host1.example.net"
    }
}

@falzm
Copy link
Member Author

falzm commented Sep 26, 2014

Following the same logic, a graph template JSON definition would look like this:

{
    "id": "85c08784-d8c0-4366-7c1b-70dbefde6bed",
    "name": "{{ .Source }} — network traffic",
    "description": "",
    "type": 1,
    "stack_mode": 1,
    "unit_type": 2,
    "unit_legend": "bytes/s",
    "groups": [
        {
            "name": "group0",
            "type": 4,
            "stack_id": 0,
            "series": [
                {
                    "name": "group:net.*.octets.rx",
                    "origin": "collectd",
                    "source": "{{ .Source }}",
                    "metric": "group:net.*.octets.rx",
                    "options": null
                },
                {
                    "name": "group:net.*.octets.tx",
                    "origin": "collectd",
                    "source": "{{ .Source }}",
                    "metric": "group:net.*.octets.tx",
                    "options": null
                }
            ],
            "options": {}
        }
    ]
}

@vbatoufflet
Copy link
Member

Graphs templates are in the process of being shipped soon and we are working on collection template support.

See facette:templates for details.

@falzm falzm changed the title Add graphs/collections templates Add graphs templates Mar 22, 2015
@falzm
Copy link
Member Author

falzm commented Mar 22, 2015

A dedicated issue (#170) has been opened for collection templates implementation, since it will be released in a separate version.

@falzm falzm closed this as completed Mar 22, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Back-end Back-end component related (API) Front-end Front-end component related (Web UI, CLI) New Feature New feature introduction
Projects
None yet
Development

No branches or pull requests

2 participants