{"id":18858497,"url":"https://github.com/hardwario/grafana2mm","last_synced_at":"2025-08-07T16:04:53.024Z","repository":{"id":50167741,"uuid":"270273535","full_name":"hardwario/grafana2mm","owner":"hardwario","description":"Docker Image for Grafana to Mattermost","archived":false,"fork":false,"pushed_at":"2022-12-08T10:09:02.000Z","size":764,"stargazers_count":7,"open_issues_count":2,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-14T12:12:47.201Z","etag":null,"topics":["docker","grafana","mattermost","python","reporting"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hardwario.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-06-07T10:41:32.000Z","updated_at":"2023-03-02T18:00:29.000Z","dependencies_parsed_at":"2023-01-25T00:45:50.097Z","dependency_job_id":null,"html_url":"https://github.com/hardwario/grafana2mm","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/hardwario/grafana2mm","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hardwario%2Fgrafana2mm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hardwario%2Fgrafana2mm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hardwario%2Fgrafana2mm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hardwario%2Fgrafana2mm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hardwario","download_url":"https://codeload.github.com/hardwario/grafana2mm/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hardwario%2Fgrafana2mm/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269284619,"owners_count":24391127,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-07T02:00:09.698Z","response_time":73,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["docker","grafana","mattermost","python","reporting"],"created_at":"2024-11-08T04:13:40.913Z","updated_at":"2025-08-07T16:04:52.957Z","avatar_url":"https://github.com/hardwario.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# grafana2mm - Grafana to Mattermost\r\n\r\nThis repository contains Python 3 application for capturing **Grafana panel(s)** from the previous day and sending them to **Mattermost channel(s)** with an optional message. Everything is configured via a TOML configuration file. You can define multiple Mattermost channels and Grafana panels to be fetched/fed.\r\n\r\nThe application is typically deployed via Docker. The Docker image is built by the user (`Dockerfile` is included).\r\n\r\nThis is the example output when the application has run:\r\n\r\n![Mattermost screenshot with Grafana panels](screenshot.png)\r\n\r\nEnjoy proactive sharing of Grafana panels with your friends!\r\n\r\n\r\n## Requirements\r\n\r\n* Git\r\n* Docker\r\n* Grafana\r\n* Mattermost\r\n\r\n\r\n## Download\r\n\r\nClone this repository:\r\n\r\n    $ git clone https://github.com/hardwario/grafana2mm.git\r\n\r\n\r\n## Build\r\n\r\nAfter the release has been downloaded and unpacked, it is necessary to build the Docker image.\r\n\r\nIt can be done with these commands:\r\n\r\n    $ cd grafana2mm\r\n    $ docker build --tag grafana2mm .\r\n\r\n\r\n## Configuration\r\n\r\nYou have to prepare the configuration file first. The included `config.toml` is a good starting point. The configuration file is not a part of the Docker image but it is supplied to the Docker container when started.\r\n\r\n\u003e Attention: Because the configuration file contains sensitive credentials, make sure you set the proper permissions on it.\r\n\r\n\r\n## Usage\r\n\r\nThe tool can be run using this command:\r\n\r\n    $ docker run --name grafana2mm --rm -it -v $(pwd)/config.toml:/app/config.toml grafana2mm\r\n\r\nIt is intended to put this command e.g. in your **crontab** to be run periodically. You can edit **crontab** with this commands:\r\n\r\n    $ crontab -e\r\n\r\n\r\n## Development\r\n\r\nIt is recommended to use `pyenv` + `venv` (`venv` is part of the standard Python distribution) to manage your Python environment. Here is the development environment activation procedure:\r\n\r\nSwitch to the Git repository:\r\n\r\n    $ cd grafana2mm\r\n\r\nMake sure the Python version matches the `.python-version` file:\r\n\r\n    $ pyenv local\r\n\r\nCreate (just one) the virtual environment:\r\n\r\n    $ python -m venv .venv\r\n\r\nActivate the virtual environment:\r\n\r\n    $ source .venv/bin/activate\r\n\r\nInstall all required dependencies:\r\n\r\n    $ pip install -r requirements.txt\r\n\r\nVerify the application runs:\r\n\r\n    $ python app.py --version\r\n\r\nDo not forget to change the version in the file `version.txt`.\r\n\r\n\r\n## Authors\r\n\r\n* [**Pavel Hübner**](https://github.com/hubpav) - Initial work\r\n\r\n\r\n## License\r\n\r\nThis project is licensed under the [**MIT License**](https://opensource.org/licenses/MIT/) - see the [**LICENSE**](https://github.com/hardwario/grafana2mm/blob/master/LICENSE) file for details.\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhardwario%2Fgrafana2mm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhardwario%2Fgrafana2mm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhardwario%2Fgrafana2mm/lists"}