Skip to content

Commit

Permalink
Docs fixes (#66)
Browse files Browse the repository at this point in the history
Co-authored-by: Ishan Jain <[email protected]>
  • Loading branch information
theSuess and ishanjainn authored Jun 27, 2023
1 parent 3c273ca commit bd1871b
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 6 deletions.
2 changes: 1 addition & 1 deletion plugins/modules/alert_contact_point.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
author:
- Ishan Jain (@ishanjainn)
version_added: "0.0.1"
short_description: Manage Alerting Contact points in Grafana Cloud
short_description: Manage Alerting Contact points in Grafana
description:
- Create, Update and delete Contact points using Ansible.
requirements: [ "requests >= 1.0.0" ]
Expand Down
2 changes: 1 addition & 1 deletion plugins/modules/alert_notification_policy.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
author:
- Ishan Jain (@ishanjainn)
version_added: "0.0.1"
short_description: Sets the notification policy tree in Alerting on Grafana Cloud
short_description: Manage Alerting Policies points in Grafana
description:
- Set the notification policy tree using Ansible.
requirements: [ "requests >= 1.0.0" ]
Expand Down
2 changes: 1 addition & 1 deletion plugins/modules/dashboard.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
author:
- Ishan Jain (@ishanjainn)
version_added: "0.0.1"
short_description: Manage Dashboards in Grafana Cloud
short_description: Manage Dashboards in Grafana
description:
- Create, Update and delete Dashboards using Ansible.
requirements: [ "requests >= 1.0.0" ]
Expand Down
16 changes: 14 additions & 2 deletions plugins/modules/datasource.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
author:
- Ishan Jain (@ishanjainn)
version_added: "0.0.1"
short_description: Manage Data sources in Grafana Cloud
short_description: Manage Data sources in Grafana
description:
- Create, Update and delete Data sources using Ansible.
requirements: [ "requests >= 1.0.0" ]
Expand Down Expand Up @@ -46,7 +46,19 @@
EXAMPLES = '''
- name: Create/Update Data sources
grafana.grafana.datasource:
dataSource: "{{ lookup('ansible.builtin.file', 'datasource.json') }}"
dataSource: |
{
"name": "Prometheus",
"type": "prometheus",
"access": "proxy",
"url": "http://localhost:9090",
"jsonData": {
"httpMethod": "POST",
"manageAlerts": true,
"prometheusType": "Prometheus",
"cacheLevel": "High"
}
}
grafana_url: "{{ grafana_url }}"
grafana_api_key: "{{ grafana_api_key }}"
state: present
Expand Down
2 changes: 1 addition & 1 deletion plugins/modules/folder.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
author:
- Ishan Jain (@ishanjainn)
version_added: "0.0.1"
short_description: Manage Folders in Grafana Cloud
short_description: Manage Folders in Grafana
description:
- Create, Update and delete Folders via Ansible.
requirements: [ "requests >= 1.0.0" ]
Expand Down

0 comments on commit bd1871b

Please sign in to comment.