Comments (5)
I just tried but I cannot reproduce your issue
from ansible-grafana.
When I replace curl
with get_url
, it works. However, I see that in #77 it was changed from get_url
to curl
because:
[some] dashboards are so big that they don't fit into some cache used by get_url module
get_url:
url: "https://grafana.com/api/dashboards/{{ item.dashboard_id }}/revisions/{{ item.revision_id }}/download"
dest: "{{ _tmp_dashboards.path }}/{{ item.dashboard_id }}.json"
from ansible-grafana.
I tested all dashboards that were said to have an issue when using get_url
(6239
, 704
and 5566
) and I am happy to report that it worked for all of them:
TASK [cloudalchemy.grafana : download grafana dashboard from grafana.net to local directory] *************************
ok: [monitoring.plte.ch] => (item={'dashboard_id': 3662, 'revision_id': 2, 'datasource': 'PL Prometheus'})
ok: [monitoring.plte.ch] => (item={'dashboard_id': 12019, 'revision_id': 2, 'datasource': 'PL Loki'})
ok: [monitoring.plte.ch] => (item={'dashboard_id': 6239, 'revision_id': 1, 'datasource': 'PL Prometheus'})
ok: [monitoring.plte.ch] => (item={'dashboard_id': 704, 'revision_id': 1, 'datasource': 'PL Prometheus'})
ok: [monitoring.plte.ch] => (item={'dashboard_id': 5566, 'revision_id': 5, 'datasource': 'PL Prometheus'})
TASK [cloudalchemy.grafana : Set the correct data source name in the dashboard] **************************************
ok: [monitoring.plte.ch] => (item={'dashboard_id': 3662, 'revision_id': 2, 'datasource': 'PL Prometheus'})
ok: [monitoring.plte.ch] => (item={'dashboard_id': 12019, 'revision_id': 2, 'datasource': 'PL Loki'})
ok: [monitoring.plte.ch] => (item={'dashboard_id': 6239, 'revision_id': 1, 'datasource': 'PL Prometheus'})
ok: [monitoring.plte.ch] => (item={'dashboard_id': 704, 'revision_id': 1, 'datasource': 'PL Prometheus'})
ok: [monitoring.plte.ch] => (item={'dashboard_id': 5566, 'revision_id': 5, 'datasource': 'PL Prometheus'})
TASK [cloudalchemy.grafana : Import grafana dashboards through API] **************************************************
[WARNING]: Unable to find 'dashboards' in expected paths (use -vvvvv to see paths)
skipping: [monitoring.plte.ch] => (item=None)
skipping: [monitoring.plte.ch] => (item=None)
skipping: [monitoring.plte.ch] => (item=None)
skipping: [monitoring.plte.ch] => (item=None)
skipping: [monitoring.plte.ch] => (item=None)
skipping: [monitoring.plte.ch]
TASK [cloudalchemy.grafana : Create/Update dashboards file (provisioning)] *******************************************
ok: [monitoring.plte.ch]
TASK [cloudalchemy.grafana : Register previously copied dashboards] **************************************************
skipping: [monitoring.plte.ch]
TASK [cloudalchemy.grafana : Import grafana dashboards] **************************************************************
[WARNING]: Unable to find 'dashboards' in expected paths (use -vvvvv to see paths)
ok: [monitoring.plte.ch] => (item=/tmp/ansible.uq60auor/3662.json)
changed: [monitoring.plte.ch] => (item=/tmp/ansible.uq60auor/704.json)
changed: [monitoring.plte.ch] => (item=/tmp/ansible.uq60auor/5566.json)
ok: [monitoring.plte.ch] => (item=/tmp/ansible.uq60auor/12019.json)
ok: [monitoring.plte.ch] => (item=/tmp/ansible.uq60auor/6239.json)
So, I will consider switching back to get_url
is a valid solution and switch back to it. I'll create a PR.
from ansible-grafana.
I've had this problem on my own debian 10 hosts for months now, thanks for linking to the PR that fixes it.
from ansible-grafana.
This role has been deprecated in favor of a the grafana-ansible-collection collection.
from ansible-grafana.
Related Issues (20)
- Allow disabling check_for_updates HOT 1
- Enable setting date_formats in grafana.ini HOT 3
- Allow user to define default_home_dashboard_path HOT 3
- Make grafana.ini template configurable HOT 1
- Configuring `grafana_security.admin_user` and `grafana_security.admin_password` do not work HOT 3
- Problem with more than one datasources grafana influxdb HOT 2
- Grafana HA on Mysql DB HOT 1
- feature_toggles config is missing HOT 1
- Download grafana dashboard from grafana.net to local directory - curl error HOT 2
- Installing latest versus a specific version HOT 1
- Deprecation warning about `include` HOT 2
- LDAP password does not get decrypted in ldap.toml HOT 2
- search_base_dns is badly formatted in grafana ldap config HOT 1
- Import grafana dashboards skipping with variable dashboard_id HOT 1
- Don't fail if `grafana_cap_net_bind_service` is not set for ports lower than 1024 HOT 1
- Add support for file based alert provisioning HOT 1
- grafana GPG key revoked HOT 2
- Failed to download grafana dashboard from grafana.net HOT 4
- wait_for timeout not long enough HOT 1
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 ansible-grafana.