-->

DEVOPSZONES

  • Recent blogs

    Grafana_dashboard - not creating new dashboards via Ansible

    Grafana_dashboard - not creating new dashboards via Ansible


    Error: Unable to create the new dashboard edO3sTlipu : 404 - {'status': 404, 'body': '{"message":"Dashboard not found","status":"not-found"}',


    Resolution:


    When your JSON file contain a id field, Grafana API will search for a dashboard with this id, and if it does not exists it return a 404. Hence delete this from your JSON file and run your playbook.

    [root@ansibleserver ~]# ansible-playbook import_grafana_dashboard_playbook_manas.yml -vvv
    ansible-playbook 2.9.2
      config file = /etc/ansible/ansible.cfg
      configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
      ansible python module location = /usr/local/lib/python3.6/site-packages/ansible
    .
    .
    .
       "msg": "Dashboard edO3sTlipu updated",
        "uid": "edO3sTlipu"
    ....

    }
    META: ran handlers
    META: ran handlers

    PLAY RECAP *********************************************************************************************************************
    localhost                  : ok=2    changed=1    unreachable=0    failed=0    skipped=0    rescued=0    ignored=0



    No comments